Skip to content

[CI Failure Doctor] CI Failure Investigation - Run #35529 #15530

@github-actions

Description

@github-actions

🏥 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

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 test with the integration tag, which leaves out helpers defined inside !integration files.
  • 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 ptrBool into a _test.go file 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 integration tag so every build sees the same helpers.
  • Automate an explicit go test -tags integration check 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cookieIssue Monster Loves Cookies!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions