-
Notifications
You must be signed in to change notification settings - Fork 229
Description
🏥 CI Failure Investigation - Run #35529
Summary
Integration test jobs fail because pkg/workflow/safe_outputs_permissions_test.go references ptrBool, but the helper only existed in a file guarded by //go:build !integration and is therefore omitted when building with the integration tag.
Failure Details
- Run: 22006398304
- Commit: 4956963
- Trigger: push
Root Cause Analysis
go test -tags integration compiles the workflow package with the integration build tag, but ptrBool was defined in compiler_orchestrator_test.go which is excluded from that build. When safe_outputs_permissions_test.go uses ptrBool, the compiler reports undefined: ptrBool and the package fails before any tests run.
Failed Jobs and Errors
- Integration: Workflow Validation –
pkg/workflow/safe_outputs_permissions_test.go:168:28: undefined: ptrBool - Integration: Workflow GitHub & Git – same compile failure
- Integration: Workflow Cache – same compile failure
- Integration: Workflow Actions & Containers – same compile failure
- Integration: Workflow String & Sanitization – same compile failure
Investigation Findings
- All failing jobs run
go testwith theintegrationtag, which leaves out helpers defined inside!integrationfiles. - The compile failure occurs before the test runner executes because the symbol used in multiple test cases is missing from the build.
Recommended Actions
- Move
ptrBoolinto a_test.gofile without restrictive build tags so it is available to both integration and non-integration suites. - Run
go test -tags integration ./pkg/workflow(or the relevant subset) whenever shared test helpers are added to catch these undefined symbol errors immediately.
Prevention Strategies
- Keep shared test helpers in files that compile irrespective of the
integrationtag so every build sees the same helpers. - Automate an explicit
go test -tags integrationcheck for workflow packages touched by a change to ensure compilation succeeds before merging.
AI Team Self-Improvement
When adding helpers that span both regular and integration suites, place them in files without !integration build tags and validate the helper by building with -tags integration so undefined references are caught early.
Historical Context
No prior CI Failure Doctor investigation in the cache described this undefined: ptrBool compile failure.
AI generated by CI Failure Doctor
To add this workflow in your repository, run
gh aw add githubnext/agentics/workflows/ci-doctor.md@ea350161ad5dcc9624cf510f134c6a9e39a6f94d. See usage guide.
- expires on Feb 14, 2026, 11:42 PM UTC