Add script to run Helix Job Monitor for Azure DevOps builds - #17326
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new PowerShell utility script to help developers run the Helix Job Monitor locally for a given Azure DevOps build results URL, resolving the relevant repo/stage metadata from the build timeline.
Changes:
- Introduces
scripts/run-helix-job-monitor.ps1to fetch build + timeline metadata from Azure DevOps and locate Helix Job Monitor jobs. - Resolves the owning stage/stage attempt and constructs the
Microsoft.DotNet.Helix.JobMonitorcommand-line arguments (with an-ArgsOnlyoutput mode). - Runs the Job Monitor via
eng/common/dotnet.ps1against the JobMonitor project.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Suppressed comments (2)
scripts/run-helix-job-monitor.ps1:228
eng/common/dotnet.ps1is Windows-only (it invokesdotnet.exewith Windows path separators). As written, this script will fail when run under PowerShell on Linux/macOS. Use OS detection to selectdotnet.ps1vsdotnet.sh, and build paths with platform-neutral APIs instead of embedding..\...in the child path.
$projectPath = Join-Path $PSScriptRoot '..\src\Microsoft.DotNet.Helix\JobMonitor\Microsoft.DotNet.Helix.JobMonitor.csproj'
$dotnetScript = Join-Path $PSScriptRoot '..\eng\common\dotnet.ps1'
scripts/run-helix-job-monitor.ps1:255
- When
$dotnetScriptresolves toeng/common/dotnet.sh(non-Windows), invoking it as& $dotnetScript ...may fail unless the file is executable. Calling it viabashis more reliable from PowerShell.
& $dotnetScript run --project $projectPath --configuration Debug -- @jobMonitorArguments
akoeplinger
approved these changes
Aug 13, 2026
mmitche
approved these changes
Aug 13, 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.
A quick tool that you give build URI and it runs the monitor locally