Sort cargo ops isolate GRUB drop-in after provider drop-ins#955
Conversation
🤖 Claude Code ReviewPR: #955 This is a small, focused follow-up PR. I've reviewed the full diff and the surrounding code ( ReviewSummaryThe change does two related things:
Both are sound and directly address a real failure mode (a provider drop-in silently clobbering the isolation args, previously only discovered after a reboot cycle). Strengths
Minor issues
VerdictClean, well-scoped, correctly reasoned. No blocking concerns. The only thing I'd consider addressing is the stale Model: claude-opus-4-8 |
Provider images can ship an /etc/default/grub.d drop-in that overwrites GRUB_CMDLINE_LINUX_DEFAULT instead of appending, and drop-ins are sourced in glob order. Name ours zz- so it sorts last, and verify the generated grub.cfg contains the isolation args before rebooting so a clobbered cmdline fails fast without a wasted reboot cycle.
|
Took the optional suggestion: the pre-reboot check now uses |
d8d1f96 to
798252f
Compare
|
| Project | Bencher |
| Branch | claude/runner-ops-isolate-ordering |
| Testbed | intel-v1 |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| Adapter::Json | 📈 view plot 🚷 view threshold | 4.67 µs(+0.19%)Baseline: 4.66 µs | 4.89 µs (95.36%) |
| Adapter::Magic (JSON) | 📈 view plot 🚷 view threshold | 4.48 µs(-1.11%)Baseline: 4.53 µs | 4.71 µs (95.14%) |
| Adapter::Magic (Rust) | 📈 view plot 🚷 view threshold | 26.05 µs(+1.49%)Baseline: 25.66 µs | 26.67 µs (97.66%) |
| Adapter::Rust | 📈 view plot 🚷 view threshold | 3.49 µs(-0.13%)Baseline: 3.50 µs | 3.59 µs (97.34%) |
| Adapter::RustBench | 📈 view plot 🚷 view threshold | 3.49 µs(-0.08%)Baseline: 3.50 µs | 3.59 µs (97.35%) |
What
Follow-up to #954, fixing an issue found in field testing of
cargo ops isolate:99-bencher-isolation.cfgtozz-bencher-isolation.cfg. Provider images can ship their own/etc/default/grub.ddrop-in (e.g. Hetzner'shetzner.cfg) that overwritesGRUB_CMDLINE_LINUX_DEFAULTinstead of appending to it. Drop-ins are sourced in glob order, so99-sorted beforehetzner.cfgand our args were silently clobbered;zz-sorts last./boot/grub/grub.cfgactually contains the isolation args afterupdate-gruband before rebooting. A clobbered cmdline now fails fast with a pointer at drop-in ordering, instead of only surfacing after a wasted reboot cycle.Why
Without the ordering fix, the command completed
update-grubsuccessfully but the rebooted kernel came up without any isolation args, and the failure was only detected by the post-reboot cmdline check.How
tasks/runner_ops/src/task/isolate.rs:GRUB_DROP_INrenamed with a comment explaining the ordering constraint; pre-rebootgrepcheck on the generated configtasks/runner_ops/CLAUDE.md: document the drop-in name and why it sorts last