Skip to content

Commit 3bc3a17

Browse files
committed
pip bughunt: 2026-11-28 run
1 parent 7833783 commit 3bc3a17

3 files changed

Lines changed: 44 additions & 6 deletions

File tree

‎entries/pip/20261128T050000Z.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[agent] 2026-11-28: pip / requirements.txt bug-hunt run
2+
3+
**Tested:** main `cfc870f` (unchanged; backlog not empty), latest release v5.1.0 (release binary for the regression check). Linux only: real pip 26.3 and 25.1 on CPython 3.12 (uv venvs), pip 26.3 on CPython 3.11 `--system-site-packages`. Harness: mock2.py from entry 20261029T021000Z (patched wheels rebuilt with recomputed RECORD), plus a mirror proxy serving `/mirror/<path>` and a "fork" `/other/<path>` from the mock.
4+
5+
## Re-triage
6+
7+
- #2302, #2272: main unchanged since they were filed; not re-run. #977: `agent:needs-human`, skipped.
8+
9+
## Cells (Linux)
10+
11+
| Cell | Result |
12+
| --- | --- |
13+
| Mirror fork: `six @ <mirror-host>/other/patch/pypi/six/…` + mirror base `<host>/mirror`, hosted scan ×2 | pass (left alone, `redirect_pin_on_unconfigured_host`; idna moved onto the mirror; list / vex don't attest the fork) |
14+
| pip 26.3 `pip install --uploaded-prior-to 2021-01-01 -r` with hosted pins | pass (patched, vex attests) |
15+
| `pip lock -r requirements.txt` over a hosted requirements.txt, then re-scan / rollback / list / vex | **fail → #2329** (pip writes archive entries with no `version`; re-scan "No patches could be switched", rollback "Restored" but pylock stays patched, list exit 1 / vex exit 2 `patched_ref_invalid`) |
16+
| Same on pip 25.1 and on v5.1.0 | reproduces (not a regression) |
17+
| Vendored, `--system-site-packages` venv over a base interpreter with six 1.16.0, CRLF + marker + `Idna` | known non-bug (base copy kept, vex warns out-of-sync); `vendor --check` 0; revert byte-identical |
18+
19+
## Issues
20+
21+
- Filed: #2329 https://github.com/SocketDev/socket-patch/issues/2329
22+
- Commented / closed: none.
23+
24+
## False positives ruled out
25+
26+
- System-site venv keeping the base-interpreter six after a vendored scan: already in known-non-bugs (`vendored_tree_out_of_sync` warning fires).
27+
- Mirror-host fork left alone: the contract's rule, recorded in known-non-bugs.
28+
29+
## Next
30+
31+
1. #2272 / #2302 / #2329 re-verify once fixed.
32+
2. `pip lock -r` over a vendored requirements.txt: list / vex attribution.
33+
3. `-r` include pinned on the patch server, then a mirror run.

‎known-non-bugs/pip.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,4 @@ Moved from state/pip.md on 2026-11-26 when the state file was compacted. Search
109109
- With the patch mirror unset, `scan --mode vendored` over mirror pins refuses `not pinned to ==X` and nothing is written (fail-closed); the missing mirror hint is part of #2272 (2026-11-26).
110110
- A hand-written pylock with `dependency-groups` + `'dev' in dependency_groups` markers, hosted or vendored: `vex` against a venv that installed only `--group pylock.toml:web` still attests the `dev` package. Documented: hosted with nothing installed attests from the lock pin; vendored attests the committed artifact (CLI_CONTRACT "Verification basis") (2026-11-27).
111111
- Vendored over a latin-1 PEP 263 requirements.txt refuses every package ("not UTF-8 text"), exit 1, nothing written: fail-closed like the hosted twin (2026-11-27).
112+
- With `--patch-mirror-url <host>/mirror`, a requirements.txt pin in the patch-server path shape under another repository of the same host (`<host>/other/patch/pypi/…`) is left alone with `redirect_pin_on_unconfigured_host`, and list / vex ignore it: the contract's "fork on the mirror's host" rule (2026-11-28).

‎state/pip.md‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[agent] Progress ledger for the scheduled pip / requirements.txt bug-hunt routine (label pm:pip).
22

3-
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).
3+
Last run: 2026-11-28, main `cfc870f`, release v5.1.0, newest pip 26.3 (CPython 3.8–3.14 covered). Open bughunt issues: #2329 (new), #2302, #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).
44

55
## Coverage matrix
66

@@ -20,22 +20,26 @@ Cells dated before 2026-11-11 count as untested for the release (see INSTRUCTION
2020
| Editable `-e ./app`, option lines, marker-split duplicates | n/a | pass (26.2.2, 2026-11-01) | pass (2026-11-01) |
2121
| Extras (`six[foo]`) eject / vendored (#1794) | n/a | pass | pass: refused (2026-11-01) |
2222
| Vendored comment edited then revert | n/a | n/a | fail #977 (needs-human) |
23-
| system-site venv / global `-g` (`--user`) | pass (26.3 system-site, 24.0 `-g`, 2026-11-27) | pass (old) | untested |
23+
| system-site venv / global `-g` (`--user`) | pass (26.3 system-site, 24.0 `-g`, 2026-11-27) | pass (old) | system-site: known non-bug (base copy kept, vex warns out-of-sync), CRLF + marker revert byte-identical (26.3, 2026-11-28) |
2424
| No venv (lock-only) hosted | n/a | `redirect_unconfirmed` / #638 class (closed) | pass |
2525
| UTF-16 / BOM / PEP 263 coding line | n/a | pass BOM / fail-closed UTF-16, latin-1 (2026-11-27) | pass BOM / fail-closed latin-1 (2026-11-27) |
2626
| `pip freeze`-regenerated file, `--max-new-patches` | pass (2026-11-27) | pass (2026-11-27) | pass `--max-new-patches` (2026-11-27) |
2727
| pip 26.3 `--group` from pylock with group markers | n/a | pass (2026-11-27) | pass (2026-11-27) |
2828
| Warm venv: follow the printed reinstall advice | n/a | fail #2302 | fail #2302 |
29+
| `pip lock -r requirements.txt` over a hosted requirements.txt (archive entries, no `version`): re-scan / rollback / list / vex | n/a | fail #2329 (26.3, 25.1; also v5.1.0) | untested |
30+
| Mirror: fork in another repository of the mirror host (`/other/…` patch-path shape) | n/a | pass: left alone, `redirect_pin_on_unconfigured_host`; list / vex ignore it (2026-11-28) | untested |
31+
| pip 26.3 `--uploaded-prior-to` with hosted URL pins | n/a | pass (2026-11-28) | n/a |
2932
| macOS / Windows | blocked (probe workflows off by maintainer decision) | blocked | blocked |
3033

3134
## Backlog
3235

33-
1. #2272 and #2302: re-verify once fixed (#2302: the hosted / vendored / vex advice for a pip venv must name a command that replaces a same-version install).
34-
2. Mirror follow-ups: a mirror base with a path that collides with a project-owned URL on the same host (a fork elsewhere → must be refused); a `-r` include pinned on the patch server, then a mirror run (vendored → hosted takeover).
35-
3. pip 26.3 `--uploaded-prior-to` with a hosted URL pin; `pip lock` re-run over a hosted requirements.txt.
36-
4. Vendored `--user` / system-site venv on main; hosted `-g` on main.
36+
1. #2272, #2302, #2329: re-verify once fixed (#2329: also check the vendored eject over a `pip lock -r` pylock with no `version`).
37+
2. Mirror follow-ups: a `-r` include pinned on the patch server, then a mirror run (vendored → hosted takeover); mirror fork cell in vendored mode.
38+
3. `pip lock -r` over a vendored requirements.txt (`file://` archive, no version) + `vex` — the 2026-10-14 revert drift-keep is known; check list / vex attribution.
39+
4. Hosted `-g` on main; vendored `--user`.
3740
5. #2201 / #2194 (enhancements, agent-mode RECORD / variant selection): don't re-file; check `pip check` / `pip uninstall` after an agent apply once they land.
3841
6. Maintainer questions still open (details in history): hosted rollback restoring an unpinned root as `==X`; `vendor --revert` vs `rollback` on a one-sided `state.json` merge; residual probe reading only `*.txt` / `*.lock`.
42+
7. Friction (not filed): with the mirror set, a pin elsewhere on the mirror host gets "which this run was not given as a patch mirror … set --patch-mirror-url" though it was; consider if users hit it.
3943

4044
## Known non-bugs
4145

0 commit comments

Comments
 (0)