Repository navigation
Preserve test names in test-quarantine data - #68752
Merged
Merged
Conversation
Avoid applying secret scrubbing to the serialized Part 1 payload, which can redact long test identifiers and create duplicate JSON keys. Validate the payload before emitting it so future transformations fail closed on collisions. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Daily Test Quarantine Management agentic workflow to prevent secret-scrubbing from corrupting structured JSON keys (notably long test identifiers), which previously could collapse unrelated failures by producing duplicate keys in the serialized payload.
Changes:
- Stops applying the broad secret scrubber to the fully serialized Part 1 JSON payload; keeps scrubbing scoped to captured failure text (error messages, stack traces, and extracted Helix
[FAIL]blocks). - Adds a JSON validation step to fail closed if duplicate JSON keys are produced.
- Regenerates the compiled workflow lockfile.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/test-quarantine.md | Narrows secret scrubbing scope and adds duplicate-key validation for the emitted Part 1 JSON payload. |
| .github/workflows/test-quarantine.lock.yml | Regenerated compiled workflow reflecting the source changes (and includes an additional env var change that should be confirmed/justified). |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Report invalid Part 1 JSON with a concise fatal diagnostic and keep unrelated action-failure expiry regeneration out of the lockfile diff. Co-authored-by: Copilot <[email protected]>
Keep the compiled lockfile exactly as emitted by gh-aw. Co-authored-by: Copilot <[email protected]>
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.
The Part 1 safety scrub was applied to the complete serialized JSON payload. Its broad token fallback also matched long test method names, replacing multiple identifiers with
[REDACTED]and creating duplicate JSON keys. This caused unrelated failures to be combined and led to the incorrect quarantine in #68727.This change:
The focused regression check uses the two test names that collided in workflow run 32632851798 and confirms the old whole-payload scrub creates a duplicate while the new path preserves both identifiers.
The workflow source and generated lockfile were compiled successfully with
gh aw compile test-quarantine --strict.