Skip to content

Commit c35339b

Browse files
committed
pip bughunt: 2026-11-30 run
1 parent 72f5578 commit c35339b

3 files changed

Lines changed: 42 additions & 9 deletions

File tree

‎entries/pip/20261130T034901Z.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[agent] 2026-11-30: pip / requirements.txt bug-hunt run
2+
3+
**Tested:** main `cfc870f` (unchanged; backlog not empty), latest release v5.1.0. Linux only: real pip 26.3 / CPython 3.12 (uv venvs), pip 20.3.4 / CPython 3.8, system pip 24.0 / CPython 3.11 and 3.12 for `--user`. Harness: mock2.py from entry 20261029T021000Z plus a `/patches/blob/<gitsha>` route.
4+
5+
## Re-triage
6+
7+
- #2357, #2329, #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+
| Vendored, hashed `-c sub/constraints.txt` inside an `-r base.txt` include (pip 26.3) | fail, same as #2357 (unhashed vendor lines in both files; install refuses; `vendor --check` 0) |
14+
| Vendored, hashed constraints through `PIP_CONSTRAINT` | fail, same as #2357 |
15+
| Hosted + hashed `-c` constraints (installs patched), then `vendor` eject | fail, same as #2357 |
16+
| Vendored `pip install --user -r` (CRLF, marker, `Idna`), `PYTHONUSERBASE` user site, system pip 24.0 / py3.11 and py3.12 | pass: patched copies import from the user site; `vendor --check` 0; vex attests both; rollback byte-identical. Friction: vex warns `vendored_tree_out_of_sync` about the shadowed apt `six` in `/usr/lib/python3/dist-packages`, and re-running the install can't clear it |
17+
| Vendored pin in `reqs/base.txt` include; install from the root (pip 26.3, 20.3.4) | pass; from a subdirectory cwd fails (known non-bug: cwd-relative paths) |
18+
19+
## Issues
20+
21+
- Filed: none.
22+
- Commented: #2357 https://github.com/SocketDev/socket-patch/issues/2357#issuecomment-7268214655 (three more layouts: `-c` in an include, `PIP_CONSTRAINT`, hosted → vendored eject).
23+
- Closed: none.
24+
25+
## False positives ruled out
26+
27+
- Vendored install from a subdirectory cwd failing: already a known non-bug (cwd-relative wheel paths, CLI_CONTRACT.md).
28+
- `--user` vex out-of-sync warning: attestation is correct and the importable copy is patched; recorded as friction, not filed.
29+
30+
## Next
31+
32+
1. #2357 / #2329 / #2302 / #2272 re-verify once fixed.
33+
2. `pip lock` from a hashed-constraint tree; `--require-hashes` with hosted pins on pip 20.3 / 23.x.

‎known-non-bugs/pip.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,4 @@ Moved from state/pip.md on 2026-11-26 when the state file was compacted. Search
112112
- 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).
113113
- Vendored with `--patch-mirror-url`: a `six @ <mirror-host>/other/patch/pypi/…` fork (outside the mirror base) is refused as `pypi_requirement_not_pinned`, exit 1, the other package still wired. It is the project's own source by the contract's mirror rules (2026-11-29).
114114
- A `-r`-include pin kept vendored under a hosted run (`redirect_requirements_takeover_unreachable`) is counted "left to patch" in the closing totals: the cross-ecosystem #2304 (PyPI evidence commented there, 2026-11-29). Don't file it separately.
115+
- Vendored `pip install --user -r` on a system interpreter that also has an apt copy of the package (`/usr/lib/python3/dist-packages`): vex attests from the committed artifact and warns `vendored_tree_out_of_sync` about the shadowed system copy, although the user-site copy that imports is patched. Friction only (2026-11-30).

‎state/pip.md‎

Lines changed: 8 additions & 9 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-29, main `cfc870f`, release v5.1.0, newest pip 26.3 (CPython 3.8–3.14 covered). Open bughunt issues: #2357 (new), #2329, #2302, #2272, #977 (needs-human). Harness: mock2.py from entry 20261029T021000Z plus a `/patches/blob/<gitsha>` route and a `/mirror/<path>` prefix (HEAD too) served by a second mock instance on another port (entry 20261129).
3+
Last run: 2026-11-30, main `cfc870f`, release v5.1.0, newest pip 26.3 (CPython 3.8–3.14 covered). Open bughunt issues: #2357, #2329, #2302, #2272, #977 (needs-human). Harness: mock2.py from entry 20261029T021000Z plus a `/patches/blob/<gitsha>` route and a `/mirror/<path>` prefix (HEAD too) served by a second mock instance on another port (entry 20261129).
44

55
## Coverage matrix
66

@@ -12,15 +12,15 @@ Cells dated before 2026-11-11 count as untested for the release (see INSTRUCTION
1212
| Plain `pip install -r` after rollback / revert (#1953) | n/a | pass: reinstall advisory (2026-11-26) | pass: advisory (2026-11-26) |
1313
| CRLF + marker + mixed-case name | pass (26.3/py3.12, 20.3.4/py3.8, 2026-11-27) | pass (20.3.4, 2026-11-26; restore normalises name) | pass (20.3.4, 2026-11-26) |
1414
| pip-compile hashed pins, `--require-hashes` | pass (old) | pass (26.3 + mirror, 2026-11-26) | pass (24.0/25.0.1, 2026-10-29) |
15-
| `-r` / `-c` includes | n/a | root file only (documented); hashed `-c` constraints + unhashed root pass (26.3/23.3.2/20.3.4, 2026-11-29) | pass (2026-10-29); hashed `-c` constraints → fail #2357 (pip ≥ 26.1) |
15+
| `-r` / `-c` includes | n/a | root file only (documented); hashed `-c` constraints + unhashed root pass (26.3/23.3.2/20.3.4, 2026-11-29) | pass (2026-10-29); hashed `-c` constraints (root, inside an include, `PIP_CONSTRAINT`, hosted → vendored eject) → fail #2357 (pip ≥ 26.1, 2026-11-30) |
1616
| `${VAR}` in requirement lines + pylock (#1873) | n/a | pass (refuses) | pass: fixed, six refused, not attested (2026-11-26) |
1717
| Out-of-root `-r` include (#1851) | n/a | root-only (documented), eject refused (2026-11-27) | pass: refused, fixed (26.3, 2026-11-27) |
1818
| `pip lock` pylock.toml / `pip install -r pylock.toml` | n/a | pass (26.3, 2026-11-26); sole-package restore refusal is known | pass (26.2.2, 2026-10-29) |
1919
| Patch mirror (`--patch-mirror-url`, new since v5.1.0) | n/a | pass: re-pin, install, vex, rollback, dead/404 mirror skip, takeover (2026-11-26); without the setting → fail #2272 | pass: eject + `--check` with mirror (2026-11-26) |
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) | system-site: known non-bug (base copy kept, vex warns out-of-sync), CRLF + marker revert byte-identical (26.3, 2026-11-28) |
23+
| system-site venv / global `-g` (`--user`) | pass (26.3 system-site, 24.0 `-g`, 2026-11-27) | pass (old) | vendored `pip install --user -r`: pass (24.0/py3.11, py3.12, 2026-11-30; vex warns about a shadowed apt copy, friction) ; 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) |
@@ -35,12 +35,11 @@ Cells dated before 2026-11-11 count as untested for the release (see INSTRUCTION
3535

3636
## Backlog
3737

38-
1. #2357, #2272, #2302, #2329: re-verify once fixed. For #2357 also check `PIP_CONSTRAINT` / pip.conf `constraint =` with hashes, a `-c` inside an `-r` include, and the hosted → vendored eject over the same layout.
39-
2. Vendored `--user` (`pip install --user -r` over a vendored file).
40-
3. pip 26.1+ hashed-constraint layout in other shapes: `pip lock` from such a tree, and `pip install --require-hashes` with the hosted pin on pip 20.3 / 23.x (baseline fails there).
41-
4. #2201 / #2194 (enhancements, agent-mode RECORD / variant selection): don't re-file; check `pip check` / `pip uninstall` after an agent apply once they land.
42-
5. 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`.
43-
6. 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. After a vendored rollback refused on a `pip lock` pylock and the pylock is re-exported, the second rollback says "the vendor line for requirements.txt:1 changed since vendoring; left untouched", though the first attempt had already restored it. A vendored re-scan over a `pip lock` pylock warns "pylock.toml do not contain this package version" (the entry has no `version`).
38+
1. #2357, #2272, #2302, #2329: re-verify once fixed (#2357 variants commented 2026-11-30: include `-c`, `PIP_CONSTRAINT`, eject).
39+
2. pip 26.1+ hashed-constraint layout in other shapes: `pip lock` from such a tree, and `pip install --require-hashes` with the hosted pin on pip 20.3 / 23.x (baseline fails there).
40+
3. #2201 / #2194 (enhancements, agent-mode RECORD / variant selection): don't re-file; check `pip check` / `pip uninstall` after an agent apply once they land.
41+
4. 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+
5. Friction (not filed): vendored `--user` vex warns `vendored_tree_out_of_sync` about a shadowed system (apt) copy even though the user-site copy is patched. 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. After a vendored rollback refused on a `pip lock` pylock and the pylock is re-exported, the second rollback says "the vendor line for requirements.txt:1 changed since vendoring; left untouched", though the first attempt had already restored it. A vendored re-scan over a `pip lock` pylock warns "pylock.toml do not contain this package version" (the entry has no `version`).
4443

4544
## Known non-bugs
4645

0 commit comments

Comments
 (0)