Skip to content

Commit 35b8dda

Browse files
committed
bundler: 2026-11-29 run
1 parent 046dacb commit 35b8dda

3 files changed

Lines changed: 52 additions & 17 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-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.

‎known-non-bugs/bundler.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,7 @@ Documented limitations and verified false positives. One bullet each. Search thi
238238
- After `bundle remove` of the only parent of a vendored (or hosted) transitive gem, the line socket-patch added keeps that gem in the bundle; `scan`, `vendor --check` and `vex` still count it, and rollback takes the line out. The added line is a pin by design (2026-11-28).
239239
- Text added inside the `# added by socket-patch (transitive dependency)` comment of a hosted transitive line makes rollback keep the line as the user's own, without `source:`. Contrived (2026-11-28).
240240
- A trailing comment appended to a vendored `gem` line does not block rollback (#988); any other edit of the line does and is filed as #2338, so don't re-file it per edit (2026-11-28).
241+
- A hosted or vendored scan patches fewer gems than the mock serves: the lock resolved other versions than the mock was started with (check the `batch` request body). Harness mistake (11-29).
242+
- Hosted next steps say "Commit Gemfile and Gemfile.lock" in a library whose lock is git-ignored: a clone without the lock resolves the same lock from the Gemfile's `source:` options and loads the patched gems. Not filed (11-29).
243+
- `bundle lock --add-platform <p>` on a hosted platform gem with no prebuild for `<p>` adds the patched `ruby` gem (a source build on that platform): Bundler's resolution; re-scan, `vex` and rollback handle it (11-29).
244+
- `vendor --revert <purl>` is a usage error: `vendor --revert` takes no package; `remove <purl>` unwinds one gem (11-29).

0 commit comments

Comments
 (0)