Repository navigation
ci(sanitizers): fix nightly checkout perms + Ninja-less build - #333
Merged
Merged
Conversation
The gfx950 sanitizer nightly aborted in "Build rocjitsu sanitizer binaries" with `CMake was unable to find a build program corresponding to "Ninja"` because the self-hosted MI350 runner has no Ninja on PATH. Prefer Ninja when the runner provides it, otherwise fall back to CMake's default generator, and drive the build via `cmake --build` so it works with either generator. Co-authored-by: Cursor <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Ready to approve
The focused workflow change correctly addresses the observed missing-Ninja failure.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
Updates the nightly sanitizer workflow to build rocjitsu across runners with or without Ninja.
Changes:
- Detects Ninja before selecting the generator.
- Uses generator-independent
cmake --build.
File summaries
| File | Description |
|---|---|
.github/workflows/sanitizers-nightly.yml |
Adds generator fallback for rocjitsu builds. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
2 tasks
1 task
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.
Summary
Two independent failures were blocking the Sanitizers Nightly gfx950 job on the shared self-hosted MI350 runner:
Check out code—EACCES: permission denied, rmdir '.../results/gpu_smoke'. Sibling GPU jobs (gpu-tests.ymlet al.) runaortainside a root ROCm CI container that leaves root-owned artifacts in the mounted checkout;actions/checkout'sgit cleanruns as the runner user and can't delete them. Added the same Reclaim workspace ownership step already used bygpu-tests.yml/eval-reusable.yml/refresh-baselines.yml(throwaway rootbusyboxcontainerchown, withsudo docker/ hostsudofallbacks) before checkout.sanitizers-nightly.ymlwas the only GPU workflow missing it.Build rocjitsu sanitizer binaries—CMake was unable to find a build program corresponding to "Ninja". The runner has no Ninja on PATH. Now prefers Ninja only when present, otherwise falls back to CMake's default generator, and builds viacmake --build --target ....See failing run 31102697357.
Test plan
workflow_dispatchand confirm checkout succeeds and the rocjitsu build + downstream ConSan/waitcheck steps run.