Commit 36d0dfe
authored
Consolidate CI test jobs: merge GPU smoke test and add Python version matrix (#8)
* Consolidate CI test jobs: merge GPU smoke test and add Python version matrix
- Remove separate smoke-test-gpu job (was serial after gpu-tests, increasing
pipeline time). Smoke training+inference now runs in the same gpu-tests job.
- Replace python-compat matrix (6 jobs, SKIP_TESTS=1) with two focused job
groups that actually run tests:
* gpu-tests: matrix over Python 3.11/3.12/3.13 on GPU runners — installs
train deps, runs full test suite (CPU+GPU), then smoke training+inference.
* inference-tests: matrix over Python 3.11/3.12/3.13 on CPU — installs
inference deps, runs tests with pre-trained models (GPU tests auto-skip).
Reduces total jobs from 11 to 9 while increasing actual test coverage.
Made-with: Cursor
* Fix GPU CI: set DEBIAN_FRONTEND=noninteractive to prevent tzdata hang
The deadsnakes PPA pulls in tzdata as a dependency, which triggers an
interactive timezone configuration prompt in the container. This caused
all 3 GPU matrix jobs to hang for 45 minutes until timeout.
Made-with: Cursor
* Add pull_request trigger and gate GPU jobs to push/merge_group only
Without the pull_request trigger, CI never fires on PRs — checks aren't
even planned (e.g. PR #9 shows zero checks). GPU jobs are gated to
push/merge_group events to avoid consuming self-hosted GPU runners on
every PR update.
Made-with: Cursor
* Remove event gate on GPU jobs so they run on PRs too
GPU jobs complete in ~5-10 minutes and serve as a useful pre-merge check.
Made-with: Cursor
* Remove pull-request/[0-9]+ from push trigger to fix duplicate CI runs
The copy-pr-bot creates pull-request/N branches for each PR, which
matched the push trigger and caused every CI job to run twice (once
from pull_request, once from push). The pull_request trigger already
covers PRs targeting main, so the push pattern is redundant.
Made-with: Cursor
* Fix GPU CI: gate on event type, restore push trigger for copy-pr-bot
NVIDIA self-hosted runners block pull_request events outright. GPU CI
must run via push events — either to main or to pull-request/[0-9]+
branches created by copy-pr-bot for PR testing.
- Restore "pull-request/[0-9]+" in push trigger
- Gate gpu-tests with if: github.event_name != 'pull_request'
- CPU jobs (inference-tests, unit-tests, etc.) still run on pull_request
Made-with: Cursor
* Remove pull-request/[0-9]+ push pattern and pull_request gate on GPU jobs
Simplify triggers: all jobs (including GPU) run on pull_request, push
to main, and merge_group. The pull-request/[0-9]+ branch convention is
not used by contributors.
Made-with: Cursor
* Merge unit-tests + inference-tests, gate GPU jobs from pull_request
- Combine unit-tests (py3.12) and inference-tests (py3.11/3.12/3.13)
into a single unit-tests matrix job across all three Python versions.
Both ran identical test suites with inference requirements.
- Re-add if: github.event_name != 'pull_request' on gpu-tests since
NVIDIA self-hosted runners block pull_request events entirely.
GPU CI runs on push to main and merge_group.
Made-with: Cursor
* Split GPU tests into separate workflow to avoid skipped PR noise
NVIDIA self-hosted runners block pull_request events, so GPU jobs in
the main CI workflow always showed as a single "Skipped" entry with
unresolved matrix names on every PR.
Move GPU jobs to ci-gpu.yml (triggers: push to main, merge_group,
workflow_dispatch). The main ci.yml keeps CPU jobs only (triggers:
pull_request, push to main, merge_group, workflow_dispatch).
Made-with: Cursor
* Enable GPU CI on PRs via copy-pr-bot push trigger
Add pull-request/[0-9]+ to ci-gpu.yml push trigger so GPU tests run
when copy-pr-bot creates the corresponding branch for a PR.
Made-with: Cursor
* Fix smoke test step: use bash shell for source command
The container default shell is sh, which doesn't have the source
builtin. Explicitly set shell: bash for the venv activation step.
Made-with: Cursor
* Install gcc in GPU container for torch.compile/inductor
The smoke training step uses torch.compile which invokes the inductor
backend, requiring a C compiler. The ubuntu:22.04 container doesn't
ship with gcc.
Made-with: Cursor
* Switch CPU jobs to NVIDIA self-hosted linux-amd64-cpu4 runners
Use nv-cpu-general runner group instead of GitHub-hosted ubuntu-latest.
Also restore pull-request/[0-9]+ push trigger in case self-hosted CPU
runners block pull_request events (same as GPU runners).
Made-with: Cursor
* Remove pull_request trigger since all runners are NVIDIA self-hosted
NVIDIA self-hosted runners block pull_request events. All CI (CPU and
GPU) now runs via copy-pr-bot push to pull-request/[0-9]+ branches.
Made-with: Cursor1 parent 6f78996 commit 36d0dfe
2 files changed
Lines changed: 110 additions & 119 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
37 | | - | |
| 34 | + | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
| |||
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | | - | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
0 commit comments