Skip to content

ci(sanitizers): fix nightly checkout perms + Ninja-less build - #333

Merged
amd-vivekag merged 1 commit into
ROCm:mainfrom
amd-vivekag:fix/sanitizers-ninja-generator
Aug 6, 2026
Merged

amd-vivekag merged 1 commit into
ROCm:mainfrom
amd-vivekag:fix/sanitizers-ninja-generator

Conversation

@amd-vivekag

@amd-vivekag amd-vivekag commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two independent failures were blocking the Sanitizers Nightly gfx950 job on the shared self-hosted MI350 runner:

  1. Check out code — EACCES: permission denied, rmdir '.../results/gpu_smoke'. Sibling GPU jobs (gpu-tests.yml et al.) run aorta inside a root ROCm CI container that leaves root-owned artifacts in the mounted checkout; actions/checkout's git clean runs as the runner user and can't delete them. Added the same Reclaim workspace ownership step already used by gpu-tests.yml / eval-reusable.yml / refresh-baselines.yml (throwaway root busybox container chown, with sudo docker / host sudo fallbacks) before checkout. sanitizers-nightly.yml was the only GPU workflow missing it.
  2. 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 via cmake --build --target ....

See failing run 31102697357.

Test plan

  • Re-run Sanitizers Nightly via workflow_dispatch and confirm checkout succeeds and the rocjitsu build + downstream ConSan/waitcheck steps run.

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]>
Copilot AI balanced review requested due to automatic review settings August 6, 2026 15:02

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.

🟢 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.

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@amd-vivekag
amd-vivekag merged commit a4da51a into ROCm:main Aug 6, 2026
7 checks passed
@amd-vivekag amd-vivekag changed the title ci(sanitizers): don't hard-fail nightly when Ninja is absent ci(sanitizers): fix nightly checkout perms + Ninja-less build Aug 6, 2026
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.

3 participants