Commit e50eaca
ci(rust): rewrite rust-ci.yml so the workflow actually registers (#89)
The previous Rust CI workflow had been failing at the workflow-parse
layer since 2026-04-04. The symptoms in the Actions API are
characteristic: `name: ".github/workflows/rust-ci.yml"` (the file
path, not the declared `name: Rust CI`), 0 jobs ever scheduled, and
"This run likely failed because of a workflow file issue" in the
runner output. Every push for ~6 weeks reported failure for this
workflow specifically without ever running any of its jobs.
Because Rust CI is not a required status check, auto-merge was happy
to land PRs without it. ~25 PRs landed in this state.
I could not reproduce the parser failure offline (`actionlint` was
not available locally). Rather than spelunk through invisible-char
hunches, rewrite from a minimal template that is known to work in
GitHub Actions today and let CI tell us if it actually registers:
- drop the verbose comment header and SPDX-only line (keep one)
- simplify `on:` to its idiomatic form
- replace SHA-pinned actions with major-version tags
(`actions/checkout@v4`, `dtolnay/rust-toolchain@stable`/`@master`,
`Swatinem/rust-cache@v2`) — easier to maintain and matches what
works elsewhere in the org
- keep the MSRV matrix (`1.85`, `stable`) from V-L3-K1
- drop the `if: hashFiles('Cargo.toml') != ''` gate — this repo
has a Cargo.toml at root unconditionally, so the gate adds zero
value and is a source of parse-time complexity
- keep the dependency `test` → `check` so test only runs when
fmt+clippy are clean
Closes the "Rust CI never ran" debt accumulated across recent PRs.
Future Rust changes will land with real verification.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2c089a7 commit e50eaca
1 file changed
Lines changed: 18 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
10 | | - | |
11 | 7 | | |
12 | | - | |
| 8 | + | |
| 9 | + | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
| 20 | + | |
24 | 21 | | |
25 | | - | |
26 | | - | |
27 | 22 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 23 | + | |
| 24 | + | |
33 | 25 | | |
34 | 26 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 27 | + | |
| 28 | + | |
43 | 29 | | |
44 | | - | |
45 | | - | |
| 30 | + | |
46 | 31 | | |
47 | 32 | | |
48 | 33 | | |
49 | | - | |
| 34 | + | |
50 | 35 | | |
51 | 36 | | |
52 | | - | |
53 | 37 | | |
54 | 38 | | |
55 | 39 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
60 | 43 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 44 | + | |
| 45 | + | |
66 | 46 | | |
67 | 47 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 48 | + | |
71 | 49 | | |
72 | 50 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 51 | + | |
| 52 | + | |
0 commit comments