[skill] Use Version.Details.xml as VMR snapshot fallback for manual backflow#124129
Merged
[skill] Use Version.Details.xml as VMR snapshot fallback for manual backflow#124129
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Improves reliability of GitHub “skills” automation scripts by (1) making VMR snapshot detection resilient to manual backflow commit message formats and (2) working around a Helix API artifact URI bug for subdirectory files.
Changes:
- Add a fallback to read
eng/Version.Details.xmlon the PR branch to infer the VMR snapshot SHA when commit messages aren’t parseable. - Improve snapshot validation messaging (identify whether snapshot came from commit messages vs
Version.Details.xml). - Rebuild Helix artifact file URIs from
FileNamefor subdirectory artifacts and document the known Helix API issue.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1 |
Adds Version.Details.xml fallback and refines snapshot validation/status output. |
.github/skills/azdo-helix-failures/scripts/Get-HelixFailures.ps1 |
Workaround for broken Helix artifact URIs for files in subdirectories by reconstructing URLs. |
.github/skills/azdo-helix-failures/references/helix-artifacts.md |
Documents the Helix API bug and the script’s workaround. |
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1
Outdated
Show resolved
Hide resolved
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1
Outdated
Show resolved
Hide resolved
b9b70b4 to
3090c43
Compare
3090c43 to
3969355
Compare
3969355 to
b5e3166
Compare
2fa670d to
33ae35f
Compare
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1
Outdated
Show resolved
Hide resolved
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1
Outdated
Show resolved
Hide resolved
33ae35f to
0062b79
Compare
0062b79 to
c0c18fd
Compare
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1
Outdated
Show resolved
Hide resolved
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1
Outdated
Show resolved
Hide resolved
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1
Outdated
Show resolved
Hide resolved
Version.Details.xml's <Source Sha=...> is the authoritative record of which VMR commit a product repo branch is based on. Previously the script treated it as a fallback after commit message parsing. Now it's checked first, with commit messages as secondary confirmation. This correctly handles: - Manual backflow (darc vmr backflow pushed directly) - Normal codeflow (Maestro-managed) - Conflicted PRs (VD.xml reflects pre-codeflow state) - Forward flow PRs (skips VD.xml, uses commit messages) Tested against sdk#52727 (manual backflow) and sdk#52885 (conflicted).
-CheckMissing now scans open forward flow PRs (product repo → dotnet/dotnet) in addition to missing backflow PRs. For each forward flow PR it detects: - Conflict (Maestro 'Conflict detected' comment) - Staleness (opposite codeflow merged while PR was open) - Healthy (no issues) Summary section now shows both directions. Also fixes: dotnet-maestro comment author matching (gh CLI returns 'dotnet-maestro' not 'dotnet-maestro[bot]' for login field). Tested against dotnet/sdk (4 forward PRs: 2 healthy, 1 stale, 1 conflict) and dotnet/runtime (3 forward PRs: 2 healthy, 1 stale).
5cc04ae to
adc8cb1
Compare
6daddd0 to
9d21ee3
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (1)
.github/skills/vmr-codeflow-status/scripts/Get-CodeflowStatus.ps1:265
- Forward-flow lookup derives
$repoShortNameby stripping only thedotnet/prefix. If-Repositoryis ever used with a non-dotnet/*repo, this produces an invalid search string (e.g.,dotnet/otherOwner/repo). Consider deriving the repo name via($Repository -split '/',2)[1](or parsing owner/name once) so the search is robust and independent of the owner.
Write-Host " ✅ Open backflow PR #$($openBranches[$branchName]) exists" -ForegroundColor Green
$coveredCount++
- Use 2>$null instead of 2>&1 for gh pr view to prevent stderr corrupting JSON stream - Wrap ConvertFrom-Json in try/catch for forward flow PR details - Tighten regex fallback to require exactly 40-char hex SHA - Use case-insensitive StringComparison for SHA matching
9d21ee3 to
7ed5756
Compare
steveisok
approved these changes
Feb 8, 2026
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.
Version.Details.xml as primary VMR snapshot source + forward flow scanning
Problem
The codeflow status script relied on PR body metadata and commit messages to determine the VMR snapshot. When manual backflow was used (e.g., \darc vmr backflow\ pushed directly), the PR body was stale and commit messages didn't follow the expected format, causing incorrect freshness reporting.
Changes
Commit 1: VD.xml as primary snapshot
Commit 2: Forward flow scanning in -CheckMissing
Testing
Cross-repo context: dotnet/sdk#52727, dotnet/sdk#52885