Repository navigation
Bug hunt ledger: Bundler (RubyGems) #316
Replies: 124 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-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 |
|
[agent] 2026-12-04: Bundler (RubyGems) bug-hunt run Tested: main Focus: backlog item 2 (agent mode across machines) and item 10 (a gem path outside the project, shared by two projects). Harness: one loopback server in front of the repo's stand-in ( Re-triage: none. Main has not moved since the runs on 12-03 and the earlier one today. Cells
Filed
Commented
Ruled out (added to
Blocked / not reached: a C patch from a manifest written for another build; interrupted hosted |
|
[agent] 2026-12-05: Bundler (RubyGems) bug-hunt run Tested: main Focus: the common path in all three modes on the new main, and the two commits since the last run: #2497 (standalone Harness: one loopback server in front of the repo's stand-in ( Re-triage: #2338 re-run on Cells
Filed
Ruled out (added to
Blocked / not reached: a platform record that leaves out one Ruby's binary; a hosted lock on a machine that installs the |
|
[agent] 2026-12-05: Bundler (RubyGems) bug-hunt run Tested: main Focus: backlog item 10: Harness: one loopback server in front of the repo's stand-in ( Re-triage: none. Main has not moved since the re-check earlier today. Cells
Filed
Ruled out (added to
Blocked / not reached: a gem home shared by two Rubies; interrupted 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-05, main
cd7c5c5, release 5.2.0 (d987721), 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.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, 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), and mergebatchandpackage. With two fixes for one gem, answer/artifacts/and/patch/only from the uuid's owner. Overrideall_gemsto drop a build's patch. Agent cells: addblobContent/beforeBlobContent(base64) to thefilesentry of the patch view. For a C patch, overridepatched_data; for a platform record that brings its binaries (#2499), append bytes toext/nokogiri/gumbo.cand everylib/nokogiri/<abi>/nokogiri.soof the platform gems. The service states a bare purl in the package reference: overridepackage_result. Pass--api-url <mock> --patch-server-url <mock> --api-token fake --org nokogiri-e2eto every command.vexwrites with--outputand needs anoriginremote or--product. Git cells: awesome_print 1.8.0, solargraph 0.62.2. Rubies:/opt/rbenv/versions(3.1.6, 3.2.6, 3.3.6);gem install bundler -v <v>first, thenBUNDLER_VERSION. Ctrl-C:setsid ruby -e 'trap("INT","DEFAULT"); exec(*ARGV)' socket-patch … &, thenkill -INT -- -$!. Another machine's tree (musl, arm64-darwin):gem unpackthe upstream gem, rename the directory togems/nokogiri-<v>-<platform>, write itsgem spec --rubytospecifications/, drop the gnu copy. A globalpath:HOME=<tmp> bundle config set --global path <dir>. Releases:npm install @socketsecurity/socket-patch@5.2.0.Coverage matrix
bundle install, app loads patched code,vex, rollback,bundle installagainvendor/cache4.1.1 (12-03); Rails 8.0 app (11-27)vexattests every locked build (#2497 holds), rollback byte-exact (12-05); nokogiri 1.16.7 (x86_64-linux) 4.1.1 (12-05); a Rails 8.1 app (12-03)BUNDLE_PATH)GEM_HOME(11-15); native rebuild (11-17);pathbeside a system copy (#2313 fixed, 12-02); a global-configpathshared by two projects 4.1.1 (12-04);BUNDLE_PATHin the environment 4.1.1 (12-05); a localpathover an envBUNDLE_PATH: the unused env home is patched too: fail #2531BUNDLE_PATHoutside the project, puma hosted beside: frozen install,vex, rollback 4.1.1 (12-05)--gem-refresh-shared(11-15); stale copies on a second machine (12-01); a global-configpath(12-04) or envBUNDLE_PATH(12-05) shared by two projects: warning,--gem-refresh-shared, rollback remedy; a relative envBUNDLE_PATH2.6.9 (12-05); the printedpathremedy under an envBUNDLE_PATH:vexfails, fail #2531bundle config set path vendor/bundleBUNDLE_DEPLOYMENT,BUNDLE_FROZEN,.bundle/config)GEM_HOME=BUNDLE_APP_CONFIG, deployment) (11-17)BUNDLE_WITHOUTtoo, 4.0.18 (11-14)-x86_64-linux-gnu), one patch per platform gem (#2422)rubybuild too; a platform record that brings its binaries: no build,apply --check,vex,pristineand re-apply, rollback byte-exact 4.1.1, 2.6.9; a copy 5.2.0 left stuck is repaired byapplyand byrollback(#2499 holds, 12-05); such a record written on another build (arm64-darwin or musl manifest on glibc):applyexits 1 with no remedy: fail #2520; a Ruby-only glibc-written manifest on a musl tree: applied by content; with--all-releaseseach build uses its own record (12-04, 12-05);--all-releaseswarnings on a lock withoutruby: fail #2452; a re-scan says "1 package has a newer patch available" every time: #2370--remove-platform; a platform without a patch is skipped; a platform removed after vendoring;--add-platformafter vendoring refused as documented; builds split over two fixes skipped with the reason; a patch withdrawn after vendoring (12-03)--remove-platformafter wiring; builds split over two fixes: skipped with the reason (12-03).h-only patch, a Rust gem (11-28); a killedapply,--offline, no compiler leave the gem intact; a C patch 4.1.1: CI clone,pristine, re-apply, rollback byte-exact (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); #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 a newer release (11-27); a wired line edited (11-28);bundle removeof a patched gem (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 (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 (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 buildpacks.socket/vendor/: fail #2354; development dependency refused as documentedrake build/release(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)sourceURL 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, LFS, an unanchoredvendor/rule (refused), no git, a worktree, a gem's own.gitignore, 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);scan --dry-runcounts every platform build's patch: fail #2508rollbackstopped during the native rebuild: fail #2500get <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); a re-scan beside aget --mode hostedgem (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
BUNDLE_PATHin the environment, the remedy the hosted gem scan prints (bundle config set --local path vendor/bundle) leavesvexfailing withnot_appliedand the scan warning forever: the shadowed environment gem home is still judged, and agentapplypatches it #2531, Agentapplyfails in CI on a manifest written on another platform build of a gem whose patch brings binaries (a Mac-written manifest on Linux: "nokogiri.bundle - File not found"), and no message namesscan --all-releases#2520, Agentscan --dry-runon a project with a platform-locked gem counts every platform build's patch: "Would download and apply 10 patches" where the run applies 2 #2508, 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 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-05), 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).ruby-build manifest on a platform build;--all-releasesmanifests invex; a hosted lock whose machine installs therubybuild (force_ruby_platform).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); an agentapplywith a native rebuild stopped between two gems.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 that keeps the genericaarch64-linuxplatform after the printed--remove-platform.--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_PATHin the environment, the remedy the hosted gem scan prints (bundle config set --local path vendor/bundle) leavesvexfailing withnot_appliedand the scan warning forever: the shadowed environment gem home is still judged, and agentapplypatches it #2531, the other shadowed tiers (envBUNDLE_PATHunder localdeploymentorpath.system).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