Skip to content

Commit 24780b0

Browse files
committed
move testing release tools to nightly
1 parent f9f3849 commit 24780b0

3 files changed

Lines changed: 22 additions & 9 deletions

File tree

.github/workflows/ci-nightly.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
# Nightly CI pipeline that tests optional dependencies (PyTorch, numba-cuda)
6-
# against the latest cuda-python wheels built on main, and runs the standard
7-
# test suite on runners reserved for nightly-only use (e.g. arm64 l4×2).
6+
# against the latest cuda-python wheels built on main, runs the standard
7+
# test suite on runners reserved for nightly-only use (e.g. arm64 l4×2), and
8+
# exercises release-time CI helper scripts so they do not silently rot between releases.
89
#
910
# This workflow does NOT build wheels — it downloads them from the latest
1011
# successful CI run on main and runs integration/standard tests.
@@ -31,6 +32,21 @@ on:
3132
default: ''
3233

3334
jobs:
35+
test-ci-tools-for-release:
36+
name: "Nightly: CI tools for release"
37+
if: ${{ github.repository_owner == 'nvidia' }}
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
42+
with:
43+
fetch-depth: 1
44+
45+
- name: Run CI tools unit tests
46+
run: |
47+
python -m pip install pytest
48+
python -m pytest -v ci/tools/tests
49+
3450
find-wheels:
3551
runs-on: ubuntu-latest
3652
outputs:
@@ -219,6 +235,7 @@ jobs:
219235
if: always()
220236
runs-on: ubuntu-latest
221237
needs:
238+
- test-ci-tools-for-release
222239
- find-wheels
223240
- test-pytorch-linux
224241
- test-pytorch-linux-aarch64
@@ -235,7 +252,9 @@ jobs:
235252
# See ci.yml for the full rationale on why we must use always()
236253
# and explicitly check each result rather than relying on the
237254
# default behaviour.
238-
if ${{ needs.find-wheels.result != 'success' }}; then
255+
if ${{ needs.test-ci-tools-for-release.result == 'cancelled' ||
256+
needs.test-ci-tools-for-release.result == 'failure' ||
257+
needs.find-wheels.result != 'success' }}; then
239258
exit 1
240259
fi
241260
if ${{ needs.test-pytorch-linux.result == 'cancelled' ||

.github/workflows/release.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,6 @@ jobs:
164164
with:
165165
python-version: "3.12"
166166

167-
# - name: Self-test release-notes checker
168-
# run: |
169-
# pip install pytest
170-
# pytest ci/tools/tests
171-
172167
- name: Check versioned release notes exist
173168
run: |
174169
python ci/tools/check_release_notes.py \

pytest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ testpaths =
1212
cuda_bindings/tests
1313
cuda_core/tests
1414
tests/integration
15-
ci/tools/tests
1615

1716
markers =
1817
pathfinder: tests for cuda_pathfinder

0 commit comments

Comments
 (0)