Repository navigation
[avenger] Fix build: undefined topRawSafeOutputs in mergeSafeOutputConfig - #77626
github-actions[bot] wants to merge 2 commits into
Conversation
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✂️ Ponytail Reviewer has started processing this pull request |
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one correctness issue in the safe-output import merge: explicit require-agent-success: false from an earlier import can be overridden by a later import because the new guard checks only top-level raw settings. Please preserve explicit imported values and add regression coverage.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
|
|
||
| // Merge meta-configuration fields (only set if empty/zero in result) | ||
| if _, defined := explicitSafeOutputs["require-agent-success"]; !defined { | ||
| if _, defined := topRawSafeOutputs["require-agent-success"]; !defined { |
There was a problem hiding this comment.
explicitSafeOutputs is updated after each import, but this guard only checks topRawSafeOutputs. As a result, an earlier imported workflow that explicitly sets require-agent-success: false can be overridden by a later import setting it to true, because the OR below then flips the merged value. Please guard on the accumulated explicit settings (or otherwise make explicit imported values sticky), and add a test covering two imports with false then true.
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd guidance. No blocking issues found.
📋 Details
- Fix:
mergeSafeOutputConfignow takestopRawSafeOutputsand uses it atpkg/workflow/imports.go:585. This resolves the undefined-variable build failure. - Verification:
go build ./cmd/gh-aw,go vet ./pkg/workflowandgofmtare clean.TestSafeOutputsRequireAgentSuccessImportsandTestSafeOutputsRequireAgentSuccesspass and exercise the changedrequire-agent-successbranch. - Full
pkg/workflowrun: 4 failures (TestVerifyGitCredentials,TestVerifyGitCredentialsIncludes,TestCredentialFreePromptEnvironment,TestBuildDynamicEnclaveExpiryScriptResolvesMinOfConfiguredAndJobExpiry). They look environmental (mktemp permission, inheritedGITHUB_TOKEN, clock-sensitive assertion) and are unrelated to this diff. Please confirm in CI. - Limits: The pre-fetched diff was empty, and PR head commit
830c673is not present locally. I could not diff against the base. This review is based on the local checkout atbbd75c0.
@copilot please address the review comments above, if any.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
CI failure
Most CI jobs failed at the Build gh-aw binary step. The cause was
pkg/workflow/imports.go:585: undefined: topRawSafeOutputs.Fix
mergeSafeOutputConfigusedtopRawSafeOutputs(for therequire-agent-successmerge), but the variable was only a parameter ofMergeSafeOutputs. I added it as a parameter tomergeSafeOutputConfigand passed it from the caller.Validation
go build ./cmd/gh-awsucceeds.go test ./pkg/workflow -run SafeOutputs.*Import|MergeSafeOutputspasses.gofmtis clean.make test-unit,make lintor the merge fromorigin/main(git fetch failed with a TLS error in the sandbox), and I did not check the steering issue (the read returned nothing).