Use Helix ListFiles endpoint to work around dnceng#6072#124199
Merged
lewing merged 2 commits intodotnet:mainfrom Feb 9, 2026
Merged
Use Helix ListFiles endpoint to work around dnceng#6072#124199lewing merged 2 commits intodotnet:mainfrom
lewing merged 2 commits intodotnet:mainfrom
Conversation
The Helix work item Details API returns incorrect file URIs for files in subdirectories (path flattening) and rejects unicode characters in filenames. The separate ListFiles endpoint returns direct blob storage URIs that work for all filenames. Replace the previous workaround (reconstructing permalink URIs from FileName) with a call to ListFiles, which completely bypasses both the subdirectory and unicode bugs.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the CI analysis skill’s Helix artifact retrieval to avoid broken file URIs returned by the Helix work item Details endpoint (dnceng#6072), switching to the ListFiles endpoint to obtain direct blob storage links that preserve subdirectories and support unicode filenames.
Changes:
- Add
Get-HelixWorkItemFilesto call the Helix.../workitems/{name}/files(ListFiles) endpoint. - Replace
Filesfrom the Details response with ListFiles results (Name/Link→FileName/Uri). - Update the Helix artifacts reference doc to describe the new workaround and the unicode/subdirectory issues.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/skills/ci-analysis/scripts/Get-CIStatus.ps1 | Adds ListFiles retrieval and swaps the work item Files list to use blob URIs. |
| .github/skills/ci-analysis/references/helix-artifacts.md | Updates documentation to describe the ListFiles-based workaround and the underlying Helix bug behavior. |
Comments suppressed due to low confidence (1)
.github/skills/ci-analysis/scripts/Get-CIStatus.ps1:1383
Get-HelixWorkItemDetailsbuilds the Details URL using$WorkItemNamewithout URL-encoding, whileGet-HelixWorkItemFilescorrectly usesEscapeDataString. If a work item name contains characters that must be escaped (spaces,+,#, unicode, etc.), the Details request can fail or target the wrong resource. Encode the work item segment the same way as inGet-HelixWorkItemFiles(ideally compute once and reuse for both endpoints).
$url = "https://helix.dot.net/api/2019-06-17/jobs/$JobId/workitems/$WorkItemName"
3 tasks
- helix-artifacts.md: Change {id} to {workItemName} for consistency
- Get-CIStatus.ps1: URL-encode WorkItemName in Get-HelixWorkItemDetails
to match Get-HelixWorkItemFiles (unicode/special char safety)
Member
Author
|
Also opened AzDO PR #57709 to fix the server-side bug in dotnet-helix-service (dotnet/dnceng#6072). That fix passes |
steveisok
approved these changes
Feb 9, 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.
Summary
Work around dotnet/dnceng#6072 in the CI analysis skill by using the Helix \ListFiles\ endpoint instead of file URIs from the \Details\ endpoint.
Problem
The Helix work item Details API (\GET .../workitems/{id}) has two bugs in its \Files[].Uri\ values:
The previous workaround reconstructed permalink URIs from the \FileName\ field, but this still routed through the broken /files/\ endpoint which rejects unicode.
Fix
Use the separate \ListFiles\ endpoint (\GET .../workitems/{id}/files) which returns direct blob storage URIs. These URIs:
Verified against PR #124125 CI artifacts: 53 files with unicode paths all return HTTP 200 via ListFiles blob URIs, vs broken/colliding URIs from the Details endpoint.