ci: run every bwrap job on bubblewrap 0.12.0, cached per Ubuntu release #405
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 426 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.362
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #405"
general
weight: 0.35
pearu
The jobs that run the real bwrap (integration and e2e on 22.04, 24.04 and 26.04, e2e-real-systemd, and coverage's integration shards) ran whatever bubblewrap each runner's release ships: 0.6.1, 0.9.0 and 0.11.1. install.sh warns below 0.12.0, which fixes CVE-2026-87766, and the engine is going to require it. So CI was testing on versions we tell users not to run.
A new composite action, .github/actions/bwrap, gives each of those jobs bubblewrap 0.12.0 as
./install.sh --rebuild-bwrapbuilds it from Ubuntu's 0.12.0-1 source with the pinned sums. Rebuilding in every job would cost about a minute each, so the built .deb is kept in the Actions cache. The key is the source version, the Ubuntu codename, the architecture and a hash of install.sh's pinned source (version, URL, the three SHA-256 sums) and itsrebuild_bwrapfunction. A change to what or how it builds rebuilds; any other installer change keeps the cache.On a hit the action installs the cached package with apt-get and checks it: bwrap reports 0.12.0, the package is this release's build (
0.12.0-1~<codename>1), and a user-namespace sandbox runs. A cached package that fails any of that is removed and built over in the same job, which names thegh cache deletethat drops the entry. On a miss it runs the rebuild and saves the package only after the same check. Where a release's apt offers 0.12.0 or newer, the action installs that and leaves the cache alone. It relaxes the AppArmor restriction on unprivileged user namespaces before anything else, because the rebuild's own last step needs it.Each job handles its own miss instead of waiting on a separate build job. A miss happens on this PR's first run, on main's first run after the merge (a PR's cache entries are visible to that PR alone), after a change to the pins or the recipe, and after GitHub evicts the entry (7 days unused, or the 10 GB limit). A build job, by contrast, would add a dependency to every run.
The e2e job checks the dry run of
--rebuild-bwraptwice: on the distribution's bubblewrap it must say what install.sh says there (the plan, or nothing to rebuild where the release ships 0.12.0 or newer), and after the action it must say there is nothing to rebuild. The integration tests that skip where bwrap has no --overlay now also run on 22.04 and 24.04.Expected effect on CI time: a cache hit adds a few seconds per job, about what installing the distribution's bubblewrap cost before. A miss adds about a minute to each bwrap job of that release, in parallel.
Measured locally, in fresh ubuntu:22.04, 24.04 and 26.04 containers running the action's steps with a local directory as the cache:
What only the first CI run can show:
---
_🤖 Drafted by Claude Code (an AI agent) and reviewed & approved by pearu._