Skip to content

Use full git history in test-quarantine workflow#65932

Merged
wtgodbe merged 1 commit intodotnet:mainfrom
wtgodbe:wtgodbe/quarantine-fetch-depth
Mar 24, 2026
Merged

Use full git history in test-quarantine workflow#65932
wtgodbe merged 1 commit intodotnet:mainfrom
wtgodbe:wtgodbe/quarantine-fetch-depth

Conversation

@wtgodbe
Copy link
Copy Markdown
Member

@wtgodbe wtgodbe commented Mar 23, 2026

The agent needs full git history to accurately determine when [QuarantinedTest] attributes were added/removed via git log -G. With fetch-depth: 1, the git log command returns no results, causing incorrect date calculations.

The agent needs full git history to accurately determine when [QuarantinedTest]
attributes were added/removed via git log -G. With fetch-depth: 1, the git log
command returns no results, causing incorrect date calculations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wtgodbe wtgodbe requested a review from a team as a code owner March 23, 2026 22:48
Copilot AI review requested due to automatic review settings March 23, 2026 22:48
@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Mar 23, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the test-quarantine agent workflow checkout behavior so the agent has full Git history available when using git log -G to determine when [QuarantinedTest] attributes were introduced/removed (avoiding incorrect “no results” date calculations caused by shallow clones).

Changes:

  • Configure the workflow’s checkout to use full history (fetch-depth: 0) in the source .md workflow definition.
  • Regenerate the compiled/locked workflow to apply the checkout change (and incorporate the updated gh-aw compiler output).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/test-quarantine.md Adds checkout.fetch-depth: 0 to ensure the agent run has full history available for git log -G.
.github/workflows/test-quarantine.lock.yml Compiled workflow updates reflecting full-history checkout plus regenerated gh-aw output for this workflow.

@wtgodbe wtgodbe merged commit d8491f4 into dotnet:main Mar 24, 2026
16 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 11.0-preview3 milestone Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants