From ceec587997e579cd731a29a47f25e051e86edd26 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 16:27:02 +0000 Subject: [PATCH 1/2] Initial plan From a1655d2e7dc1cf130a99bc7cf131a5fa735577af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 16:51:22 +0000 Subject: [PATCH 2/2] Add binary build step before integration tests to fix TestMain issue The integration test suite's TestMain function requires a pre-built gh-aw binary. Adding an explicit build step ensures the binary exists before tests run, preventing potential race conditions or build failures during test execution. This fixes the "CLI Completion & Other" job failure where all individual tests passed but the package failed with exit code 1. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f516eb643f9..bd0789b5bcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -360,6 +360,9 @@ jobs: echo "- Number of cached modules: $(find $(go env GOMODCACHE) -name "go.mod" 2>/dev/null | wc -l || echo 'unknown')" fi + - name: Build gh-aw binary for integration tests + run: make build + - name: Run integration tests - ${{ matrix.test-group.name }} run: | set -o pipefail