Skip to content

Commit 0aec76a

Browse files
committed
bundler: 2026-12-05 run
1 parent 47d50aa commit 0aec76a

3 files changed

Lines changed: 48 additions & 14 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[agent] 2026-12-05: Bundler (RubyGems) bug-hunt run
2+
3+
**Tested:** main `cd7c5c5` (two commits after release 5.2.0, `d987721`), and release 5.2.0 for comparison. Linux. Ruby 3.3.6 with Bundler 4.1.1 (still the newest; no newer prerelease), Ruby 3.2.6 with Bundler 2.6.9 and 2.5.23.
4+
5+
**Focus:** the common path in all three modes on the new main, and the two commits since the last run: #2497 (standalone `vex` after a hosted move of a platform-locked gem) and #2499 (a platform gem's record that brings its compiled binaries is applied with no build; copies 5.2.0 left stuck are repaired).
6+
7+
**Harness:** one loopback server in front of the repo's stand-in (`tests/nokogiri/patch_service.rb`): rack 3.1.8, nokogiri 1.18.10 (8 platform gems and the ruby gem), puma 6.4.3 (native), `path vendor/bundle`. As the patch service does, the package reference states the gem's bare purl. For #2499 the platform gems' patches also change `ext/nokogiri/gumbo.c` and the four `lib/nokogiri/<abi>/nokogiri.so`. A Mac and a musl machine were simulated by a tree holding the upstream `arm64-darwin` / `x86_64-linux-musl` gem in place of the glibc build.
8+
9+
**Re-triage:** #2338 re-run on `cd7c5c5`: still fails (rollback exits 1 after the vendored line is moved into a `group` block). No fix for #2354 on main. Nothing closed.
10+
11+
**Cells**
12+
13+
| Cell | Result |
14+
| --- | --- |
15+
| Hosted, 4.1.1, 2.6.9, 2.5.23: scan, app, fresh frozen install, standalone `vex`, rollback, frozen install | pass: `vex` attests every locked build under its own purl (#2497 holds), pair byte-exact after rollback |
16+
| Hosted, nokogiri 1.16.7 (`x86_64-linux` spelling, lock with a `ruby` entry), 4.1.1 | pass |
17+
| Hosted `vex --offline`, and with the API down | pass: omitted as `record_unavailable` with the reason, exit 1, as documented |
18+
| Vendored, 4.1.1: the refusal, the printed `--remove-platform ruby`, rack and nokogiri vendored, puma hosted, frozen install, `vendor --check`, `vex`, rollback | pass: pair byte-exact; the refusal still repeats per platform patch (#2436) |
19+
| Agent, a platform record that brings its binaries, 4.1.1 and 2.6.9: scan (no build), app, `apply --check`, `vex`, fresh install and `apply`, re-apply, `bundle pristine` and `apply`, rollback | pass: gem home byte-exact after rollback (#2499 holds) |
20+
| Agent, a copy 5.2.0 left stuck (built over the record's binary): main `apply --dry-run`, `apply`, `apply --check`, `vex`, rollback; and `rollback` straight from the stuck state | pass: both repair it, gem home byte-exact, marker and backup gone |
21+
| Agent, a manifest written on another build (arm64-darwin, musl) applied on glibc, record with binaries | **fail #2520**: `apply` exits 1, "nokogiri.bundle - File not found" / "File hash does not match", no remedy named |
22+
| The same with a manifest from `scan --all-releases`, or `scan` in place of `apply` on the second machine | pass |
23+
24+
**Filed**
25+
- https://github.com/SocketDev/socket-patch/issues/2520 (`ux`): a Mac-written agent manifest fails `apply` in Linux CI once the platform gem's record carries binaries; the record of the other build is taken for a match through the files both builds share. `apply --check` then says to run `apply`. The gem is left untouched. 5.2.0 does the same (not a regression). `scan --all-releases` and `scan` on the second machine both work, and nothing prints either. Suspect: `commands/apply.rs:1272` (`variant_is_installed`).
26+
27+
**Ruled out** (added to `known-non-bugs/bundler.md`)
28+
- `vex` / `rollback` say "No patches in this project" on a hosted lock with loopback patch URLs when `--patch-server-url` is left out: already listed; seen again.
29+
- A gem home differs from the pre-patch one after rollback when a fresh `bundle install` ran in between: Bundler rebuilt the native gems (nio4r), not socket-patch.
30+
- `gem unpack` of a file named `upstream-<gem>.gem` makes `gems/upstream-<gem>`, which the crawler rightly skips: rename the directory.
31+
32+
**Blocked / not reached:** a platform record that leaves out one Ruby's binary; a hosted lock on a machine that installs the `ruby` build (source build of nokogiri); interrupted hosted `remove`; Ruby 3.4 / 4.0 / 2.7 (none under `/opt`).

‎known-non-bugs/bundler.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,5 @@ Documented limitations and verified false positives. One bullet each. Search thi
274274
- Agent `vex` on a machine holding another build than the manifest's record (musl tree, glibc record) names the record's build in the product purls: applied by content as documented, the unqualified purl is listed too, `scan --all-releases` gives each build its own record (2026-12-04).
275275
- `gem install --platform x86_64-linux-musl` on glibc falls back to the ruby gem and leaves a half-built `gems/nokogiri-<v>`; `apply` then patches that directory. Harness artifact: unpack the musl gem by hand (2026-12-04).
276276
- A second project on a shared gem path (global-config `path`) loads the copies agent mode patched for the first: in place by design, as with a system gem home (2026-12-04).
277+
- A gem home that differs from its pre-patch listing after an agent rollback when a fresh `bundle install` ran in between: Bundler rebuilt the native gems (nio4r's `.so`), socket-patch's files are byte-exact (2026-12-05).
278+
- A simulated other-platform tree made with `gem unpack upstream-<gem>.gem` is named `gems/upstream-<gem>` and is skipped by the crawler ("not installed"): harness artifact, rename the directory (2026-12-05).

0 commit comments

Comments
 (0)