From 5fd581e0e0b36c3110bb30705b2c92e1678e0ccf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Jul 2026 20:42:44 +0000 Subject: [PATCH 1/3] Initial plan From 1ba673097d9c305fdd56b6f1d1ea6c1733b50db7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Jul 2026 20:59:40 +0000 Subject: [PATCH 2/3] fix: add integration build verification step to prevent fuzz build failures Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/cgo.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/cgo.yml b/.github/workflows/cgo.yml index b437f1fe347..f74862b30ee 100644 --- a/.github/workflows/cgo.yml +++ b/.github/workflows/cgo.yml @@ -112,6 +112,14 @@ jobs: - name: Verify dependencies run: go mod verify + - name: Verify integration build + run: | + # Compile all packages including integration-tagged test files. + # Regular unit tests use -tags '!integration', so build errors in + # integration-tagged files (e.g. unused imports) would otherwise + # go undetected until the fuzz job runs on main. + go test -run='^$' -tags=integration ./... + - name: Pre-flight check - Validate test dependencies run: | echo "Validating that test dependencies are available..." @@ -1374,6 +1382,14 @@ jobs: - name: Verify dependencies run: go mod verify + - name: Verify integration build + run: | + # Ensure all integration-tagged test files compile cleanly before fuzzing. + # Fuzz tests such as FuzzSanitizeOutput run with -tags=integration; a build + # error in any integration-tagged file causes the entire fuzz run to fail + # with a misleading error message. + go test -run='^$' -tags=integration ./... + - name: Run fuzz tests (${{ matrix.group }}) run: | set -o pipefail From 7f1e23589c6d4aee99fad3258e28d63e4b6f6a1a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Jul 2026 22:21:35 +0000 Subject: [PATCH 3/3] fix(ci): avoid TestMain side effects in integration build checks Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com> --- .github/workflows/cgo.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cgo.yml b/.github/workflows/cgo.yml index f74862b30ee..65aa7e83fec 100644 --- a/.github/workflows/cgo.yml +++ b/.github/workflows/cgo.yml @@ -114,11 +114,12 @@ jobs: - name: Verify integration build run: | - # Compile all packages including integration-tagged test files. + # Compile and link all integration-tagged test binaries without + # executing package test binaries or TestMain side effects. # Regular unit tests use -tags '!integration', so build errors in # integration-tagged files (e.g. unused imports) would otherwise # go undetected until the fuzz job runs on main. - go test -run='^$' -tags=integration ./... + go test -run='^$' -exec=true -tags=integration ./... - name: Pre-flight check - Validate test dependencies run: | @@ -1384,11 +1385,12 @@ jobs: - name: Verify integration build run: | - # Ensure all integration-tagged test files compile cleanly before fuzzing. + # Compile and link all integration-tagged test binaries without + # executing package test binaries or TestMain side effects. # Fuzz tests such as FuzzSanitizeOutput run with -tags=integration; a build # error in any integration-tagged file causes the entire fuzz run to fail # with a misleading error message. - go test -run='^$' -tags=integration ./... + go test -run='^$' -exec=true -tags=integration ./... - name: Run fuzz tests (${{ matrix.group }}) run: |