Skip to content

Fix main build: undefined topRawSafeOutputs in imports.go - #77643

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan/fix-imports-build-break
Nov 14, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan/fix-imports-build-break

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Two PRs merged with a semantic conflict, so Go builds on main failed with pkg/workflow/imports.go:585:19: undefined: topRawSafeOutputs. Most jobs in CI, CGO, Windows build, Doc Build and Work Queue Compilation failed with that error.

Fix

  • The merge now uses explicitSafeOutputs.
  • After each import, require-agent-success is removed from the explicit-keys map unless the main workflow defines it. Import values stay OR-combined, and only the main workflow can override them, as TestSafeOutputsRequireAgentSuccessImports expects. Without this, an earlier import's false would block a later import's true.

Validation

  • go build ./... and make build-wasm pass
  • go test ./pkg/workflow -run 'Import|SafeOutput|RequireAgent|AgentSuccess|Merge' passes
  • The custom lint sets from cgo.yml pass on ./pkg/workflow

#77559 and #77560 merged with a semantic conflict: the parameter
topRawSafeOutputs was renamed to explicitSafeOutputs, leaving an
undefined reference that broke every Go build. Keep import values
OR-combined, with only the main workflow able to override them.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 14, 2026 04:44
@pelikhan
pelikhan merged commit 65fff6a into main Nov 14, 2026
57 checks passed
@pelikhan
pelikhan deleted the pelikhan/fix-imports-build-break branch November 14, 2026 04:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the workflow compiler merge-conflict fix.

No open issues 🎉

What changed in this PR

Fixes a semantic merge conflict in gh-aw’s workflow compiler that broke builds, while preserving the intended require-agent-success import behavior.

Changes:

  • Replaces the undefined topRawSafeOutputs reference with explicitSafeOutputs.
  • Keeps imported require-agent-success values OR-combined while preserving explicit main-workflow overrides.
File Description
pkg/​workflow/​imports.go Fixes the undefined variable and preserves agent-success gate merge semantics.

Review effort: Balanced (dynamic)

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

2 participants