From e876646b4c16c7c742fb6ef85570a8125b632afe Mon Sep 17 00:00:00 2001 From: Gautam Botrel Date: Thu, 16 Nov 2023 21:38:28 -0600 Subject: [PATCH] ci,test: hunt for very greedy tests --- .github/workflows/push.yml | 7 ++++--- std/algebra/emulated/sw_bls12381/pairing_test.go | 3 +++ std/algebra/emulated/sw_bw6761/pairing_test.go | 3 +++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b899ceb98f..330ed2e5fa 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -77,9 +77,10 @@ jobs: - name: Test (ubuntu - race and solc) if: startsWith(matrix.os, 'ubuntu') == true run: | - go test -v -p 4 -timeout=60m -tags=release_checks ./... - go test -v -p 4 -race -tags=release_checks,solccheck . - go test -v -p 4 -timeout=60m -race -short ./... + go test -v -p 4 -timeout=120m -tags=release_checks ./... + go test -v -p 4 -tags=release_checks,solccheck . + go test -v -p 4 -timeout=50m -tags=release_checks -race ./examples/cubic/... + go test -v -p 4 -timeout=50m -tags=release_checks -short -race ./test/... slack-workflow-status-failed: diff --git a/std/algebra/emulated/sw_bls12381/pairing_test.go b/std/algebra/emulated/sw_bls12381/pairing_test.go index 39feaa30f7..558eeeeb27 100644 --- a/std/algebra/emulated/sw_bls12381/pairing_test.go +++ b/std/algebra/emulated/sw_bls12381/pairing_test.go @@ -124,6 +124,9 @@ func (c *MultiPairCircuit) Define(api frontend.API) error { } func TestMultiPairTestSolve(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } assert := test.NewAssert(t) p1, q1 := randomG1G2Affines() p2, q2 := randomG1G2Affines() diff --git a/std/algebra/emulated/sw_bw6761/pairing_test.go b/std/algebra/emulated/sw_bw6761/pairing_test.go index d4a70eebdb..48de9bf9e0 100644 --- a/std/algebra/emulated/sw_bw6761/pairing_test.go +++ b/std/algebra/emulated/sw_bw6761/pairing_test.go @@ -120,6 +120,9 @@ func (c *MultiPairCircuit) Define(api frontend.API) error { } func TestMultiPairTestSolve(t *testing.T) { + if testing.Short() { + t.Skip("skipping test in short mode.") + } assert := test.NewAssert(t) p1, q1 := randomG1G2Affines() p := make([]bw6761.G1Affine, 3)