Skip to content

Fix build: pass topRawSafeOutputs into mergeSafeOutputConfig - #77640

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

pelikhan merged 1 commit into
mainfrom
pelikhan/fix-docs-build

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

The docs workflow (and go build) on main fails with pkg/workflow/imports.go:585:19: undefined: topRawSafeOutputs.

#77559 added a require-agent-success check in mergeSafeOutputConfig referencing topRawSafeOutputs. #77560 refactored the same code path and the variable was no longer in scope. This threads topRawSafeOutputs into mergeSafeOutputConfig. Only top-level frontmatter blocks imports from enabling the gate, which is the behavior #77559 intended.

Verified locally: go build ./..., make build-wasm, targeted pkg/workflow tests, and a full npm run build in docs/ with an agentics checkout.

#77559 and #77560 crossed; the require-agent-success check referenced
topRawSafeOutputs inside mergeSafeOutputConfig where it was undefined,
breaking the Go/WASM build used by the docs workflow.

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:38
@pelikhan
pelikhan merged commit 545707c into main Nov 14, 2026
22 checks passed
@pelikhan
pelikhan deleted the pelikhan/fix-docs-build branch November 14, 2026 04:38

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

The review identified no active issues in the safe-output configuration merge changes.

No open issues 🎉

What changed in this PR

This PR fixes the go build failure by threading the top-level raw safe-output configuration into mergeSafeOutputConfig, preserving the intended precedence for imported require-agent-success settings.

Changes:

  • Passes topRawSafeOutputs into mergeSafeOutputConfig.
  • Updates the helper to respect explicitly configured top-level values over imported values.
  • No actionable issues identified.
File Description
pkg/​workflow/​imports.go Threads the raw top-level safe-output configuration into the imported configuration merge logic.

Review effort: Lite (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