Skip to content

ci(integration): 🐛 enable cgo for ci:integration so go test -race works - #101

Merged
konih merged 1 commit into
mainfrom
worktree-ci-3-nightly-cgo
Jul 10, 2026
Merged

konih merged 1 commit into
mainfrom
worktree-ci-3-nightly-cgo

Conversation

@konih

@konih konih commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

What

Add env: CGO_ENABLED: "1" to the ci:integration Taskfile task, mirroring the existing ci:e2e task.

Why

The weekly Nightly integration job runs task ci:integration -> run-ci-integration.sh -> task test:integration -> go test -race. The root Taskfile defaults CGO_ENABLED: "0"; ci:integration had no override, so -race failed:

go: -race requires cgo; enable cgo by setting CGO_ENABLED=1
task: Failed to run task "test:integration": exit status 2

The direct Integration workflow uses task test:integration (which sets CGO=1) and stayed green, masking this. It surfaced only after #100 fixed the go-cache double-restore and the Nightly integration job finally reached the test phase (dispatched run 29114368981).

Fix

ci:integration now sets CGO_ENABLED: "1" — identical to the sibling ci:e2e task. One task-level env override.

Verification

  • Taskfile parses (task --list-all).
  • Post-merge proof: re-dispatch Nightly and confirm the integration job passes the -race compile and proceeds through the MQ integration suite (the local darwin runner can't reproduce the linux-only -race requires cgo hard error).

Follow-up to #100 (CI-1); unblocks the Nightly safety-net.

The ci:integration task (nightly's integration lane) inherited the global
CGO_ENABLED=0 and exported it into run-ci-integration.sh and the nested
task test:integration, so go test -race failed 'requires cgo'. The direct
Integration workflow uses task test:integration (CGO=1) and stayed green,
which masked this until #100 (go-cache fix) unblocked the cache-restore step
and the weekly Nightly integration job reached the test phase.

Mirror the existing ci:e2e task, which already overrides CGO_ENABLED=1.
@konih
konih merged commit 59484e8 into main Jul 10, 2026
14 checks passed
@konih
konih deleted the worktree-ci-3-nightly-cgo branch July 11, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant