|
| 1 | +[agent] 2026-11-29: Bundler (RubyGems) bug-hunt run |
| 2 | + |
| 3 | +**Tested:** main `cfc870f` (unchanged since 2026-11-26), release 5.1.0 (from npm, for the regression check). Linux. Ruby 3.3.6 with Bundler 4.1.1 and 2.6.9. Newest Bundler is still 4.1.1. Main had not moved, so this run worked the backlog (item 8) and gem library projects. |
| 4 | + |
| 5 | +**Harness:** one loopback server in front of five instances of the repo's stand-in (`tests/nokogiri/patch_service.rb`): rack 2.2.26, rake 13.2.1, mustermann 3.1.1, tilt 2.9.0 and nokogiri 1.18.10 with 3 prebuilds. An app project (`path vendor/bundle`, a range requirement with a comment, a `group` block, a three-platform `CHECKSUMS` lock), a hand-written gem library whose `.gitignore` lists `Gemfile.lock`, and two libraries made with `bundle gem` (4.1.1 and 2.6.9). |
| 6 | + |
| 7 | +**Re-triage:** the open issues without `agent:needs-human` (#2269, #2283, #2284, #2285, #2313, #2325, #2326, #2338) were all filed on this same main, so there was nothing to re-check. Nothing closed. |
| 8 | + |
| 9 | +**Cells** |
| 10 | + |
| 11 | +| Cell | Result | |
| 12 | +| --- | --- | |
| 13 | +| Hosted, 4.1.1, app: scan (3 direct, 2 transitive gems, nokogiri from prebuilds), frozen install, app, `vex`, rollback, frozen install | pass | |
| 14 | +| Hosted, 4.1.1: `bundle show`, `info`, `check`, `binstubs`, `outdated`, `doctor` on the patched project | pass | |
| 15 | +| Hosted, `bundle lock --add-platform x86_64-linux-musl` (the patch has no prebuild for it): re-scan, `vex`, rollback, frozen install | pass: Bundler adds the patched `ruby` gem from the patch source, rollback keeps the new platform and restores the upstream checksums | |
| 16 | +| Vendored, 4.1.1, app: scan (4 gems vendored, rake in a `group` block refused as documented), frozen install, app, rollback | pass: the pair is byte-exact | |
| 17 | +| Vendored platform gem, `bundle lock --add-platform` | refused by Bundler, as the docs say; the documented way round it was not finished (`vendor --revert` takes no purl) | |
| 18 | +| Gem library with an ignored `Gemfile.lock`, hosted and vendored, 4.1.1: scan, app, `vex`, a clone with no lock (`bundle install` resolves the same lock and loads the patched code), `vendor --check` there, rollback | pass: the pair is byte-exact | |
| 19 | +| `bundle gem` library, vendored, then `gem build` / `rake build`, 4.1.1 and 2.6.9 | **fail #2354** (5.1.0 too) | |
| 20 | +| The same library in agent mode, `gem build` | `.socket/manifest.json` is packed (noted in #2354) | |
| 21 | +| The same library in hosted mode, `gem build` | pass: the gem is unchanged | |
| 22 | + |
| 23 | +**Filed** |
| 24 | +- https://github.com/SocketDev/socket-patch/issues/2354 (`ux`): vendored gems are packed into a gem library's own `.gem`. The gemspec `bundle gem` writes lists files with `git ls-files`, so after the scan and the commit it asks for, `gem build` ships `.socket/vendor/`: 5 files become 757 and 5.6 KB becomes 14.9 MB (rack, rake, and nokogiri's binaries for 3 platforms). Nothing warns, and a pushed gem can only be yanked. Not a regression. |
| 25 | + |
| 26 | +**Ruled out** (added to `known-non-bugs/bundler.md`) |
| 27 | +- A hosted scan that patches fewer gems than the mock serves: the lock had resolved newer versions than the mock was started with. |
| 28 | +- The hosted next steps say "Commit Gemfile and Gemfile.lock" when the lock is git-ignored: a clone resolves the same lock from the Gemfile's `source:` options, so nothing is lost. |
| 29 | +- After `bundle lock --add-platform` on a hosted platform gem, the new platform gets the patched `ruby` gem (a source build): Bundler's choice, since the patch source has no build for it. |
| 30 | + |
| 31 | +**Blocked / not reached:** Ruby 3.4 / 4.0 (none under `/opt`), the Rails 8 app on Bundler 2.5.22, `report` and `show` in agent mode, the re-runs of backlog 6. The release build of the CLI took 25 of the run's 90 minutes. |
0 commit comments