|
| 1 | +[agent] 2026-11-25: Bundler (RubyGems) bug-hunt run |
| 2 | + |
| 3 | +**Tested:** main `e685fb1` (unchanged since this morning's run; 5.1.0 is still the latest release). Bundler 4.1.1 and 4.0.25 were both released today, so the run went to the common path on them, then to the backlog. Linux. Ruby 3.3.6 (and a Ruby 3.2.6 tree) with Bundler 4.1.1, 4.0.25 and 2.5.22. |
| 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.8, rake 13.2.1, json 2.9.1 and racc 1.8.1 (ruby platform, the last two with a native extension, racc transitive) and nokogiri 1.18.10 with all 8 prebuilds. It serves blobs, so agent mode runs against it. |
| 6 | + |
| 7 | +**Re-triage:** main has not moved since this morning's run, which re-checked #2219 and filed #2230 and #2231 on this SHA, so nothing was re-run. #1109 carries `agent:needs-human`: skipped. |
| 8 | + |
| 9 | +**Cells** |
| 10 | + |
| 11 | +| Cell | Result | |
| 12 | +| --- | --- | |
| 13 | +| Hosted, 4.1.1, 5 gems: scan, frozen install, lock stable, app, deployment clone, `vex`, `pristine`, `outdated`, `update --all`, `check`, `doctor`, `list`, rollback, frozen install, `pristine` | pass: pair byte-exact | |
| 14 | +| Hosted, 4.0.25: scan, frozen install, app, `vex`, `pristine`, rollback | pass: pair byte-exact | |
| 15 | +| Agent, 4.1.1: scan, app, frozen install, `vex`, `apply --check`, `pristine` (check exits 1, `vex` omits), `apply`, rollback | pass | |
| 16 | +| Vendored, 4.1.1 (default lock with a `ruby` nokogiri entry): rack and rake vendored, json and racc refused, nokogiri refused until `bundle lock --remove-platform ruby`, then vendored from prebuilds; frozen install, deployment clone, `vex`; `get json` / `get racc --mode hosted` (the printed remedy); `update --all`; rollback | pass: Gemfile byte-exact, lock equal to the pre-scan lock | |
| 17 | +| socket-patch run inside `bundle exec` (`RUBYOPT`, `BUNDLE_GEMFILE` set), 4.1.1: hosted scan with native rebuilds, `vex`, rollback; agent scan, `apply --check`, rollback | pass | |
| 18 | +| A hosted gem's version bumped by hand in the Gemfile (`source:` kept), 4.1.1: `bundle install`, re-scan, `vex`, then `rollback <purl>`, `bundle install`, re-scan | pass (the documented flow works) | |
| 19 | +| Hosted with the gem tree of an earlier Ruby left in `vendor/bundle` (`ruby/3.2.0` beside `ruby/3.3.0`), only Ruby 3.3 on `PATH`: 4.1.1 (twice), 4.0.25, 2.5.22 | pure-Ruby and precompiled gems replaced in both trees, rollback byte-exact; for the two native gems the printed remedy does nothing: **fail #2242** | |
| 20 | + |
| 21 | +**Filed** |
| 22 | +- https://github.com/SocketDev/socket-patch/issues/2242 (`ux`): the scan cannot rebuild a native gem in another Ruby's tree and says so, but the remedy it prints (`rm -f <spec> <archive> && bundle install`) is a no-op there, because `bundle install` installs into the current Ruby's tree. The gem directories stay without a gemspec, `vex` omits the gems on every run, and a re-scan prints the same `rm -f` for files that are gone ("its installed gemspec is unreadable"). `bundle clean --force` does not help. Deleting the gem directories, or running the `bundle install` with the old Ruby, clears it; neither is named. Suspect `commands/gem_refresh.rs:439`, `patch/gem_refresh.rs:390`, `ruby_crawler.rs:1546`. |
| 23 | + |
| 24 | +**Commented / closed:** nothing. |
| 25 | + |
| 26 | +**Ruled out** (added to `known-non-bugs/bundler.md`) |
| 27 | +- "Vendored 2 packages; 2 failed" with three refusals when one is a platform gem: the closing totals are right, and an open PR (#2226) removes vendored mode for platform gems. |
| 28 | +- The hand-bumped hosted gem: Bundler's error names the patch source and the documented rollback flow works. |
| 29 | +- "Not hosted … this project doesn't lock it" for the old version a `bundle update` leaves in `vendor/bundle`: documented. |
| 30 | +- `vex` omitting a gem that is unpatched in an earlier Ruby's tree: fail-safe; only the remedy is filed. |
| 31 | + |
| 32 | +**Blocked / not reached:** #2210 (needs a Bazel workspace), #2220 and `report` (the stand-in has no such routes), precompiled ffi / sqlite3 on other Bundlers (waiting on #2226), Ruby 3.4 / 4.0 and JRuby (none in the sandbox). |
0 commit comments