Skip to content

[ci-fix] Stop dump-doc collection on unsupported Helix targets (refs #131382) - #131515

Open
github-actions[bot] wants to merge 2 commits into
mainfrom
ci-fix/131382-helix-pythonpath-windowsshell-a0626974e618723f
Open

github-actions[bot] wants to merge 2 commits into
mainfrom
ci-fix/131382-helix-pythonpath-windowsshell-a0626974e618723f

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow artifact: ci-fix
Artifact kind: help
Linked KBE: #131382

Note

This pull request was prepared with GitHub Copilot assistance.

Root cause

Android Helix work items can run on Windows queues. The gen-debug-dump-docs.py post-command used POSIX shell syntax because TargetOS was android, but the command ran under cmd.exe. The unexpanded $HELIX_PYTHONPATH token was treated as a command name and failed after the tests had completed.

Fix

Use the existing WindowsShell property to select command syntax for supported targets. Do not add the dump-document post-command for Android, browser, or WASI because dump collection is not supported or useful for those targets.

This addresses Alex Koeplinger's review feedback by applying the platform exclusions consistently to both shell branches.

Validation

  • ./build.sh clr+libs -rc release
  • ./build.sh libs -rc release
  • Evaluated HelixPostCommands for Windows, Linux, Android-on-Windows, browser-on-Windows, and WASI-on-Windows. Windows and Linux retain the expected command. Android, browser, and WASI produce no dump-document command.

Evidence


Filed by ci-failure-fix.

…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

Copy link
Copy Markdown
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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Comment thread src/libraries/sendtohelixhelp.proj Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a9666ebc-df24-4bb4-8bad-b779fc37fd52
@kotlarmilos kotlarmilos changed the title [ci-fix] Needs review: expand $HELIX_PYTHONPATH via WindowsShell on Android Windows-queue Helix legs (refs #131382) [ci-fix] Stop dump-doc collection on unsupported Helix targets (refs #131382) Sep 14, 2026
@kotlarmilos
kotlarmilos marked this pull request as ready for review September 14, 2026 12:02
Copilot AI lite review requested due to automatic review settings September 14, 2026 12:02
@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The critical maccatalyst failure remains unresolved.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request fixes Helix dump-document post-command generation by selecting syntax based on the actual shell and omitting unsupported targets.

Changes:

  • Uses WindowsShell for Windows versus POSIX command syntax.
  • Skips dump-document collection for Android, browser, and WASI targets.
  • Retains commands for supported targets.
File summaries
File Summary
src/libraries/sendtohelixhelp.proj Adjusts Helix post-command conditions and shell-specific commands; maccatalyst remains unresolved.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment on lines +271 to +275
<HelixPostCommands Condition="'$(WindowsShell)' == 'true' and '$(TargetOS)' != 'android' and '$(TargetOS)' != 'browser' and '$(TargetOS)' != 'wasi'">
$(HelixPostCommands);
%HELIX_PYTHONPATH% %HELIX_CORRELATION_PAYLOAD%\gen-debug-dump-docs.py -buildid $(BUILD_BUILDID) -workitem %HELIX_WORKITEM_FRIENDLYNAME% -jobid %HELIX_CORRELATION_ID% -outdir %HELIX_WORKITEM_UPLOAD_ROOT% -templatedir %HELIX_CORRELATION_PAYLOAD% -dumpdir %HELIX_DUMP_FOLDER% -productver $(ProductVersion)
</HelixPostCommands>
<HelixPostCommands Condition="'$(TargetOS)' != 'windows' and '$(TargetOS)' != 'browser' and '$(TargetOS)' != 'wasi'">
<HelixPostCommands Condition="'$(WindowsShell)' != 'true' and '$(TargetOS)' != 'android' and '$(TargetOS)' != 'browser' and '$(TargetOS)' != 'wasi'">

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants