Repository navigation
ci(integration): 🐛 enable cgo for ci:integration so go test -race works - #101
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add
env: CGO_ENABLED: "1"to theci:integrationTaskfile task, mirroring the existingci:e2etask.Why
The weekly Nightly
integrationjob runstask ci:integration->run-ci-integration.sh->task test:integration->go test -race. The root Taskfile defaultsCGO_ENABLED: "0";ci:integrationhad no override, so-racefailed: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:integrationnow setsCGO_ENABLED: "1"— identical to the siblingci:e2etask. One task-level env override.Verification
task --list-all).integrationjob passes the-racecompile and proceeds through the MQ integration suite (the local darwin runner can't reproduce the linux-only-race requires cgohard error).Follow-up to #100 (CI-1); unblocks the Nightly safety-net.