Skip to content

Fix test quarantine rename detection - #69804

Merged
wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:infrastructure/fix-test-quarantine-history
Oct 13, 2026
Merged

wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:infrastructure/fix-test-quarantine-history

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Oct 13, 2026

Copy link
Copy Markdown
Member

Fix test quarantine rename detection

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Avoid false test quarantine rename ambiguity

Description

The test-quarantine collector previously treated any commit that re-added a target declaration while deleting another declaration in the file as a rename. Whole-file rewrites such as file-scoped namespace conversions and batch test-signature changes therefore permanently marked otherwise stable test identities as ambiguous.

This change compares historical declaration snapshots within the owning type, tracks overload signatures, and rejects false git --follow lineage jumps while preserving fail-closed behavior for genuine method, overload, type, and namespace renames. Regression fixtures cover declaration rewrites, mixed rename-and-overload changes, unrelated type edits, simultaneous type/method renames, and replaced overloads.

Re-evaluating the October 13 workflow evidence with this change makes TimeoutExceeded_ConnectionFlowControlUsedUpThenPings_NoGoAway Case A eligible and ConnectionLifetimeNotificationFeature_RequestClose_ConnectionEnds Case B eligible. It also classifies RedirectEnhancedNonBlazorGetToInternal as a provable first quarantine rather than ambiguous.

Validation:

  • python3 -B .github/workflows/scripts/test-quarantine/test_collect_case_a_eligibility.py — passed; the new declaration-rewrite fixture fails against the previous collector and passes with this change.
  • All 14 Python and JavaScript workflow fixture scripts discovered by .github/workflows/workflow-tests.yml — passed.
  • gh aw compile test-quarantine --no-emit --strict with gh-aw v0.91.10 — passed.
  • .github/workflows/test-quarantine.lock.yml regenerated with gh-aw v0.91.10.
  • Independent reviews with GPT-6 Sol and Claude Sonnet 5 — approved after the requested rename/overload edge cases were addressed.

No associated issue.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 18:54
@wtgodbe
wtgodbe requested a review from a team as a code owner October 13, 2026 18:54
@wtgodbe
wtgodbe merged commit 1408573 into dotnet:main Oct 13, 2026
15 checks passed

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.

🟡 Changes recommended

The new false-lineage-jump handling lacks direct regression coverage.

1 open finding
What changed in this PR

Refines test-quarantine history analysis to avoid false rename ambiguity while preserving conservative rename detection.

Changes:

  • Compares type, method, and overload declaration snapshots.
  • Adds rename/rewrite regression fixtures and documentation.
  • Regenerates the gh-aw workflow lock file.
File Description
.github/​workflows/​test-quarantine.lock.yml Regenerates the workflow with gh-aw v0.91.10.
.github/​workflows/​scripts/​test-quarantine/​collect_case_a_eligibility.py Implements snapshot-based rename detection.
.github/​workflows/​scripts/​test-quarantine/​test_collect_case_a_eligibility.py Adds declaration and rename fixtures.
.github/​workflows/​scripts/​test-quarantine/​README.md Documents revised identity handling.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +1675 to +1686
lineage = []
for identity in identities:
if lineage and identity["path"] != lineage[-1]["path"]:
old_path_still_exists = git_result(
root,
"cat-file",
"-e",
f"{lineage[-1]['commit']}:{identity['path']}",
)
if old_path_still_exists.returncode == 0:
break
lineage.append(identity)
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 13, 2026 19:00 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 13, 2026 19:01 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 13, 2026 19:02 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 13, 2026 19:05 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 13, 2026 19:06 — with GitHub Actions Inactive
@wtgodbe
wtgodbe temporarily deployed to copilot-pat-pool October 13, 2026 19:07 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: the PR only changes repository CI/test-quarantine automation scripts and workflow lock file.

Documentation surfaces considered

  • Conceptual article: Not required — Changes limited to internal test-quarantine workflow scripts; no user-facing behavior.
  • Migration guidance: Not required — No upgrade actions for users.
  • Breaking change: Not required — No public API or behavior compatibility impact.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — a935b109 Deployed Oct 13, 2026 by wtgodbe via conclusion #33
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