Skip to content

Commit

Permalink
fix: ensure workflow stops on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ermineJose committed Nov 5, 2024
1 parent ec643f5 commit b20b3b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ jobs:
- name: Estimate cost to create a vault
run: |
# 1 MB
set -e
python3 -c "with open('random.txt', 'wb') as f: f.write(bytearray([0xff] * 1 * 1024 * 1024))"
./target/release/autonomi --log-output-dest=data-dir file upload random.txt
./target/release/autonomi --log-output-dest=data-dir register create sample_new_register 1234
Expand All @@ -370,6 +371,7 @@ jobs:
- name: add more files - linux/macos
if: matrix.os != 'windows-latest'
run: |
set -e
for i in {1..100}; do
dd if=/dev/urandom of=random_file_$i.bin bs=1M count=1 status=none
./target/release/autonomi --log-output-dest=data-dir file upload random_file_$i.bin --public
Expand All @@ -384,7 +386,8 @@ jobs:
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
for ($i = 1; $i -le 100; $i++) {
$ErrorActionPreference = "Stop"
for ($i = 1; $i -le 10; $i++) {
python3 -c "import sys; with open(sys.argv[1], 'wb') as f: f.write(bytearray([0xff] * 1 * 1024 * 1024))" "random_file_$i.bin"
# Run autonomi commands
Expand All @@ -406,6 +409,7 @@ jobs:
if: matrix.os != 'windows-latest'
shell: bash
run: |
set -e
NUM_OF_PUBLIC_FILES=""
NUM_OF_PRIVATE_FILES=""
NUM_OF_REGISTERS=""
Expand Down Expand Up @@ -513,6 +517,7 @@ jobs:
- name: Time profiling for Different files
if: matrix.os != 'windows-latest'
run: |
set -e
# 1 MB
python3 -c "with open('random_1MB.bin', 'wb') as f: f.write(bytearray([0xff] * 1 * 1024 * 1024))"
# 10 MB
Expand Down

0 comments on commit b20b3b5

Please sign in to comment.