Skip to content

Commit

Permalink
fix(ci): update the reattempt flag to retry_strategy flag for the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Feb 8, 2024
1 parent 7ac1ced commit 693e067
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmark-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

- name: Start a client instance to compare memory usage
shell: bash
run: target/release/safe --log-output-dest=data-dir files upload the-test-data.zip -r 0
run: target/release/safe --log-output-dest=data-dir files upload the-test-data.zip --retry-strategy quick
env:
SN_LOG: "all"

Expand Down Expand Up @@ -203,13 +203,13 @@ jobs:

- name: Start a client to carry out download to output the logs
shell: bash
run: target/release/safe --log-output-dest=data-dir files download
run: target/release/safe --log-output-dest=data-dir files download --retry-strategy quick

- name: Start a client to simulate criterion upload
shell: bash
run: |
ls -l target/release
target/release/safe --log-output-dest=data-dir files upload target/release/faucet -r 0
target/release/safe --log-output-dest=data-dir files upload target/release/faucet --retry-strategy quick
#########################
### Stop Network ###
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-benchmark-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

- name: Start a client instance to compare memory usage
shell: bash
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload the-test-data.zip -r 0
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload the-test-data.zip --retry-strategy quick
env:
SN_LOG: "all"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
# -p makes files public
run: |
ls -l
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./the-test-data.zip" -r 0 -p
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./the-test-data.zip" --retry-strategy quick -p
env:
SN_LOG: "all"
timeout-minutes: 25
Expand All @@ -128,7 +128,7 @@ jobs:
cat initial_balance_from_faucet_1.txt | tail -n 1 > transfer_hex
cat transfer_hex
cargo run --bin safe --release -- --log-output-dest=data-dir wallet receive --file transfer_hex
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./the-test-data_1.zip" -r 0 -p > second_upload.txt
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./the-test-data_1.zip" --retry-strategy quick -p > second_upload.txt
cat second_upload.txt
rg "New wallet balance: 5000000.000000000" second_upload.txt -c --stats
env:
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:

- name: Start a client to download files
run: |
cargo run --bin safe --release -- --log-output-dest=data-dir files download
cargo run --bin safe --release -- --log-output-dest=data-dir files download --retry-strategy quick
ls -l $CLIENT_DATA_PATH/safe_files
downloaded_files=$(ls $CLIENT_DATA_PATH/safe_files | wc -l)
if [ $downloaded_files -lt 1 ]; then
Expand All @@ -225,7 +225,7 @@ jobs:
# Download the same files again to ensure files won't get corrupted.
- name: Start a client to download the same files again
run: |
cargo run --bin safe --release -- --log-output-dest=data-dir files download --show-holders
cargo run --bin safe --release -- --log-output-dest=data-dir files download --show-holders --retry-strategy quick
ls -l $CLIENT_DATA_PATH/safe_files
downloaded_files=$(ls $CLIENT_DATA_PATH/safe_files | wc -l)
if [ $downloaded_files -lt 1 ]; then
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ jobs:
timeout-minutes: 5

- name: Start a client to upload files
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" -r 0
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 15

- name: Start a client to download files
run: cargo run --bin safe --release -- --log-output-dest=data-dir files download
run: cargo run --bin safe --release -- --log-output-dest=data-dir files download --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 2
Expand Down Expand Up @@ -791,7 +791,7 @@ jobs:
timeout-minutes: 5

- name: Start a client to upload
run: ~/safe --log-output-dest=data-dir files upload "ubuntu-18.04.6-desktop-amd64.iso" -r 0
run: ~/safe --log-output-dest=data-dir files upload "ubuntu-18.04.6-desktop-amd64.iso" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 30
Expand Down Expand Up @@ -906,7 +906,7 @@ jobs:
timeout-minutes: 5

- name: Start a client to upload first file
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_1.tar.gz" -r 0
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_1.tar.gz" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 5
Expand Down Expand Up @@ -940,7 +940,7 @@ jobs:
timeout-minutes: 6

- name: Use same client to upload second file
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_2.tar.gz" -r 0
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_2.tar.gz" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 10
Expand Down Expand Up @@ -992,7 +992,7 @@ jobs:
timeout-minutes: 25

- name: Use second client to upload third file
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_3.tar.gz" -r 0
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_3.tar.gz" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
timeout-minutes: 2

- name: Start a client to carry out chunk actions
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" -r 0
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_wan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
timeout-minutes: 2

- name: Start a client to carry out chunk actions
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" -r 0
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" --retry-strategy quick
env:
SN_LOG: "all"
timeout-minutes: 2
Expand Down
2 changes: 1 addition & 1 deletion sn_client/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl Client {
/// let xorname = XorName::random(&mut rng);
/// let chunk_address = ChunkAddress::new(xorname);
/// // get chunk
/// let chunk = client.get_chunk(chunk_address,true).await?;
/// let chunk = client.get_chunk(chunk_address,true, None).await?;
/// # Ok(())
/// # }
/// ```
Expand Down

0 comments on commit 693e067

Please sign in to comment.