[ci-fix] Needs review: select gen-debug-dump-docs Helix post-command shell by WindowsShell (refs #131382) - #131981
Draft
github-actions[bot] wants to merge 1 commit into
Conversation
The gen-debug-dump-docs Helix post-command chose cmd vs POSIX syntax based on $(TargetOS) == 'windows', but the actual work-item shell is determined by $(WindowsShell). For linux-bionic (Android) and MacCatalyst work items that run on a Windows Helix queue, WindowsShell is true while TargetOS is not 'windows', so the POSIX $HELIX_PYTHONPATH form was emitted into cmd.exe and failed with "'$HELIX_PYTHONPATH' is not recognized", failing the work item after tests had already run. Key the shell selection off $(WindowsShell) to match the rest of the file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
This was referenced Aug 7, 2026
Open
This was referenced Aug 7, 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.
Workflow artifact: ci-fix
Artifact kind: help
Linked KBE: #131382
Note
This is an AI/Copilot-generated best-effort fix attempt that I could not fully validate by running the Helix pipeline. It is a starting point for a maintainer, not a finished change. Please review the analysis below before merging.
Root cause (best analysis)
Windows Helix work items fail after their tests have already run with:
The
gen-debug-dump-docs.pypost-command insrc/libraries/sendtohelixhelp.proj(theBuildHelixWorkItemstarget) selected the cmd-style vs POSIX-style command form based on'$(TargetOS)' == 'windows':%HELIX_PYTHONPATH% ...\gen-debug-dump-docs.py) — emitted whenTargetOS == windows.$HELIX_PYTHONPATH .../gen-debug-dump-docs.py) — emitted whenTargetOS != windows.But the shell that actually runs the work item is chosen elsewhere in the same file by
$(WindowsShell):So for
linux-bionic(Android) — and, per@matouskozakon the KBE, MacCatalyst x64 — work items that run on a Windows Helix queue,WindowsShellistruewhileTargetOSis notwindows. The old condition emitted the POSIX$HELIX_PYTHONPATHform into cmd.exe, which does not expand$VAR, so the post-command failed and the work item exited 1 even though the tests themselves passed. Every other shell-sensitive command in this file already keys off$(WindowsShell).Attempted fix
Key the post-command shell selection off
$(WindowsShell)instead of$(TargetOS), matching the rest of the file:Condition="'$(TargetOS)' == 'windows'"→Condition="'$(WindowsShell)' == 'true'"Condition="'$(TargetOS)' != 'windows' and ..."→Condition="'$(WindowsShell)' != 'true' and ..."The
browser/wasiexclusions on the POSIX branch are preserved.What is unverified / where I need help
runtime-extra-platformsfor those legs would confirm.HelixPostCommands/HelixPreCommandsproducer for these legs relies on the oldTargetOS-based split.Validation
not run because the Helix work-item command is only materialized during a CI Helix submission, which is not reproducible in this sandboxEvidence
Build:link in [ci-scan] Build break: Windows Helix work items fail on unexpanded $HELIX_PYTHONPATH in gen-debug-dump-docs post-command #131382 (Windows Helix work items on runtime-extra-platforms).Help wanted
area-Infrastructure):@agocke,@dotnet/runtime-infrastructure(consultant:@MichaelSimons)Suggested reviewers / area contacts
@matouskozakconfirmed the same failure on MacCatalyst x64 jobs in the KBE and may be able to validate the mobile/Windows-queue legs.Filed by
ci-failure-fix. Comment here or on the workflow file to suggest changes;ci-failure-scan-feedbackreads in-scope feedback daily and opens (or updates) a PR with prompt edits.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.