Skip to content

Preserve test names in test-quarantine data - #68752

Merged
wtgodbe merged 3 commits into
dotnet:mainfrom
wtgodbe:fix-test-quarantine-redaction
Aug 24, 2026
Merged

wtgodbe merged 3 commits into
dotnet:mainfrom
wtgodbe:fix-test-quarantine-redaction

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Aug 24, 2026

Copy link
Copy Markdown
Member

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:

  • keeps secret scrubbing scoped to captured error messages, stack traces, and Helix failure blocks
  • preserves structured test-name keys during serialization
  • validates the emitted JSON and fails closed if duplicate keys are ever introduced

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.

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]>
@wtgodbe
wtgodbe requested a review from a team as a code owner August 24, 2026 16:43
Copilot AI lite review requested due to automatic review settings August 24, 2026 16:43

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.

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.

Comment thread .github/workflows/test-quarantine.md Resolved
wtgodbe and others added 2 commits August 24, 2026 10:10
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]>
@wtgodbe
wtgodbe merged commit 3eb0478 into dotnet:main Aug 24, 2026
10 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 25, 2026
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