From c3b06bf80904886933fa48bdac7a458b0f17b315 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 11 Jun 2026 09:49:07 -0700 Subject: [PATCH] ci: run weed tests on linux/386 (#9924) 386 test binaries execute natively on the amd64 runner, so the suite catches what vet cannot: unaligned 64-bit atomics and arithmetic that wraps at runtime. -short keeps the e2e suites on amd64 only. --- .github/workflows/go.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 91429fea9..8c97bed1e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -77,3 +77,19 @@ jobs: go-version-file: 'go.mod' - name: Test run: cd weed; go test -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v ./... + + test-32bit: + name: Test 32-bit + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v6 + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version-file: 'go.mod' + # 386 test binaries run natively on the amd64 runner. This catches what vet + # can't: unaligned 64-bit atomics and arithmetic that wraps at runtime. + # -short skips the e2e suites already covered on amd64. + - name: Test linux/386 + run: cd weed; GOOS=linux GOARCH=386 go test -short ./...