Commit c4bbb8a
authored
ci: parallelize and strengthen package validation (#721)
#### Overview
Improve CI throughput and artifact confidence by parallelizing independent work, unifying matrices, and adding musl and downstream package validation.
- [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does not duplicate existing work.
#### Details
- Run language workflows, checks, license validation, packaging, and tests in parallel where dependencies allow.
- Enable fail-fast consistently and consolidate repeated platform matrices and installer checks.
- Scope caches by platform target, including distinct glibc and musl cache keys.
- Test Rust core, Python, and Node on musl for amd64 and ARM64.
- Run musl Rust tests through the same `just --set ci true test-rust` path as native platforms, including locked nextest execution and JUnit output.
- Install the centrally pinned `uv`, `just`, and `cargo-nextest` versions inside the musllinux runtime; retain the existing musl coverage exclusion.
- Make the shared `just` helpers honor an explicit `UV_PYTHON` interpreter so PyO3 uses Alpine's shared Python instead of another interpreter bundled in the musllinux image.
- Add downstream smoke validation for Python wheels/source packages and Rust CLI artifacts.
- Use `npm ci` and Cargo/Maturin locked dependency resolution in musl validation paths.
- Infer musl behavior from the platform name instead of maintaining a separate matrix boolean.
Validation:
- `uv run pre-commit run --all-files`
- Targeted GitHub Actions/actionlint and workflow matrix contract checks
- YAML parsing, `just` recipe dry-run, and `git diff --check`
- Verified pinned `uv`, `just`, and `cargo-nextest` downloads for x86_64 and ARM64 musl
- Verified a missing explicit `UV_PYTHON` fails immediately and a valid explicit interpreter completes `just build-rust`
- Exercised the shared locked nextest path locally: 3,842 tests passed; eight FFI tests observed a personal ancestor `.nemo-relay/plugins.toml` and failed their clean-environment assertions
- Maturin locked-option checks, Node script syntax validation, and locked Cargo metadata validation
Docker is unavailable locally, so the complete musllinux container paths will run in GitHub Actions.
#### Where should the reviewer start?
Start with `.github/workflows/ci.yaml` for the top-level dependency graph, then review `.github/workflows/ci_rust.yml` and the shared Python resolver in `justfile` for the unified native/musl Rust test entrypoint.
#### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
- Relates to: none
## Summary by CodeRabbit
- **New Features**
- Added automated validation for Linux, macOS, Windows, and musllinux package builds.
- Added smoke tests for native packages, musllinux wheels, source distributions, plugin SDK wheels, and compiled artifacts.
- Added checks confirming packaged CLI versions match expected releases.
- **Bug Fixes**
- Improved cross-platform installer and package testing, including Windows PowerShell validation.
- Strengthened failure handling so test failures are detected promptly.
- **Chores**
- Improved package reproducibility by honoring locked dependencies during builds.
- Improved Python interpreter selection through optional environment configuration.
Authors:
- Will Killian (https://github.com/willkill07)
Approvers:
- Eric Evans II (https://github.com/ericevans-nv)
URL: #7211 parent 9a3443d commit c4bbb8a
9 files changed
Lines changed: 563 additions & 433 deletions
File tree
- .github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
| 144 | + | |
146 | 145 | | |
147 | | - | |
| 146 | + | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
157 | | - | |
| 156 | + | |
158 | 157 | | |
159 | | - | |
| 158 | + | |
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
| 166 | + | |
168 | 167 | | |
169 | | - | |
| 168 | + | |
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | | - | |
| 181 | + | |
183 | 182 | | |
184 | | - | |
| 183 | + | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
| 191 | + | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
58 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
| 78 | + | |
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
78 | | - | |
| 89 | + | |
79 | 90 | | |
80 | 91 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 92 | | |
| 93 | + | |
104 | 94 | | |
105 | 95 | | |
106 | 96 | | |
| |||
116 | 106 | | |
117 | 107 | | |
118 | 108 | | |
| 109 | + | |
119 | 110 | | |
120 | 111 | | |
121 | 112 | | |
| |||
164 | 155 | | |
165 | 156 | | |
166 | 157 | | |
167 | | - | |
| 158 | + | |
168 | 159 | | |
169 | 160 | | |
170 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
0 commit comments