Clean up CI annotations and surface sccache stats from cibuildwheel#1879
Clean up CI annotations and surface sccache stats from cibuildwheel#1879leofang wants to merge 10 commits intoNVIDIA:mainfrom
Conversation
Set PIP_CACHE_DIR=/tmp/pip-cache and PIP_ROOT_USER_ACTION=ignore in the container env for test-wheel-linux and coverage-linux jobs. These jobs run as root in Ubuntu containers where /github/home/.cache/pip is not writable, causing ~54 harmless warnings per CI run. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/ok to test 1a0a753 |
|
The pip root-user warning was still appearing because actions/setup-python runs its internal "pip upgrade" on the host runner, not inside the container. Container-level env vars are invisible to host-side actions. Moving PIP_ROOT_USER_ACTION to the job-level env block makes it available to both host-side actions (setup-python) and container-side run steps. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/ok to test c938310 |
The pip root-user warning originates from actions/setup-python's internal ensurepip call, which deliberately strips all PIP_* env vars (CPython design, see python/cpython#139363). Neither container.env nor job-level env can suppress it. See PR comment for full analysis. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Why
|
- Update actions/cache from v4.2.3 (node20) to v5.0.4 (node24) in fetch_ctk to eliminate Node.js 20 deprecation warnings. All runners are on v2.332+ (v5 requires >= 2.327.1). - Set disable_annotations on sccache-action to suppress the cache stats notice annotations and job summaries. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/ok to test 38416ad |
- JamesIves/github-pages-deploy-action: v4.7.3 (node20) → v4.8.0 (node24) - marocchino/sticky-pull-request-comment: v2.9.2 (node20) → v3.0.3 (node24) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sccache stats were previously lost because cibuildwheel runs compilation inside a manylinux container with its own sccache server instance, while sccache-action on the host sees 0 hits. Fix by dumping sccache stats JSON from inside the container to the host filesystem (via /host/ mount), then reading it in a new composite action that writes a formatted table to GITHUB_STEP_SUMMARY. Inspired by NVIDIA/cccl PR #3621. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/ok to test 5984786 |
- Use cache_hits + cache_misses (per language) as the denominator instead of compile_requests, which includes non-compilation calls (linker invocations, etc). This matches sccache's own hit rate. - Add build-step input to reference the cibuildwheel step name in the summary for easier navigation to full stats. - Remove intermediate summary file; only write to GITHUB_STEP_SUMMARY. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
GHA has no construct to reference a previous step's name dynamically (steps context only exposes outcome/conclusion/outputs). The label input already identifies which build produced the stats, so the hardcoded build-step name is redundant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This reverts commit f4ed3f3.
|
/ok to test 3b0730e |
Summary
Reduce CI annotation noise and surface sccache stats from cibuildwheel containers.
Changes
PIP_CACHE_DIR=/tmp/pip-cacheincontainer.envfor Linux container CI jobs — redirects pip cache to a writable location (the default/github/home/.cache/pipis not writable when running as root on self-hosted runners).actions/cachefrom v4.2.3 (node20) to v5.0.4 (node24) infetch_ctk.JamesIves/github-pages-deploy-actionfrom v4.7.3 (node20) to v4.8.0 (node24) indoc_preview.marocchino/sticky-pull-request-commentfrom v2.9.2 (node20) to v3.0.3 (node24) indoc_preview.disable_annotations: 'true') — the host-side stats show 0% because compilation happens inside cibuildwheel's container..github/actions/sccache-summarycomposite action — dumps sccache stats JSON from inside the cibuildwheel container to the host via/host/mount, then writes a formatted table toGITHUB_STEP_SUMMARY. Applied to all 3 cibuildwheel steps (cuda.bindings, cuda.core, cuda.core prev CTK). Inspired by NVIDIA/cccl PR #3621.Annotation impact
Remaining Node.js 20 warnings (no node24 releases yet)
mozilla-actions/sccache-action@0.0.9ilammy/msvc-dev-cmd@v1conda-incubator/setup-miniconda@v3.3.0actions/upload-pages-artifact@v4.0.0(composite; internally pinsupload-artifact@v4.6.2on node20)Test plan
actions/cachev5 works with self-hosted runners-- Leo's bot