Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Mar 3, 2025
1 parent e8f1c91 commit c46dd65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/unit-random-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ jobs:
run: |
source .github/scripts/start_meta_engine.sh
meta_url=$(get_meta_url ${{matrix.meta}})
touch /tmp/randomtest-failfile.log
make unit-random-test failfile=/tmp/randomtest-failfile.log seed=$RANDOM checks=100000 steps=200 meta=$meta_url
make unit-random-test seed=$RANDOM checks=100000 steps=200 meta=$meta_url
- name: print failfile content
if: failure()
run: cat /tmp/randomtest-failfile.log
run: cat testdata/rapid/TestFSOps/TestFSOps-*.fail
continue-on-error: true

- name: upload coverage report
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ test.fdb:

unit-random-test:
echo "Using meta:$(meta), seed: $(seed), checks:${checks}, steps: $(steps)"
go test ./pkg/meta/... -rapid.failfile=/tmp/randomtest-failfile.log -rapid.meta=$(meta) -rapid.seed=$(seed) -rapid.checks=$(checks) -rapid.steps=$(steps) -run "TestFSOps" -v -failfast -count=1 -timeout=30m -cover -coverpkg=./pkg/... -args -test.gocoverdir="$(shell realpath cover/)"
go test ./pkg/meta/... -rapid.meta=$(meta) -rapid.seed=$(seed) -rapid.checks=$(checks) -rapid.steps=$(steps) -run "TestFSOps" -v -failfast -count=1 -timeout=30m -cover -coverpkg=./pkg/... -args -test.gocoverdir="$(shell realpath cover/)"

0 comments on commit c46dd65

Please sign in to comment.