Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4aadce2
Add nightly CI pipeline for optional-dependency testing (PyTorch, num…
leofang Apr 29, 2026
6dea4c3
Add concurrency group and fix checks job in ci-nightly.yml
leofang Apr 29, 2026
ac5238c
Temporarily add push trigger to ci-nightly.yml for testing
leofang Apr 29, 2026
cb5aefa
Use shallow clone (fetch-depth: 1) in ci-nightly.yml
leofang Apr 29, 2026
9286598
Fix artifact name mismatch in nightly CI by passing source SHA
leofang Apr 29, 2026
0b7cc50
Fix nightly CI: single pip call, display step, numba cmd, Windows VC++
leofang Apr 29, 2026
edeaa76
Match CUDA_VER to TORCH_CUDA in nightly pytorch matrix
leofang Apr 29, 2026
6f04205
Match CUDA_VER to TORCH_CUDA in nightly pytorch matrix
leofang Apr 29, 2026
da50070
Merge remote-tracking branch 'origin/main' into ci-nightly-optdeps
leofang Apr 30, 2026
cec1d8d
Remove numba-cuda test_linker.py patch (fixed upstream)
leofang Apr 30, 2026
833490e
Merge branch 'ci-nightly-optdeps' of https://github.com/leofang/cuda-…
leofang Apr 30, 2026
2a749d5
Merge branch 'main' into ci-nightly-optdeps
leofang May 1, 2026
bb75dcc
Merge branch 'main' into ci-nightly-optdeps
leofang May 11, 2026
dd909d3
Merge remote-tracking branch 'origin/main' into ci-nightly-optdeps
leofang May 14, 2026
ad2a093
Merge branch 'ci-nightly-optdeps' of https://github.com/leofang/cuda-…
leofang May 14, 2026
cd4277a
Consolidate CI run ID lookups into ci/tools/lookup-run-id
leofang May 14, 2026
901dc09
Remove cuda_pathfinder listing from Windows display step
leofang May 14, 2026
b42a4be
Enforce --tag/--branch mutual exclusivity in lookup-run-id
leofang May 14, 2026
0415bab
Show torch version and numba-cuda in nightly CI job names
leofang May 14, 2026
025a26e
Improve CI job name format with descriptive labels
leofang May 14, 2026
a566781
Handle BINDINGS_SOURCE in nightly install and display steps
leofang May 14, 2026
9fd2f3e
Fix display step guard: skip only for published bindings
leofang May 14, 2026
a232927
Pin nightly pytorch 'latest' to 2.11 (tensor bridge version cap)
leofang May 14, 2026
7d8c286
Use full version 2.11.0 for torch pin
leofang May 14, 2026
2396430
Add arm64 pytorch nightly entries and fix incorrect comment
leofang May 14, 2026
4d1c871
Address rwgk review: cron offset, CUDA_BUILD_VER from source SHA, che…
leofang May 15, 2026
7d36fea
Consolidate core and nightly-* install logic in run-tests
leofang May 15, 2026
f88eddd
revert the test trigger
leofang May 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address rwgk review: cron offset, CUDA_BUILD_VER from source SHA, che…
…cks guard

- Shift cron schedule from minute 0 to minute 17 to avoid GitHub's
  documented high-load window at the top of every hour.
- Resolve CUDA_BUILD_VER from the source run's versions.yml (via
  gh api at HEAD_SHA) instead of the current checkout, so
  workflow_dispatch with an older run-id gets the matching CUDA
  version for artifact names.
- Add find-wheels as a direct dependency of the checks job with an
  explicit success gate, preventing silent green when find-wheels
  fails and all downstream jobs are skipped.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
  • Loading branch information
leofang and claude committed May 15, 2026
commit 4d1c8717d9e6127d8ce13cc4d266414e6ce10f31
35 changes: 26 additions & 9 deletions .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ on:
- "main"
- "pull-request/[0-9]+"
schedule:
# 2 AM UTC daily, after the midnight main CI build finishes
- cron: "0 2 * * *"
# 2:17 AM UTC daily, after the midnight main CI build finishes.
# Avoid minute 0 because GitHub documents high scheduled-workflow load
# at the start of every hour, where queued jobs may be delayed or dropped.
- cron: "17 2 * * *"
workflow_dispatch:
inputs:
run-id:
Expand All @@ -37,19 +39,13 @@ jobs:
outputs:
RUN_ID: ${{ steps.find.outputs.run_id }}
HEAD_SHA: ${{ steps.find.outputs.head_sha }}
CUDA_BUILD_VER: ${{ steps.get-vars.outputs.cuda_build_ver }}
CUDA_BUILD_VER: ${{ steps.find.outputs.cuda_build_ver }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1

- name: Get CUDA build versions
id: get-vars
run: |
cuda_build_ver=$(yq '.cuda.build.version' ci/versions.yml)
echo "cuda_build_ver=$cuda_build_ver" >> $GITHUB_OUTPUT

- name: Find latest successful CI run on main
id: find
env:
Expand All @@ -67,8 +63,25 @@ jobs:
HEAD_SHA=$(echo "$OUTPUT" | sed -n '2p')
fi

if [[ -z "$HEAD_SHA" || "$HEAD_SHA" == "null" ]]; then
echo "::error::Could not resolve head SHA for CI run $RUN_ID"
exit 1
fi

CUDA_BUILD_VER=$(gh api \
"repos/${{ github.repository }}/contents/ci/versions.yml?ref=$HEAD_SHA" \
--jq '.content' \
| base64 -d \
| yq '.cuda.build.version')

if [[ -z "$CUDA_BUILD_VER" || "$CUDA_BUILD_VER" == "null" ]]; then
echo "::error::Could not resolve CUDA build version from $HEAD_SHA"
exit 1
fi

echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT
echo "head_sha=$HEAD_SHA" >> $GITHUB_OUTPUT
echo "cuda_build_ver=$CUDA_BUILD_VER" >> $GITHUB_OUTPUT

# ── PyTorch interop tests ──

Expand Down Expand Up @@ -189,6 +202,7 @@ jobs:
if: always()
runs-on: ubuntu-latest
needs:
Comment thread
leofang marked this conversation as resolved.
Resolved
- find-wheels
- test-pytorch-linux
- test-pytorch-linux-aarch64
- test-pytorch-windows
Expand All @@ -203,6 +217,9 @@ jobs:
# See ci.yml for the full rationale on why we must use always()
# and explicitly check each result rather than relying on the
# default behaviour.
if ${{ needs.find-wheels.result != 'success' }}; then
exit 1
fi
if ${{ needs.test-pytorch-linux.result == 'cancelled' ||
needs.test-pytorch-linux.result == 'failure' ||
needs.test-pytorch-linux-aarch64.result == 'cancelled' ||
Expand Down
Loading