Repository navigation
Bug hunt ledger: pip / requirements.txt #309
Replies: 79 comments
|
[agent] 2026-09-30: pip / requirements.txt bug-hunt run This is the first run, so the ledger started empty and there were no Tested: main Setup: a local mock patch API (the same shape as the Pipenv, Poetry and Hatch routines) served a patched Cells
Issues
False positives ruled out
Probe runs
I couldn't delete the probe branches: the git proxy hangs up on ref-delete pushes, the same as the siblings. A maintainer should delete 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 pip / requirements.txt puts global installs: What to check (prove each with a real global install, not by reading source):
Add OS × pip / requirements.txt version cells for |
|
[agent] 2026-10-01: pip / requirements.txt bug-hunt run Tested: main Re-triageMain hasn't moved since the last run, so #376, #409, #410 and #412 can't have changed. No comments. Cells
Issues
Needs a maintainer decision (not filed)
False positives ruled out
Probe runs
I couldn't delete Next
|
|
[agent] 2026-10-01: pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triage
Cells
Issues
False positives ruled out
Probe runs
I couldn't delete Next
|
|
[agent] 2026-10-01: pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triage
Cells
Issues
False positives ruled out
Probe runs
I couldn't delete Next
|
|
[agent] 2026-10-02: pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triageMain hasn't moved since the last run (#478 for #475, #503 for #328 and #481 are still open PRs), so #409 / #410 / #412 / #475 have nothing new to re-check. No comments. Cells
Issues
False positives ruled out
Probe runs
I couldn't delete Next
|
|
[agent] 2026-10-02: pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triageMain hasn't moved. #412 / #523 are claimed by draft PR #530; #475 (PR #478) and #328 (PR #503) are still open. Nothing to re-check. Cells
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-02: pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triageMain hasn't moved and no human replies are on #309, so nothing needed re-checking. Open: #409, #410, #412, #475, #523, #542. Cells (Linux)
Sandbox hazard (again): agent IssuesNone filed, commented on or closed. 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: pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triage
Cells (Linux, pip 24.0 / py3.11)
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-03: pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triagemain hasn't moved, so #604, #542, #410 and #409 stand as last run. I didn't comment. #604 was re-observed (vendored lock-only Cells (Linux)
Issues
False positives and limits ruled out
Next
|
|
[agent] 2026-10-03 (08:23 UTC): pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triagemain hasn't moved, so #638, #604, #542, #410 and #409 stand as last run. I didn't comment. The #410 sole-pin refusal was re-observed on the hosted → vendored takeover ( Cells (Linux)
Issues
False positives and limits ruled out
Next
|
|
[agent] 2026-10-03 (14:18 UTC): pip / requirements.txt bug-hunt run Tested: main Setup:
Re-triagemain hasn't moved and no fix PR touches the open pip issues, so #668, #638, #604, #542, #410 and #409 stand. I didn't comment. Cells (Linux)
Issues
False positives and limits ruled out
Next
|
|
[agent] 2026-10-28 (08:12 UTC): pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked). Re-triage
Cells (Linux, plain
|
| Cell | Result |
|---|---|
2 hosted pins, idna has no service artifact: root CRLF / failing pin in -r requirements/base.txt / failing pin in the root with six in the include |
pass (eject_refused, exit 1, every file byte-identical; --dry-run agrees) |
| 2 pins, idna PyPI JSON 404, unhashed fragment pins | pass (ejects; revert gives idna==3.7, no hash needed) |
same 404 under --hash hash-checking mode |
pass (redirect_revert_failed → eject_refused, nothing touched) |
mixed CRLF/LF, UTF-8 BOM, BOM + CRLF, no trailing EOL, Six @ … ; python_version >= "3" + IDNA @ … |
pass (per-line endings kept; --check 0; re-run is a byte no-op; --revert restores == lines with BOM / EOL shape) |
real pip install of the ejected trees (root and -r include layouts), pip 26.x and 20.3.4 / py3.8 |
pass (both six.py and idna.py patched) |
#740: sibling -c requirements.txt, --constraint=requirements.txt, dev/requirements.txt with -c ../requirements.txt |
pass on the wet eject (vendor_requirements_constraints_link names each file) |
same, eject vendor --dry-run |
advisory missing (reports only eject_planned); open question, not filed |
Issues
None filed, commented on or closed.
False positives ruled out
- The BOM is dropped in the vendored state but restored by
--revert, and pip ignores it: cosmetic. - A corrupt prebuilt artifact (
mount_download) was shadowed bymount_view's higher-priority grant mock, so it exercised the no-artifact path again, not a post-restore failure. That's a fixture artifact, not CLI behaviour. scan --mode vendoredexited 1 with no events in this harness because no scan API was mocked. That's harness-only.
Next
- Hosted → vendored over requirements.txt + a
pip lockpylock.toml un-hosts both files but wires only pylock.toml, sopip install -r requirements.txtgoes from patched to unpatched whilevendorexits 0 #1758: re-verify once Fix pylock projects dropping requirements.txt patch (#1758) #1759 merges, then a-rinclude beside pylock andpylock.<name>.toml. - A real
eject_rolled_back(a failure after the restore) over requirements.txt: it needs a fixture whose artifact passes the grant but fails to wire. - Re-verify Vendored
vendor --revert/removeof a two-packagepip lockpylock.toml writes an invalid lock: the first package's[packages.wheels.hashes]table moves under the next package, pip refuses the file, and the CLI exits 0 #1623, A requirements.txt pin spelled===X,==X.0or==vXdoesn't contest another lock's Socket wiring of release X, sovexattests not_affected whilepip install -rinstalls the upstream release (#1549 residual) #1602, A requirements.txt wheel path without a leading./(wheels/six-1.16.0-…whl) doesn't contest another lock's Socket wiring, sovexstill attests not_affected whilepip install -rinstalls the upstream wheel (#1549 residual) #1587, Vendored requirements.txt still refuses a marker-split package when the other version's branch sits in a different file of the-rtree (false "not pinned to ==1.16.0", exit 1), so a fresh install stays unpatched #1104 and Agent-mode apply of a same-size PyPI patch in the same second aspip installleaves pip's__pycache__bytecode valid, so Python keeps running the unpatched code while apply reports it patched #819 with real pip, plus the plain vendored planner over a mixed CRLF/LF file (Vendored requirements.txt rewrite re-joins every line of a mixed CRLF/LF file with one terminator, so untouched lines change andvendor --revert/removecan't restore the file #1567). - Ask the maintainer whether eject previews should carry backend advisories (open question h).
- A Windows / macOS probe once branch deletion works.
|
[agent] 2026-10-28 (13:48 UTC): pip / requirements.txt bug-hunt run Tested: main New harness (no Rust test needed): a ~60-line Python Probe branches: none (branch deletion is still blocked). Re-triage
Cells (Linux)
IssuesNone filed, commented on or closed. False positives ruled out
Next
|
|
[agent] Janitor: ledger drift on main Generated by Claude Code |
|
[agent] 2026-10-28 (20:30 UTC): pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked). Re-triage
Cells (Linux, pip 26.2.2)
Issues
False positives ruled out
Harness (rebuild in about 5 minutes)Make the patched wheel from the real mock.pyimport http.server,json,hashlib,base64,sys,os,subprocess
PORT=int(sys.argv[1]); D=sys.argv[2]
ORG='o'; UUID='2b1f6c1e-8d3a-4f6b-9c2d-7e5a9b1c3d11'; PURL='pkg:pypi/six@1.16.0'; W='six-1.16.0-py2.py3-none-any.whl'
B=f'http://127.0.0.1:{PORT}'
orig=open(f'{D}/dl/{W}','rb').read(); pat=open(f'{D}/patched.whl','rb').read()
import zipfile,io
def member(b): return zipfile.ZipFile(io.BytesIO(b)).read('six.py')
def gsha(b): return hashlib.sha256(b'blob %d\0'%len(b)+b).hexdigest()
o6,p6=member(orig),member(pat)
HROUTE=f'/patch/pypi/six/1.16.0/33333333-3333-4333-8333-333333333333/{UUID}/{W}'
view={"uuid":UUID,"purl":PURL,"publishedAt":"2026-01-01T00:00:00Z","files":{"six.py":{"beforeHash":gsha(o6),"afterHash":gsha(p6),"blobContent":base64.b64encode(p6).decode()}},"vulnerabilities":{},"description":"x","license":"MIT","tier":"free"}
class H(http.server.BaseHTTPRequestHandler):
def log_message(self,*a): open(f'{D}/mock.log','a').write(self.command+' '+self.path+'\n')
def send(self,code,body,ct='application/json'):
if not isinstance(body,bytes): body=json.dumps(body).encode()
self.send_response(code); self.send_header('Content-Type',ct); self.send_header('Content-Length',str(len(body))); self.end_headers(); self.wfile.write(body)
def do_POST(self):
n=int(self.headers.get('Content-Length',0)); self.rfile.read(n); p=self.path.split('?')[0]
if p.endswith('/patches/batch'):
return self.send(200,{"packages":[{"purl":PURL,"patches":[{"uuid":UUID,"purl":PURL,"tier":"free","cveIds":[],"ghsaIds":[],"severity":"high","title":"t"}]}],"canAccessPaidPatches":False})
if p.endswith('/patches/package'):
u=B+HROUTE
return self.send(200,{"results":{UUID:{"status":"granted","url":u,"purl":PURL,"artifacts":[{"kind":"tarball","url":u,"integrity":{"sha256":hashlib.sha256(pat).hexdigest(),"sha512":"sha512-"+base64.b64encode(hashlib.sha512(pat).digest()).decode()}}],"registryOverride":None}}})
self.send(404,{})
def do_GET(self):
p=self.path.split('?')[0]
if '/patches/by-package/' in p:
return self.send(200,{"patches":[{"uuid":UUID,"purl":PURL,"publishedAt":"2026-01-01T00:00:00Z","description":"x","license":"MIT","tier":"free","vulnerabilities":{}}],"canAccessPaidPatches":False})
if p.endswith(f'/patches/view/{UUID}'): return self.send(200,view)
if p==HROUTE: return self.send(200,pat,'application/octet-stream')
if p=='/pypi/six/1.16.0/json':
return self.send(200,{"info":{"name":"six","version":"1.16.0"},"urls":[{"filename":W,"url":f"{B}/files/{W}","digests":{"sha256":hashlib.sha256(orig).hexdigest()},"size":len(orig),"packagetype":"bdist_wheel","upload_time_iso_8601":"2021-05-05T14:18:17.000000Z"}]})
if p.startswith('/files/') and os.path.exists(f'{D}/dl/'+p[7:]): return self.send(200,open(f'{D}/dl/'+p[7:],'rb').read(),'application/octet-stream')
if p.startswith('/simple/'):
n=p.split('/')[2].lower().replace('_','-').replace('.','-')
fs=[f for f in os.listdir(f'{D}/dl') if f.split('-')[0].lower().replace('_','-').replace('.','-')==n]
if not fs: return self.send(404,{})
return self.send(200,('<html><body>'+''.join(f'<a href="{B}/files/{f}#sha256={hashlib.sha256(open(f"{D}/dl/"+f,"rb").read()).hexdigest()}">{f}</a>' for f in fs)+'</body></html>').encode(),'text/html')
if p.startswith('/pypi/') and p.endswith('/json'):
_,_,n,v,_=p.split('/')
fs=[f for f in os.listdir(f'{D}/dl') if f.lower().startswith(n.lower().replace('-','_')+'-'+v+'-')]
if fs:
f=fs[0]; b=open(f'{D}/dl/'+f,'rb').read()
return self.send(200,{"info":{"name":n,"version":v},"urls":[{"filename":f,"url":f"{B}/files/{f}","digests":{"sha256":hashlib.sha256(b).hexdigest()},"size":len(b),"packagetype":"bdist_wheel","upload_time_iso_8601":"2021-05-05T14:18:17.000000Z"}]})
self.send(404,{})
http.server.ThreadingHTTPServer(('127.0.0.1',PORT),H).serve_forever()Next
|
|
[agent] 2026-10-29 (02:10 UTC): pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked). Re-triage
Cells (Linux)
Issues
False positives ruled out
Harness (rebuild in about 5 minutes)Two patched wheels made from the real PyPI wheels: append mock2.pyimport http.server,json,hashlib,base64,sys,os,zipfile,io
PORT=int(sys.argv[1]); D=sys.argv[2]; B=f'http://127.0.0.1:{PORT}'
P={'six':dict(ver='1.16.0',uuid='2b1f6c1e-8d3a-4f6b-9c2d-7e5a9b1c3d11',w='six-1.16.0-py2.py3-none-any.whl',m='six.py',pat='patched.whl'),
'idna':dict(ver='3.7',uuid='4d5e6f70-1111-4222-8333-944455556666',w='idna-3.7-py3-none-any.whl',m='idna/__init__.py',pat='patched-idna.whl')}
def gsha(b): return hashlib.sha256(b'blob %d\0'%len(b)+b).hexdigest()
for n,p in P.items():
p['orig']=open(f"{D}/dl/{p['w']}",'rb').read(); p['patb']=open(f"{D}/{p['pat']}",'rb').read()
p['purl']=f"pkg:pypi/{n}@{p['ver']}"
o=zipfile.ZipFile(io.BytesIO(p['orig'])).read(p['m']); q=zipfile.ZipFile(io.BytesIO(p['patb'])).read(p['m'])
p['route']=f"/patch/pypi/{n}/{p['ver']}/33333333-3333-4333-8333-333333333333/{p['uuid']}/{p['w']}"
p['view']={"uuid":p['uuid'],"purl":p['purl'],"publishedAt":"2026-01-01T00:00:00Z","files":{p['m']:{"beforeHash":gsha(o),"afterHash":gsha(q),"blobContent":base64.b64encode(q).decode()}},"vulnerabilities":{"GHSA-aaaa-bbbb-cccc":{"cves":["CVE-2099-0001"],"summary":"s","severity":"high","description":"d"}},"description":"x","license":"MIT","tier":"free"}
BYU={p['uuid']:p for p in P.values()}
class H(http.server.BaseHTTPRequestHandler):
def log_message(self,*a): open(f'{D}/mock.log','a').write(self.command+' '+self.path+'\n')
def send(self,code,body,ct='application/json'):
if not isinstance(body,bytes): body=json.dumps(body).encode()
self.send_response(code); self.send_header('Content-Type',ct); self.send_header('Content-Length',str(len(body))); self.end_headers(); self.wfile.write(body)
def do_POST(self):
n=int(self.headers.get('Content-Length',0)); body=self.rfile.read(n).decode('utf-8','replace'); p=self.path.split('?')[0]
if p.endswith('/patches/batch'):
return self.send(200,{"packages":[{"purl":q['purl'],"patches":[{"uuid":q['uuid'],"purl":q['purl'],"tier":"free","cveIds":[],"ghsaIds":[],"severity":"high","title":"t"}]} for q in P.values() if q['purl'] in body],"canAccessPaidPatches":False})
if p.endswith('/patches/package'):
res={}
for u,q in BYU.items():
if u in body or q['purl'] in body:
url=B+q['route']
res[u]={"status":"granted","url":url,"purl":q['purl'],"artifacts":[{"kind":"tarball","url":url,"integrity":{"sha256":hashlib.sha256(q['patb']).hexdigest(),"sha512":"sha512-"+base64.b64encode(hashlib.sha512(q['patb']).digest()).decode()}}],"registryOverride":None}
return self.send(200,{"results":res})
self.send(404,{})
def do_GET(self):
p=self.path.split('?')[0]
if '/patches/by-package/' in p:
return self.send(200,{"patches":[{"uuid":q['uuid'],"purl":q['purl'],"publishedAt":"2026-01-01T00:00:00Z","description":"x","license":"MIT","tier":"free","vulnerabilities":{"GHSA-aaaa-bbbb-cccc":{"cves":["CVE-2099-0001"],"summary":"s","severity":"high","description":"d"}}} for q in P.values() if q['purl'].replace('pkg:pypi/','') in p.replace('%40','@') or ('/'+q['purl'].split('/')[1].split('@')[0]) in p],"canAccessPaidPatches":False})
for u,q in BYU.items():
if p.endswith(f'/patches/view/{u}'): return self.send(200,q['view'])
if p==q['route']: return self.send(200,q['patb'],'application/octet-stream')
self.send(404,{})
http.server.ThreadingHTTPServer(('127.0.0.1',PORT),H).serve_forever()Next
|
|
[agent] 2026-10-29 (08:30 UTC): pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked, see backlog 3). Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-29 (14:40 UTC): pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked, see backlog 3). Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-29 (20:40 UTC): pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked, see backlog 3). Re-triage
Cells (Linux)
Issues
False positives ruled out
Harness addition
Next
|
|
[agent] 2026-10-30: pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked, see backlog 3). Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
|
|
[agent] 2026-10-30: pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked, see backlog 3). Re-triageNo PyPI code changed since run 55; #1873, #1851 (PR #1853), #1794 (PR #1796), #977 and #638 were not re-run. Cells (Linux)
Issues
False positives ruled out
Next
|
|
[agent] Janitor: ledger drift for the bug-hunt routine (this ledger body is not edited).
Generated by Claude Code |
|
[agent] 2026-11-01: pip / requirements.txt bug-hunt run Tested: main Probe branches: none (branch deletion is still blocked, see backlog 3). Re-triage
Cells (Linux, pip 26.2.2 / py3.12 unless noted)
Issues
False positives ruled out
Next
|
|
[agent] Janitor: ledger drift. These issues are now closed, but this ledger still lists them as failing or awaiting a fix:
Please re-verify on current main and update the ledger. Generated by Claude Code |
|
[agent] 2026-11-26: pip / requirements.txt bug-hunt run Tested: main Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
|
|
[agent] 2026-11-27: pip / requirements.txt bug-hunt run Tested: main Re-triage
Cells (Linux)
Issues
False positives ruled out
Next
|
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 pip / requirements.txt bug-hunt routine (label pm:pip).
Last run: 2026-11-27, main
cfc870f, release v5.1.0, newest pip 26.3 (CPython 3.8–3.14 covered). Open bughunt issues: #2302 (new), #2272, #977 (needs-human). Harness: mock2.py from entry 20261029T021000Z plus a/patches/blob/<gitsha>route (BLOB map of before/after file contents) and an auth-checking mirror proxy (entry 20261127).Coverage matrix
Cells dated before 2026-11-11 count as untested for the release (see INSTRUCTIONS "Release focus"). Linux only.
pip install -rafter rollback / revert (#1953)--require-hashes-r/-cincludes${VAR}in requirement lines + pylock (#1873)-rinclude (#1851)pip lockpylock.toml /pip install -r pylock.toml--patch-mirror-url, new since v5.1.0)--checkwith mirror (2026-11-26)-e ./app, option lines, marker-split duplicatessix[foo]) eject / vendored (#1794)-g(--user)-g, 2026-11-27)redirect_unconfirmed/ #638 class (closed)pip freeze-regenerated file,--max-new-patches--max-new-patches(2026-11-27)--groupfrom pylock with group markersBacklog
pip install -r requirements.txtkeeps the unpatched same-version install #2302: re-verify once fixed (Hosted and vendored pip: the stale-install advice says to reinstall from the lockfile, but a plainpip install -r requirements.txtkeeps the unpatched same-version install #2302: the hosted / vendored / vex advice for a pip venv must name a command that replaces a same-version install).-rinclude pinned on the patch server, then a mirror run (vendored → hosted takeover).--uploaded-prior-towith a hosted URL pin;pip lockre-run over a hosted requirements.txt.--user/ system-site venv on main; hosted-gon main.pip check/pip uninstallafter an agent apply once they land.==X;vendor --revertvsrollbackon a one-sidedstate.jsonmerge; residual probe reading only*.txt/*.lock.Known non-bugs
Full list:
known-non-bugs/pip.md(search withgit grep). Most likely to be re-filed:_.normalised, hash continuations joined, one hash per PyPI file.pip install -runtil--force-reinstall;redirect_pypi_stale_installwarns.-rinclude →No requirements.txt entry../src/six,-e ./src/six) don't contest a pylock wiring.-cconstraints-only pins, ranges and direct URLs are refused by vendored mode (pypi_requirement_not_pinned).vendorreportsnoManifest(exit 0)./patches/blob/<sha>route; "Before blob could not be downloaded" from a mock without it is a harness gap.setupcommand /.pthhook; that focus area is obsolete.vexattests a pylock dependency-group package that the venv didn't install: documented verification basis (lock pin / committed artifact).All reactions