Skip to content

Commit 2d39251

Browse files
committed
bundler: run 2026-11-18 (#2129)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011f9aeRJdadXYXF7J3ZVdAz
1 parent 8d4caa0 commit 2d39251

3 files changed

Lines changed: 47 additions & 13 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[agent] 2026-11-18: Bundler (RubyGems) bug-hunt run
2+
3+
**Tested:** main `89c482d` (5.1.0; same SHA as the last run, so the run went to the backlog). Linux. Ruby 3.3.6 with Bundler 4.0.18 and 2.5.22. Newest Bundler is still 4.1.0.
4+
5+
**Harness:** the Python mock of the patch API and registry (14 gems for the Rails 8 app), restarted on the same port with new uuids for superseding patches; `scan --mode agent` through it.
6+
7+
**Re-triage:** main has not moved since the last run re-checked #2086 (still reproduces) and #2087 (claimed), so neither was re-run and nothing was commented.
8+
9+
**Cells**
10+
11+
| Cell | Result |
12+
| --- | --- |
13+
| Rails 8.0 app (113 gems), hosted, lock written by Bundler 2.5.22 (no `CHECKSUMS`): 12 of 14 wired, frozen install, app, deployment clone without dev/test, `vex` (12), `outdated`, `update --all`, Gemfile moved to `~> 8.1.0` and `bundle update rails` under the pins, rollback, `pristine` | pass: pair byte-exact; nokogiri and thruster refused as documented |
14+
| Same app, vendored, 4.0.18: 5 of 14 vendored, frozen install, app, deployment clone, `vex` (5), `bundle clean` as the remedy for the stale-copy warning, `update --all`, rollback | pass: pair byte-exact (the 9 refusals are #2091) |
15+
| Hosted, shared gem home, two projects on the same gems: `SOCKET_GEM_REFRESH_SHARED=1`, the second project's `pristine`, `remove` of one gem with `--gem-refresh-shared`, the other project's `scan` and `vex` | pass, as documented: the other project's `vex` omits the swapped copy and its re-scan names the remedy |
16+
| Agent, shared gem home, two projects with their own records (rack, and a C patch to puma 8.1.2): second apply is "already patched", either project rolls back first, `apply --check`, `vex`, re-apply, `pristine` | pass: gem home byte-exact after the last rollback |
17+
| Hosted, then vendored (puma stays hosted), then `remove <purl>`, `vendor --revert`, `rollback --offline` followed by its `rm -f … && bundle install` remedy and an online rollback | pass: frozen install, `pristine`, pair byte-exact at the end |
18+
| Mixed hosted + vendored project, superseding patches for both halves: `scan` (refused, asks for `--mode`), `--mode vendored`, `--mode hosted`, `vex`, rollback | pass |
19+
| Hosted gem whose patch was superseded, `scan --mode vendored` (4.0.18 and 2.5.22) | **fail #2129** |
20+
21+
**Filed**
22+
- https://github.com/SocketDev/socket-patch/issues/2129: once a newer patch is published for a gem on a hosted patch, `scan --mode vendored` fails with "no installed package found on disk" (exit 1) though the gem is installed and `--dry-run` previews success. A lock-only checkout vendors it, and so does a hosted re-scan first. The gem form of #1105 / #1713. Suspect `vendor.rs:4351`.
23+
24+
**Commented / closed:** nothing.
25+
26+
**Ruled out**
27+
- A second project's `bundle pristine` removing gems from a shared gem home after `--gem-refresh-shared`: documented ("its `bundle pristine` fails on the checksum until it is patched as well").
28+
- `vendor --revert` on a hosted + vendored project leaving the hosted gem pinned: it reverts vendored gems only.
29+
- `rollback --offline` not restoring a hosted pin: refused with the `git checkout` remedy; the vendored half is reverted and the pair still installs.
30+
31+
**Blocked:** Ruby 3.4 and 4.0 are untested. The sandbox has 3.1 to 3.3, `rbenv install` cannot reach cache.ruby-lang.org, and prebuilt downloads were denied.

‎known-non-bugs/bundler.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,6 @@ Documented limitations and verified false positives. One bullet each. Search thi
186186
- `apply --check` reports a native gem "not compiled into the extension Ruby loads" when the project has an agent record and a hosted pin and Bundler built the patched gem itself (`bundle pristine`, fresh clone). Documented: run `apply` again after a reinstall; it does (2026-11-18).
187187
- `vex` on a deployment clone installed without dev/test groups attests the hosted gems of those groups: hosted attestation is read from the lock (2026-11-18).
188188
- `scan --mode agent <subdir>` says "No installed packages found under the given path": agent PATHs are globs over the installed packages of the project at `--cwd`; use `--cwd <subdir>`. The missing hint is #2125 (2026-11-18).
189+
- After project A runs hosted `--gem-refresh-shared`, project B's `bundle pristine` in the same gem home fails on the checksum and removes the gems: documented in "Ruby gems: gems already installed" (2026-11-18).
190+
- `vendor --revert` on a project with hosted and vendored gems leaves the hosted pins: it reverts vendored gems only; `rollback` undoes both (2026-11-18).
191+
- `rollback --offline` cannot restore a hosted gem pin ("must be re-resolved from the registry"): refused with a `git checkout` remedy, exit 1, the pair still installs (2026-11-18).

0 commit comments

Comments
 (0)