[ci-fix] Needs review: expand $HELIX_PYTHONPATH via WindowsShell on Android Windows-queue Helix legs (refs #131382) - #131515
Draft
github-actions[bot] wants to merge 1 commit into
Conversation
…131382) Android-on-Windows Helix work items (linux-bionic RID on a Windows queue) took the Unix-syntax HelixPostCommand branch even though cmd.exe runs the command, so $HELIX_PYTHONPATH was never expanded and the work item exited 1. Key the gen-debug-dump-docs post-commands off the existing WindowsShell property, which already accounts for that case. 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 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. The reasoning is high-confidence, but a Helix/MSBuild condition change like this can only be exercised in a live
Send to Helixrun, so I could not validate it locally. Please confirm before merging.Root cause
Every Windows Helix work item on the affected
runtime-extra-platformslegs fails after the test run completes, with:The
gen-debug-dump-docs.pypost-command insrc/libraries/sendtohelixhelp.projpicks its shell syntax fromTargetOS:Condition="'$(TargetOS)' == 'windows'"→%HELIX_PYTHONPATH% ... \gen-debug-dump-docs.py(cmd syntax)Condition="'$(TargetOS)' != 'windows' ..."→$HELIX_PYTHONPATH .../gen-debug-dump-docs.py(POSIX syntax)But Android (
linux-bionicRID) test legs run their Helix work items on Windows queues. Those work items haveTargetOS == android, so they take the POSIX branch, yet the command actually runs undercmd.exe.cmd.exedoes not expand$HELIX_PYTHONPATH, so the token is treated as a command name, is not found, and the work item exits with code 1 — after results were already reported.Attempted fix
The project already computes a
WindowsShellproperty (line 8) that istrueprecisely when a work item runs undercmd.exe, including thelinux-bionic+ Windows-queue case:WindowsShellis already the shell-syntax selector used throughout this file (e.g.HelixPreCommand,HelixCommandPrefixEnvVarItem). This change keys the twogen-debug-dump-docspost-commands offWindowsShellinstead ofTargetOS == 'windows', so Android-on-Windows work items get the cmd-syntax command.browser/wasiremain excluded from the POSIX branch as before.What is unverified / where I need help
Send to Helixrun on the affected Windows-queue Android legs. A maintainer should confirm the post-command now expands correctly (and that no non-Android Windows-queue leg regresses).WindowsShellis the intended selector here (it is used elsewhere in this same file for exactly this shell-syntax decision).Validation
not run— MSBuildCondition/ Helix post-command change with no local test path; exercised only in CISend to Helix.Evidence
gen-debug-dump-docspost-commands began running on Android Windows-queue legs.Help wanted
area-Infrastructure):@agocke,@dotnet/runtime-infrastructureFiled 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.