Commit 137bcc2
fix(terraphim_rlm): stub fcctl_core private dep to allow --all-features compilation; add CI gate
The `firecracker` feature in `terraphim_rlm` imported `fcctl_core` (a private
repo, commented out in Cargo.toml). With `--all-features` the feature was
enabled and the module tried to compile — producing 10 errors. This is
exactly the regression class issue #1295 wants to prevent.
Fix A (Cargo.toml):
- Declare `terraphim-firecracker` workspace crate as an optional dep, enabled
by the `firecracker` feature (was `firecracker = []` with no deps).
Fix B (firecracker.rs):
- Replace the three `use fcctl_core::*` imports with compile-time stub types
(`VmManager`, `SnapshotManager`, `SnapshotType`, `FcVmConfig`, `FcVmType`,
`FcVmClient`, `FcSnapshotInfo`). Stubs carry the same API shape so the
type checker accepts the existing code paths. Methods return errors;
runtime behaviour is unchanged because `initialize()` returns `Err` before
setting any `Option<VmManager>` / `Option<SnapshotManager>` (which stay
`None` forever in stub mode, so `if let Some(ref vm)` arms are dead code).
- Replace `fcctl_core::firecracker::VmConfig { ... VmType::Minimal }` calls
with the new `FcVmConfig { ... FcVmType::Minimal }` stubs.
- Fix `ip.to_string()` call (E0308: mismatched types).
CI gate (ci-native.yml):
- Add `check-all-features` job running `cargo check --workspace --all-features`
after `lint-and-format`, sharing the sccache layer.
- Scoped to `cargo check` (not test) to stay under 3 minutes.
Closes #1295
Refs #2226
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 489b104 commit 137bcc2
4 files changed
Lines changed: 172 additions & 11 deletions
File tree
- .github/workflows
- crates/terraphim_rlm
- src/executor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 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 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
170 | 232 | | |
171 | 233 | | |
172 | 234 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 26 | + | |
33 | 27 | | |
34 | 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 | + | |
| 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 | + | |
35 | 130 | | |
36 | 131 | | |
37 | 132 | | |
| |||
247 | 342 | | |
248 | 343 | | |
249 | 344 | | |
250 | | - | |
| 345 | + | |
251 | 346 | | |
252 | 347 | | |
253 | 348 | | |
254 | 349 | | |
255 | 350 | | |
256 | 351 | | |
257 | | - | |
| 352 | + | |
258 | 353 | | |
259 | 354 | | |
260 | 355 | | |
| |||
425 | 520 | | |
426 | 521 | | |
427 | 522 | | |
428 | | - | |
| 523 | + | |
429 | 524 | | |
430 | 525 | | |
431 | 526 | | |
| |||
0 commit comments