Skip to content

Fix Helix file URIs for subdirectory artifacts (xharness-output)#124126

Merged
lewing merged 2 commits intomainfrom
lewing/helix-xharness-uri-fix
Feb 7, 2026
Merged

Fix Helix file URIs for subdirectory artifacts (xharness-output)#124126
lewing merged 2 commits intomainfrom
lewing/helix-xharness-uri-fix

Conversation

@lewing
Copy link
Member

@lewing lewing commented Feb 7, 2026

Two improvements to the Helix CI analysis skill:

1. Fix Helix file URIs for subdirectory artifacts (xharness-output)

Workaround for dotnet/dnceng#6072 — Helix API returns incorrect URIs for files in subdirectories (e.g., xharness-output/wasm-console.log). The API strips the path prefix, resulting in 404s. This rebuilds the correct URI from the FileName when it contains /.

2. Broaden skill to general CI status analysis

The skill was described as "failure analysis" only, which meant it wasn't used when checking general CI status (e.g., "is CI passing?", "what's the build status?"). Changes:

  • SKILL.md: Updated description and trigger phrases to include CI status checks, not just failures
  • Job summary: Build output now shows total/passed/failed/pending counts (e.g., Jobs: 143 total (142 passed, 1 failed)) instead of only showing failed job count
  • No-build message: When no CI build exists, reports "CI pipeline has not been triggered yet" instead of a generic error

Before:

Failed jobs: 1

After:

Jobs: 143 total (142 passed, 1 failed)

Workaround for dotnet/dnceng#6072: Helix API returns incorrect file URIs
for files uploaded from subdirectories (e.g., xharness-output/testResults.xml).
Rebuild URIs from the FileName field which correctly includes the path.
Copilot AI review requested due to automatic review settings February 7, 2026 05:19
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 7, 2026
@lewing
Copy link
Member Author

lewing commented Feb 7, 2026

cc @akoeplinger @dotnet/dnceng — this is a client-side workaround for dotnet/dnceng#6072 (Helix file URIs broken for subdirectory artifacts like xharness-output). Can be removed once the API fix lands.

Copy link
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 AzDO Helix failures skill to work around a Helix API issue where artifact links for files uploaded from subdirectories (e.g., xharness-output/...) are returned with incorrect URIs, causing 404s when followed.

Changes:

  • Add a URI “fixup” step in Get-HelixWorkItemDetails to rebuild file URIs based on FileName when the file is under a subdirectory.
  • Document the known Helix API URI bug and the script workaround in helix-artifacts.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/skills/azdo-helix-failures/scripts/Get-HelixFailures.ps1 Rebuilds Helix artifact URIs for subdirectory file paths to avoid broken links.
.github/skills/azdo-helix-failures/references/helix-artifacts.md Adds documentation about the Helix API bug affecting subdirectory artifact URIs.

@lewing lewing added arch-arm64 area-skills Agent Skills and removed arch-arm64 needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Feb 7, 2026
@lewing lewing force-pushed the lewing/helix-xharness-uri-fix branch from ec1d152 to da96dd9 Compare February 7, 2026 08:30
Copilot AI review requested due to automatic review settings February 7, 2026 08:30
@lewing lewing requested a review from steveisok February 7, 2026 08:31
Copy link
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

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

- Update SKILL.md description to cover CI status checks, not just failures
- Add trigger phrases: 'is CI passing', 'build status', 'ready to merge'
- Add job summary in build output (e.g., '143 total: 142 passed, 1 failed')
- Improve no-build-found message to explain CI hasn't been triggered
@lewing lewing force-pushed the lewing/helix-xharness-uri-fix branch from da96dd9 to 69319e2 Compare February 7, 2026 08:45
@lewing lewing merged commit 0b691ba into main Feb 7, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-skills Agent Skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants