diff --git a/.github/workflows/unit_test-linux-x64.yml b/.github/workflows/unit_test-linux-x64.yml index c6f56b76c..f7197794f 100644 --- a/.github/workflows/unit_test-linux-x64.yml +++ b/.github/workflows/unit_test-linux-x64.yml @@ -5,6 +5,7 @@ on: push jobs: build: strategy: + max-parallel: 4 matrix: go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x] runs-on: [self-hosted, X64] @@ -28,9 +29,15 @@ jobs: restore-keys: | ${{ runner.os }}-go- + - name: Data Race + run: | + ./scripts/test_race.sh + - name: PCSP Test run: python3 ./scripts/test_pcsp.py + + - name: Unit Test run: | go test -race -covermode=atomic -coverprofile=coverage.txt ./... diff --git a/encoder/encoder_test.go b/encoder/encoder_test.go index e76c06dad..8c0098454 100644 --- a/encoder/encoder_test.go +++ b/encoder/encoder_test.go @@ -23,7 +23,6 @@ import ( `runtime` `runtime/debug` `strconv` - `sync` `testing` `time` @@ -47,36 +46,6 @@ func TestMain(m *testing.M) { m.Run() } -func TestGC(t *testing.T) { - if debugSyncGC { - return - } - out, err := Encode(_GenericValue, 0) - if err != nil { - t.Fatal(err) - } - n := len(out) - wg := &sync.WaitGroup{} - N := 10000 - for i:=0; i test_race.log || true +if ! grep -q "WARNING: DATA RACE" ./test_race.log; then + echo "TEST FAILED: should data race here" + exit 1 +fi +mv race_test.go race_test_go +rm -vrf test_race.log \ No newline at end of file diff --git a/tools/asm2asm b/tools/asm2asm index 8151d05a4..7551cd410 160000 --- a/tools/asm2asm +++ b/tools/asm2asm @@ -1 +1 @@ -Subproject commit 8151d05a43d3afaa55738a40d9870e6e2cdf200a +Subproject commit 7551cd4109d65d83475ccf98ac3a6844c774e44f