From cae235aff3643236f953762397db04726bc9deeb Mon Sep 17 00:00:00 2001 From: Gautam Botrel Date: Sat, 14 Sep 2024 11:01:22 -0500 Subject: [PATCH] build: test ci --- .github/workflows/pr.yml | 19 +++++-------------- .github/workflows/push.yml | 9 --------- debug_test.go | 2 -- 3 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9e74a8db2..4ba25f149 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -71,21 +71,12 @@ jobs: - name: Run tests run: | set -euo pipefail - go test -json -v -p 4 -short -timeout=30m . 2>&1 | gotestfmt -hide=all | tee /tmp/gotest.log - # go test -json -v -p 4 -tags=release_checks,solccheck . 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log - # go test -json -v -p 4 -tags=prover_checks ./test/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log - # go test -json -v -p 4 -tags=prover_checks ./examples/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log - # go test -json -v -run=NONE -fuzz=FuzzIntcomp -fuzztime=30s ./internal/backend/ioutils 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log + go test -json -v -p 4 -short -timeout=30m ./... 2>&1 | gotestfmt -hide=all | tee /tmp/gotest.log + go test -json -v -p 4 -tags=release_checks,solccheck . 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log + go test -json -v -p 4 -tags=prover_checks ./test/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log + go test -json -v -p 4 -tags=prover_checks ./examples/... 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log + go test -json -v -run=NONE -fuzz=FuzzIntcomp -fuzztime=30s ./internal/backend/ioutils 2>&1 | gotestfmt -hide=all | tee -a /tmp/gotest.log - - name: Generate job summary - id: generate-job-summary - if: ${{ always() }} - run: | - if [ -s /tmp/gotest.log ]; then - cat /tmp/gotest.log > $GITHUB_STEP_SUMMARY - else - echo "## Success ✅" > $GITHUB_STEP_SUMMARY - fi slack-notifications: if: always() diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 70f0c2cd4..1e21a62c6 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -82,15 +82,6 @@ jobs: go test -v -p 4 -timeout=50m -tags=release_checks -short -race ./test/... go test -v -run=NONE -fuzz=FuzzIntcomp -fuzztime=30s ./internal/backend/ioutils - - name: Generate job summary - id: generate-job-summary - if: ${{ always() }} - run: | - if [ -s /tmp/gotest.log ]; then - cat /tmp/gotest.log > $GITHUB_STEP_SUMMARY - else - echo "## Success ✅" > $GITHUB_STEP_SUMMARY - fi slack-notifications: if: always() diff --git a/debug_test.go b/debug_test.go index de2e1208b..0b1548e66 100644 --- a/debug_test.go +++ b/debug_test.go @@ -78,7 +78,6 @@ func (circuit *divBy0Trace) Define(api frontend.API) error { } func TestTraceDivBy0(t *testing.T) { - t.Fatal("testing CI") if !debug.Debug { t.Skip("skipping test in non debug mode") } @@ -124,7 +123,6 @@ func (circuit *notEqualTrace) Define(api frontend.API) error { } func TestTraceNotEqual(t *testing.T) { - t.Fatal("testing CI 2") assert := require.New(t) var circuit, witness notEqualTrace