Skip to content

Commit

Permalink
ci: prevent retries on ci runs w/ '-r 0'
Browse files Browse the repository at this point in the history
Aka 0 retries
  • Loading branch information
joshuef committed Dec 14, 2023
1 parent 6d894ee commit 786b5b6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmark-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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
run: target/release/safe --log-output-dest=data-dir files upload the-test-data.zip -r 0
env:
SN_LOG: "all"

Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
shell: bash
run: |
ls -l target/release
target/release/safe --log-output-dest=data-dir files upload target/release/faucet
target/release/safe --log-output-dest=data-dir files upload target/release/faucet -r 0
#########################
### 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 @@ -102,7 +102,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
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload the-test-data.zip -r 0
env:
SN_LOG: "all"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Start a client to upload files
run: |
ls -l
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./the-test-data.zip" --show-holders
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./the-test-data.zip" --show-holders -r 0
env:
SN_LOG: "all"
timeout-minutes: 25
Expand All @@ -112,7 +112,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.zip" --show-holders > second_upload.txt
cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./the-test-data.zip" --show-holders -r 0 > second_upload.txt
cat second_upload.txt
rg "New wallet balance: 5000000.000000000" second_upload.txt -c --stats
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ 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"
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" -r 0
env:
SN_LOG: "all"
timeout-minutes: 15
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"
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./resources" -r 0
env:
SN_LOG: "all"
timeout-minutes: 2
Expand Down
2 changes: 2 additions & 0 deletions sn_cli/benches/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ fn safe_files_upload(dir: &str) {
.arg("files")
.arg("upload")
.arg(dir)
.arg("-r") // no retries
.arg("0")
.output()
.expect("Failed to execute command");

Expand Down

0 comments on commit 786b5b6

Please sign in to comment.