Skip to content

ENH: Add pre-installation of torch to nightly health check - #102

Merged
aylward merged 2 commits into
Project-MONAI:mainfrom
aylward:torch_for_nightly
Aug 1, 2026
Merged

ENH: Add pre-installation of torch to nightly health check#102
aylward merged 2 commits into
Project-MONAI:mainfrom
aylward:torch_for_nightly

Conversation

@aylward

@aylward aylward commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings August 1, 2026 12:53
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@aylward, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 26 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4429967f-278c-451a-8aec-436a2e95f33c

📥 Commits

Reviewing files that changed from the base of the PR and between 10d8ff0 and 40c3909.

📒 Files selected for processing (1)
  • .github/workflows/nightly-health.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Nightly Health GitHub Actions workflow to make the Windows GPU runner environment fail earlier and more deterministically when CUDA toolchain / PyTorch prerequisites for torch-scatter are missing or mis-resolved.

Changes:

  • Adds an explicit nvcc availability check to fail fast before dependency builds.
  • Pre-installs build prerequisites (setuptools, wheel) and a CUDA-index PyTorch before resolving extras that may compile CUDA extensions.
  • Adds explicit $LASTEXITCODE checks after several install commands to avoid PowerShell masking failures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/nightly-health.yml Outdated
Comment thread .github/workflows/nightly-health.yml
Copilot AI review requested due to automatic review settings August 1, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

.github/workflows/nightly-health.yml:70

  • The nvcc check only searches PATH via Get-Command. On Windows runners, CUDA Toolkit often sets CUDA_PATH/CUDA_HOME without putting nvcc.exe on PATH, so this can fail the job even when nvcc is installed and would be found by build tooling. It also prints $nvcc.Source, which is not reliably the executable path for ApplicationInfo. Consider resolving an explicit nvcc path from PATH or CUDA_PATH/CUDA_HOME and invoking that path.
          $nvcc = Get-Command nvcc -ErrorAction SilentlyContinue
          if (-not $nvcc) {
              Write-Error "nvcc not found on PATH; torch-scatter would build CPU-only"
              exit 1
          }

@aylward
aylward merged commit 59ca5e6 into Project-MONAI:main Aug 1, 2026
10 checks passed
@aylward
aylward deleted the torch_for_nightly branch August 1, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants