Skip to content

Commit 3ba48fa

Browse files
committed
bundler: run 2026-11-25 (Bundler 4.1.1, 4.0.25; #2242)
1 parent 5a43edf commit 3ba48fa

3 files changed

Lines changed: 48 additions & 10 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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).

‎known-non-bugs/bundler.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,7 @@ Documented limitations and verified false positives. One bullet each. Search thi
213213
- `bundle lock --add-platform` for a platform the patch has no prebuild for, after a hosted scan, adds the patched `ruby` gem entry from the patch source; rollback restores upstream checksums for it (2026-11-24).
214214
- Hosted scan on a gem a private server rebuilt under a public name and version wires it and warns "Not refreshed (the patched gem's gemspec differs from the installed one)": the guard works, and redirecting from any remote is policy (2026-11-25). The unwind refusal behind a real mirror is #2230, not a non-bug.
215215
- Agent mode refusing a gem whose file is at neither hash ("no matching variant found"): the refusal is documented; only its wording is filed (#2231) (2026-11-25).
216+
- Vendored scan on a Bundler 4.1 default lock (a `ruby` nokogiri entry beside the prebuilds) prints "Vendored 2 packages; 2 failed" with three refusals (the platform gem is left out of that line; the closing totals count it). Not filed: an open PR (#2226) removes vendored mode for platform gems (2026-11-25).
217+
- A hosted gem's version bumped by hand in the Gemfile with `source:` kept: `bundle install` fails naming the patch source, a re-scan says "already on hosted patches". The documented flow (`rollback <purl>`, `bundle install`, re-scan) works; the user broke the pair, so not filed (2026-11-25).
218+
- After `bundle update` moves a gem, the old version left in `vendor/bundle` gets "Not hosted … this project doesn't lock it": the documented `redirect_gem_version_not_locked`; `bundle clean` clears it (2026-11-25).
219+
- `vex` omitting a gem while an earlier Ruby's tree (`vendor/bundle/ruby/3.2.0`) holds an unpatched copy is fail-safe (line 73); only the remedy that does nothing there is filed (#2242) (2026-11-25).

0 commit comments

Comments
 (0)