Repository navigation
Bug hunt ledger: Bundler (RubyGems) #316
Replies: 121 comments
|
[agent] 2026-09-30: Bundler (RubyGems) bug-hunt run This is the first run, so the ledger started empty and there were no Tested: main Setup: the sandbox can't reach the Socket patch API. I used a temporary, uncommitted copy of Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-09-30: Bundler (RubyGems) bug-hunt run Tested: main Setup: a temporary, uncommitted copy of Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-01: maintainer note: test global ( This is a maintainer request, not a run report. Add it to the top of the backlog and keep it there until the cells below are covered. Ask: make sure we correctly scan global installs when Where Bundler (RubyGems) puts global installs: What to check (prove each with a real global install, not by reading source):
Add OS × Bundler (RubyGems) version cells for |
|
[agent] 2026-10-01: Bundler (RubyGems) bug-hunt run Tested: main Setup: for agent and Re-triage
Cells (global mode, maintainer checklist)Probe run: https://github.com/SocketDev/socket-patch/actions/runs/36816092864 (ubuntu, macos and windows × Ruby 2.7 / 3.3 / 3.4).
Other cells
Issues
False positives ruled out
Blocked
Next
|
|
[agent] 2026-10-01: handover from the Composer bug-hunt routine (lead, unverified for gem) While I was confirming #438 (Composer, Windows), the root cause turned out to be Composer evidence: #438 and the probe run https://github.com/SocketDev/socket-patch/actions/runs/36827949605 |
|
[agent] 2026-10-01: Bundler (RubyGems) bug-hunt run Tested: main Setup: a hold-open copy of Re-triage
Cells
Issues
False positives ruled out
Blocked
Next
|
|
[agent] 2026-10-01: Bundler (RubyGems) bug-hunt run Tested: main Setup: a copy of Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: Bundler (RubyGems) bug-hunt run Tested: main Setup: uncommitted probe tests added to a copy of Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: Bundler (RubyGems) bug-hunt run Tested: main Setup: uncommitted probes in copies of Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: Bundler (RubyGems) bug-hunt run Tested: main Setup: uncommitted probe tests in a copy of Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] Janitor: ledger drift. The coverage matrix still lists these issues as
This is a heads-up only. The janitor never edits ledgers. Generated by Claude Code |
|
[agent] Janitor: ledger drift. This ledger still lists these issues as failing, but they are now closed:
Please re-check them and update the matrix on your next run. Generated by Claude Code |
|
[agent] 2026-10-02: Bundler (RubyGems) bug-hunt run Tested: main Setup: a ~30-line Python mock of the patch API serving Re-triage
Cells
Issues
False positives ruled out
Probe branches
Next
|
|
[agent] 2026-10-03: Bundler (RubyGems) bug-hunt run Tested: main Setup: a temporary Re-triage
Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-27: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of the repo's stand-in ( Re-triage: #2269 and #2283 were filed on this same main and have fix work claimed; nothing to re-check. #1109 carries Cells
Filed
Commented
Ruled out (added to
Blocked / not reached: a Rust ( |
|
[agent] 2026-11-28: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Commented
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 (ruby-build cannot download: the Ruby download host is blocked by the sandbox), sass-embedded and a private source in the agent rebuild, |
|
[agent] 2026-11-28: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of four instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 (none under |
|
[agent] 2026-11-29: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of five instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 (none under |
|
[agent] 2026-11-29: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of instances of the repo's stand-in ( Re-triage: the open issues without Cells (each: scan, frozen install, app, a deployment clone,
Filed: nothing. No defect met the bar this run. Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-11-30: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of seven instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-11-30: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of six instances of the repo's stand-in ( Re-triage: the open issues without Cells
Filed: nothing. No defect met the bar this run. Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-12-01: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of six instances of the repo's stand-in ( Re-triage: #2313 (oldest open) still reproduces on this main: with Cells (release focus: the common path first, then what the new commits touched)
Filed
Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-12-01: Bundler (RubyGems) bug-hunt run Tested: main Harness: one loopback server in front of the repo's stand-in ( Re-triage: nothing to re-check. #2325 and #2326 (the oldest open issues without Cells
Filed: nothing. No defect met the bar this run. Ruled out (added to
Blocked / not reached: Ruby 3.4 / 4.0 and 2.7 (none under |
|
[agent] 2026-12-02: Bundler (RubyGems) bug-hunt run Tested: main Focus: #2422 changed how a gem locked as platform gems is patched: the service now has one patch per platform gem, and hosted and vendored mode take the builds of one fix. The repo's stand-in ( Harness: one loopback server in front of the stand-in, three configurations: every build patched (rack, puma, nokogiri, ffi, sqlite3, mustermann, rake); x86-linux builds without a patch; the ruby gem's patch not offered for nokogiri and ffi, and one sqlite3 platform without a patch. The project is a 7-gem app whose Bundler 4.1.1 lock names Re-triage: #2376: the fix (#2392) holds for the repro: a re-scan moves a Cells
Filed
Ruled out (added to
Blocked / not reached: Bundler 2.5 / 2.6 and Ruby 3.2 on the new platform code; |
|
[agent] Janitor: ledger drift on Generated by Claude Code |
|
[agent] 2026-12-02: Bundler (RubyGems) bug-hunt run Tested: main Focus: the common path on the versions the per-platform patch code (#2422) had not seen: Bundler 2.6 and 2.5 locks, which name nokogiri, ffi and sqlite3 by their platform builds only (no Harness: one loopback server in front of the repo's stand-in ( Re-triage: #2326 (closed by #2425) re-run: a vendored scan beside a Rails-style Dockerfile prints the Cells
Filed
Ruled out (added to
Blocked / not reached: two fixes over one gem; a newer fix over a wired or vendored platform gem; Ruby 3.4 / 4.0 / 2.7 (none under |
|
[agent] 2026-12-03: Bundler (RubyGems) bug-hunt run Tested: main Focus: the common path in all three modes on the released build, the two gem fixes that landed since the last run, the new Harness: one loopback server in front of the repo's stand-in ( Re-triage: #2338 re-run: still fails ( Cells
Filed
Ruled out (added to
Blocked / not reached: a gem whose own |
|
[agent] 2026-12-03: Bundler (RubyGems) bug-hunt run Tested: main Focus: the backlog, since every common-path cell was re-run on this commit earlier today: the rest of the vendored Harness: one loopback server in front of the repo's stand-in ( Re-triage: #2338 and #2354, the two oldest: main has not moved since the earlier run today, which re-ran #2338 (still fails) and found no fix for #2354. Nothing closed. Cells
Filed
Commented
Ruled out (added to
Blocked / not reached: agent mode across machines; an interrupted hosted |
|
[agent] 2026-12-04: Bundler (RubyGems) bug-hunt run Tested: main Focus: backlog item 3, interrupted runs: a hosted Harness: one loopback server in front of the repo's stand-in ( Re-triage: none. Main has not moved since the two runs on 12-03, which re-ran #2338 (still fails) and found no fix for #2354. Nothing closed. Cells
Filed
Ruled out (added to
Blocked / not reached: a hosted |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[agent] Progress ledger for the scheduled Bundler (RubyGems) bug-hunt routine (label pm:bundler).
Last run: 2026-12-04, main
d987721, release 5.2.0 (tagged from that commit), newest Bundler 4.1.1. Tested so far: Bundler 1.17.3, 2.2.15 to 4.1.1 on Ruby 3.1.6 to 3.3.6. A 5.1.0-patched project upgrades in all three modes (12-02; vendored: see the.gitignorerow).Harness: rubygems.org is reachable, the Socket patch API is not. Use the repo's stand-in,
tests/nokogiri/patch_service.rb:PatchService.new(name, version, platforms, uuid, ghsa, workdir, mark)markslib/<name>.rbof the real gems and serves ONE gem (orgnokogiri-e2e), one patch per platform gem. For several gems, put one loopback server in front of several instances (subclass, overrideurl) and route by uuid, by purl (by-package), by thecomponentsofbatchand theuuidsofpackage; serve…/patches/blob/<git-sha256>too. With two fixes for one gem, answer/artifacts/and/patch/only from the uuid's owner; keep the port. Overrideall_gemsto drop the ruby gem's patch or one platform's. Agent cells: addblobContent/beforeBlobContent(base64) to thefilesentry of the patch view. For a C patch, overridepatched_data. Pass--api-url <mock> --patch-server-url <mock> --api-token fake --org nokogiri-e2eto every command.vexwrites with--outputand needs anoriginremote or--product. Read exit codes withPIPESTATUS; never pipegit addintohead. Git cells: awesome_print 1.8.0 (own.gitignore), solargraph 0.62.2 (own.gitattributes, CRLF). Rubies:/opt/rbenv/versions(3.1.6, 3.2.6, 3.3.6);gem install bundler -v <v>first, thenBUNDLER_VERSION. To interrupt a run like Ctrl-C:setsid ruby -e 'trap("INT","DEFAULT"); exec(*ARGV)' socket-patch … &, thenkill -INT -- -$!(a background job of a script ignores SIGINT otherwise). Norsyncin the sandbox. Rails:rails new app --skip-bundle --skip-javascript --skip-hotwire --skip-docker. The previous release:npm install @socketsecurity/socket-patch@5.1.0(it predates per-platform patches).Coverage matrix
bundle install, app loads patched code,vex, rollback,bundle installagainvendor/cachewithinstall --local,apply --offline,pristine4.1.1 (12-03); Rails 8.0 app (11-27)rails test, production clone, rollback byte-exact) (12-03)BUNDLE_PATH)GEM_HOME(11-15); native rebuild, rollback byte-exact (11-17);pathset togemsbeside a system copy: only the project copy is patched (#2313 fixed, 12-02)--gem-refresh-shared(11-15); stale copies on a second machine:vexrefuses, its remedies work 4.1.1 (12-01)bundle config set path vendor/bundleBUNDLE_DEPLOYMENT,BUNDLE_FROZEN,.bundle/config)GEM_HOME=BUNDLE_APP_CONFIG, deployment,without) 4.0.18 (11-17)BUNDLE_WITHOUTtoo, 4.0.18 (11-14)-x86_64-linux-gnu), one patch per platform gem (#2422)rubybuild too;--all-releaseson a lock without arubyentry warns for every other build: fail #2452; C patch refused as documented; a re-scan says "1 package has a newer patch available" for another build's patch every time: #2370--remove-platform; a platform without a patch is skipped; a platform removed after vendoring (#2435 fixed, 12-03);--add-platformafter vendoring is refused by Bundler as documented; builds split over two fixes: skipped with the reason; a platform's patch withdrawn after vendoring:vendor_gem_builds_kept, clone, rollback byte-exact (12-03)rubyentry; one platform without a patch: refused with the remedy; ruby gem's patch not offered: member registry;--remove-platformafter wiring: re-scan,vex, rollback; builds split over two fixes: skipped, the warning names which fix patches which (12-03).h-only patch, a Rust gem 4.1.1 (11-28); a killedapply,--offlineand no compiler leave the gem intact; a C patch 4.1.1: CI clone,pristine, re-apply, rollback gives the.soback byte for byte (12-01)pristine, rollback (12-01)require: falseon the added line 4.1.1 (11-27); parent dropped withbundle remove: rollback clean (11-28)bundle update/bundle add/bundle remove/bundle outdatedafter patchingcache(11-14);bundle removeof the vendored gem: #2325 fixed, not re-run; the vendoredgemline edited (require: false, agroupblock): rollback exits 1, fail #2338 (still, 12-03)lockflags,update <other gem>,clean(11-16); the printed steps to move a gem to a newer release 4.1.1 (11-27); a wired line edited: rollback keeps the edit (11-28);bundle removeof a patched gem 4.1.1 (12-01)GemfileandGemfile.lockbyte for byteremove,vendor --revertpass 4.0.18 (11-14), 2.5.22 (11-24); #2214 fixed (11-25); platform gem after--remove-platformpass 4.1.1 (12-01)vendor/cachearchives too (11-16);bundle cache --all-platforms4.1.1 and a cache built after the scan 2.6.9 (12-01)vexreports only what is really appliedgems.rb/gems.lockedspellinggemfile_not_loaded), not re-runlock --add-checksumson a hosted 2.6.9 lock with 8 nokogiri builds, re-scan, clone, rollback,pristine(11-30)--cwdto use (11-19)gemspec path:gems in one Gemfile 4.1.1, 2.6.9 (11-30)gemspec path:gems 4.1.1, 2.6.9 (11-30); two locks with different platform sets 2.5.22: one wired, one refused, remedy, rollback from the root (11-20)gemspecin the Gemfile); a Rails engine passes in all three modes 4.1.1 (12-01)gem buildpacks.socket/manifest.json(#2354)gem buildof abundle gemlibrary packs.socket/vendor/: fail #2354; development dependency refused as documentedrake build/install/release4.1.1 (11-30); development dependency refused as documentedsourcesource … doblock: pass 4.0.18 (11-19); a gem the private server rebuilt is refused (11-25); credentials in the top-levelsourceURL 4.1.1: pass, never printed or stored (12-03)vex, rollback (11-19); credentials in thesourceURL 4.1.1 (12-03)sourceURL 4.1.1 (12-03); mirror as the only source: scan passes.gitignore(#2348, 5.2.0)eol=crlf, an LFS filter, an unanchoredvendor/rule (refused,!/.socket/vendor/lifts it), no git, a subdirectory, a worktree, a gem's own.gitignore(awesome_print), acore.excludesFile, a submodule; a gem-shipped.gitattributeswith aneolrule (solargraph): a clone failsvendor --check, fail #2483; a 5.1.0 tree is repaired with "nothing to do" and no commit step: fail #2471gemfiles/*.gemfile(BUNDLE_GEMFILE)BUNDLE_GEMFILE; a root scan wires the root pair only (11-19)bundle install --standalone(Bundler 4,./bundle)--standalone(11-24)?platform=rubyrecord 4.1.1: re-scan and a CI cache holding the earlier patch pass (12-02; #2376 stays open for arubyrecord over a platform gem's copy)--jsonoutputapply, re-apply, rollback byte-exact 4.1.1 (12-04)vexomits the stale gems, the re-scan finishes 4.1.1 (12-04); a hostedrollbackstopped during the native rebuild keeps the patched gems under the restored lock: fail #2500 (2.5.23, 2.6.9, 4.1.1; 5.1.0 too)get <purl> --mode vendoredover a hosted gem (11-24); vendored to hosted is refused with a remedy (11-20);removeof a vendored gem beside hosted ones (11-27); the vendored re-scan skips a gem taken withget --mode hosted(#2269, #2395 fixed; 12-03)RUBY VERSION; Bundler upgraded after patching (update --bundler,lock --add-checksums, re-scan, rollback)--patch-mirror-url)get --mode vendoredover a mirrored pin, rollback pass (11-24)vendor/bundle/ruby/3.2.0beside3.3.0)OVERRIDESlock, new default lock,global_gem_cache,cooldown)Backlog
rollbackinterrupted during the native rebuild leaves the patched gems installed under the restored Gemfile.lock: no command finishes it, andbundle pristinethen fails on the checksum and removes the gem #2500, A vendored gem that ships its own.gitattributes(solargraph:*.rb text eol=lfover CRLF files) failsvendor --checkin every fresh clone,vexomits it, and the printedrepairremedy leaves nothing to commit #2483, A hosted gem scan interrupted between its two writes leaves the Gemfile withsource:options and the old Gemfile.lock: a frozen install fails, androllbacksays "No patches in this project" #2484, After the upgrade from v5.1.0, a vendored re-scan rewrites a vendored gem and adds.gitignore/.gitattributesfiles that must be committed, but prints "already vendored; nothing to do" and no commit step #2471, Agentscan --all-releaseswarns "manifest patches had no matching installed package" for every other platform build of a gem when the lock has norubyentry (Bundler 2.5 / 2.6 locks), where a lock with one gets a calm note #2452, Vendored scan prints theplatform_gem_unsupportedrefusal once per platform patch of a gem: 9 identical lines for nokogiri on a default Bundler 4 lock, 31 for three gems, and "9 patches failed" for one gem #2436, Vendored gem cannot be rolled back or removed after its Gemfile line is edited (moved into agroupblock,require: falseadded):vendor --checkpasses,rollbackandremoveexit 1, and the named remedies do nothing #2338 (still fails 12-03), Vendored gems are packed into a gem library's own .gem: abundle gemgemspec lists files withgit ls-files, sogem buildafter the scan ships.socket/vendor/(5 files become 757, 5.6 KB becomes 14.9 MB) and nothing warns #2354; Agent mode cannot move a gem to a newer patch of the same version:applyand the re-scan fail with "no matching variant found" for a?platform=rubyrecord, and CI with a cachedvendor/bundleexits 1 #2376's left-over case. Re-run the Vendored gem dropped withbundle remove(or moved to a newer version) can never be cleaned up:scan --prune,remove,rollbackandvendor --revertkeep it as drifted, andvendor --checkstays red #2325 repro (fixed, not re-run).vexproduct purls there.removeand a vendored unwind of a once-hosted gem stopped during the refresh (as A hosted gemrollbackinterrupted during the native rebuild leaves the patched gems installed under the restored Gemfile.lock: no command finishes it, andbundle pristinethen fails on the checksum and removes the gem #2500); a hostedrollbackstopped between its two writes (2 ms apart, about 0.8 s in; needs a fine sweep); an agentapplywith a native rebuild stopped between two gems (a Ruby-only apply takes 14 ms).info/*): the hosted unwind, vendored mode, the agent native rebuild, credentials in the URL..gitattributeswith afilterrule or inside a platform gem's tree (after A vendored gem that ships its own.gitattributes(solargraph:*.rb text eol=lfover CRLF files) failsvendor --checkin every fresh clone,vexomits it, and the printedrepairremedy leaves nothing to commit #2483); a Rails lock keeps the genericaarch64-linuxplatform after the printed--remove-platform: what does a vendored platform gem resolve to there?--use-system-libraries(Never take a native gem build that compiled nothing of a patch for a patched build; test agent mode on real nokogiri #2136).applycan never rebuild argon2, the gem the docs name as rebuilt from its installed tree: its one-shotextconf.rbfails onMakefile.real, and the remedy says to install a compiler #2106, Fix apply missing a gem that ships no lib/ dir #2185, Hosted to vendored switch of a gem fails with "no installed package found on disk" once a newer patch is published, though the gem is installed and--dry-runpreviews success #2129, Hosted gem scan sends a gemspec-declared gem to--mode vendored, which refuses it for the same reason and names no remedy #2151, Hosted gem scan on a Gemfile with two top-levelsourcelines blames a "bundler < 2.2" lock and prescribesbundle lock, which changes nothing #2162, Standalonevexrefuses a hosted gem asnot_appliedbecause of a leftover<gem>-<version>-x86_64-linuxdirectory that has no gemspec, after the scan's ownrm -f … && bundle installremedy #2087, Hosted gemrollback/removeleave the patched gem installed when the gem home has nocache/dir (Bundler 4.1prune,rm -rf ruby/*/cache), and the "next package-manager install" note does not fix it #2092, Agentapplybuild failure for a precompiled gem (pg without libpq-dev) cuts off the cause, points at anmkmf.logit has deleted, and says to install a compiler that is already there #2117, Hosted gem rollback behind agem generate_indexmirror still refuses with SOCKET_RUBYGEMS_URL set: a base64checksum:in the compact index is not read #2285./opt(ruby-build can't download). Bundler 4.1CONTENT ADDRESSES.BUNDLE_PATHoutside the project, a global-configpath(after Agentapplyalso patches gems in the system gem home that Bundler never loads when the project sets a Bundlerpathother thanvendor/bundle, or has nothing installed in it yet #2313).Known non-bugs
The full list is in
known-non-bugs/bundler.mdon this branch. Search it withgit grepbefore filing, and append one line when you rule something out. Don't read it whole. Most likely to be re-filed:gem build. Repack with the originalmetadata.gz.vex/listreport no patches on a hosted project whose patch URLs are on loopback: pass--patch-server-url.All reactions