Conversation
…Upload Safe Outputs assertion Agent-Logs-Url: https://github.com/github/gh-aw/sessions/8e7bba39-ed6f-49f4-96a5-91a1bc9c30d2 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
April 9, 2026 19:19
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a flaky/broken integration test by tightening a string assertion so it only matches the exact legacy step name "Upload Safe Outputs" (and not similarly-named valid steps like "Upload Safe Outputs Items").
Changes:
- Updated
TestStepOrderingValidation_SecretRedactionBeforeUploadsto check for the exact YAML step entry"- name: Upload Safe Outputs\n". - Added explanatory comments documenting why the exact match is required (to avoid matching other valid upload steps).
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/step_order_validation_integration_test.go |
Narrows the “Upload Safe Outputs” absence assertion to an exact step-name match to prevent false positives. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The integration test
TestStepOrderingValidation_SecretRedactionBeforeUploadswas failing because its assertion was too broad.Root cause
The check:
matched the intentional
"- name: Upload Safe Outputs Items"step in thesafe_outputsjob (generated bybuildSafeOutputItemsManifestUploadStep), which exists for a valid reason — it uploads the manifest as a separate artifact to avoid 409 conflicts.Fix
Narrowed the assertion to use the exact old step name (with YAML list prefix and trailing newline), consistent with the identical check in
agentic_output_test.go:This only matches a step named exactly
"Upload Safe Outputs"and does not match"Upload Safe Outputs Items"or"Upload Safe Outputs Assets".Reference: https://github.com/github/gh-aw/actions/runs/24207061879/job/70665593242