|
| 1 | +[agent] 2026-12-01: Bundler (RubyGems) bug-hunt run |
| 2 | + |
| 3 | +**Tested:** main `1b3f422` (13 commits since `cfc870f`, seven of them gem fixes), release 5.1.0 (from npm, for the regression checks). Linux. Ruby 3.3.6 with Bundler 4.1.1 and 2.6.9, Ruby 3.2.6 with 2.6.9 and 2.5.23. Newest Bundler is still 4.1.1. |
| 4 | + |
| 5 | +**Harness:** one loopback server in front of six instances of the repo's stand-in (`tests/nokogiri/patch_service.rb`): rack 3.2.9, puma 8.1.3 (native), nokogiri 1.19.7 (8 prebuilds), rake 13.4.2 in a `group` block, mustermann 3.1.1 and tilt 2.10.0 transitive, under a sinatra app. The front answers `batch` only for the gems a scan asks about. That matters: a single stand-in returns its gem whatever was asked, which hides a discovery gap (#2394). |
| 6 | + |
| 7 | +**Re-triage:** #2313 (oldest open) still reproduces on this main: with `path` set to `gems`, agent `scan` also patches the copy of rack in the system gem home. No fix for it or #2325 has landed, so no comment was added. #2269, #2283, #2284 and #2285 were already closed by their fixes; the first three were re-run below. |
| 8 | + |
| 9 | +**Cells** (release focus: the common path first, then what the new commits touched) |
| 10 | + |
| 11 | +| Cell | Result | |
| 12 | +| --- | --- | |
| 13 | +| Hosted common path, 4.1.1 / 3.3.6, 2.6.9 / 3.2.6, 2.5.23 / 3.2.6: scan from a fresh checkout, frozen install, app (6 patched gems), `vex` (6 statements), deployment clone, rollback, frozen install | pass: the pair is byte-exact on all three | |
| 14 | +| Agent common path, 4.1.1: install, scan, app, `apply --check`, `vex`, rollback, install | pass | |
| 15 | +| Vendored common path, 4.1.1: scan, frozen install, app, `vendor --check`, `vex`, deployment clone, rollback, install | pass: 3 gems vendored, 3 refused as documented, byte-exact | |
| 16 | +| Vendored, the printed `bundle lock --remove-platform ruby` for nokogiri, with the gems installed (#2284) | pass: nokogiri is vendored from its 8 prebuilds, frozen install, app | |
| 17 | +| The same on a fresh checkout (nothing installed), and any lock that holds a gem only as platform gems | **fail #2394** (5.1.0 too): the gem is never looked up, no message, "Nothing left to patch", exit 0 | |
| 18 | +| Vendored re-scan after `get --mode hosted` for the refused native puma (#2269) | pass: skipped as `vendor_gem_patched_in_other_mode` | |
| 19 | +| The same for rake, refused for its `group` block and patched hosted as the refusal advises | **fail #2395** (5.1.0 too): refused again on every run, counted as left to patch, exit 1 | |
| 20 | +| Vendored nokogiri, then `bundle lock --remove-platform arm-linux-musl`: frozen install, `vendor --check`, `vex`, rollback of 4 vendored and 2 hosted gems, install (#2283) | pass: the pair equals the upstream pair without the removed platform | |
| 21 | +| A fresh clone of a project with a vendored platform gem: `scan --mode vendored --prune`, `vendor --check` | pass: nothing pruned, both verified | |
| 22 | + |
| 23 | +**Filed** |
| 24 | +- https://github.com/SocketDev/socket-patch/issues/2394: a vendored scan on a fresh checkout skips a gem the lock holds only as platform gems without a word. The lockfile supplement names such gems for hosted runs only (`scan/discovery.rs:120`), a rule that predates vendoring from prebuilds. Following the refusal's own `--remove-platform ruby` remedy on a fresh checkout makes nokogiri vanish from the output. The repro needs no patch data. The open PR #2273 keeps the same line. |
| 25 | +- https://github.com/SocketDev/socket-patch/issues/2395: the #2269 skip covers `native_extensions_unsupported` only (`commands/vendor.rs:285`), so a gem in a `group` block that was patched in hosted mode keeps `scan --mode vendored` at exit 1. |
| 26 | + |
| 27 | +**Ruled out** (added to `known-non-bugs/bundler.md`) |
| 28 | +- "A fresh-checkout vendored scan finds a platform-only gem" through a single stand-in: it answers `batch` for its gem unasked. |
| 29 | +- "Vendored 3 packages; 2 failed." beside three refusals: the pre-check refusal is an `[error]` line outside the failed count; the totals count all three. |
| 30 | + |
| 31 | +**Blocked / not reached:** Ruby 3.4 / 4.0 and 2.7 (none under `/opt`); the #2285 mirror unwind and #2284 on the default Rails 8 lock (fixed, not re-run); agent and vendored common paths on 2.6.9 / 2.5.23 this run; the rest of the backlog. The release build took 12 minutes. |
0 commit comments