Skip to content

Commit 9dfb8e8

Browse files
committed
pipenv: bug-hunt run 2026-12-04
1 parent 720fecb commit 9dfb8e8

3 files changed

Lines changed: 43 additions & 7 deletions

File tree

‎entries/pipenv/20261204T185028Z.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[agent] 2026-12-04: Pipenv bug-hunt run
2+
3+
**Tested:** main `cd7c5c5` (5 commits since `7beca2f`, none in pypi code), latest release v5.2.0 (tagged since the last run, so the release focus is over). Newest Pipenv is still 2026.12.1. Linux only. Real Pipenv 2026.12.1 and 2023.12.1 on py3.11, and 2018.11.26 on py3.8, with WORKON_HOME venvs. I rebuilt the mock: a python http.server on the free-proxy route (batch, by-package, view, blob, a package grant with sha256 + `sha512-` sha512, and a real patched six 1.16.0 wheel). A second http.server served as the patch mirror under a path prefix.
4+
5+
## Re-triage
6+
- #2343 and #2460: no commit on main references either one, so I left both open.
7+
8+
## Cells (Linux, `cd7c5c5`)
9+
- **Hosted common path, 2026.12.1** (scan, lock-only `sync` PATCHED, vex `not_affected`, rollback byte-exact, then the printed remedy gives UPSTREAM): pass.
10+
- **Vendored common path, 2026.12.1** (`sync` PATCHED, `vendor --check` 0, vex, revert byte-exact): pass.
11+
- **Hosted and vendored, 2023.12.1** (lock-only `install --deploy` PATCHED, vex, byte-exact revert; vendored prints `vendor_integrity_unverified`): pass.
12+
- **Pipenv 2018.11.26 (py3.8):**
13+
- Agent: apply PATCHED, pip check clean, vex, RECORD byte-exact after rollback, UPSTREAM.
14+
- Hosted: lock-only `install --deploy` PATCHED, vex, rollback byte-exact.
15+
- Both pass.
16+
- **Agent on a uv-made `.venv` beside the Pipfile (backlog 5), 2026.12.1:** pass. The LF RECORD row is rewritten to the new hash and size, and pip / uv check are clean. Vex passes, rollback restores RECORD byte-exact, and a uv uninstall leaves no files behind.
17+
- **Patch mirror base with a path prefix and a trailing slash (backlog 3), 2026.12.1:** pass.
18+
- The pin is written under the prefix and checked with one HEAD.
19+
- `install --deploy` fetches through the mirror and gives PATCHED.
20+
- The re-scan is idempotent, `list` shows the patch as hosted, vex passes and rollback is byte-exact.
21+
- **A pin on the mirror's host outside its base, in the patch-server shape:** pass (fails closed). `redirect_pin_on_unconfigured_host`, and the lock is unchanged on 2 runs. One friction point: the warning names only the host, which the run *was* given as the mirror. I didn't file it because the shape is contrived.
22+
- **An editable local path package beside the patched dependency, hosted:** pass. The editable entry is kept. `install --ignore-pipfile`, `pipenv graph` and `pipenv clean` all keep PATCHED. Vex passes and rollback is byte-exact.
23+
- **Pipfile-only project (no lock), hosted:** pass. The warning's remedy (`pipenv lock` and commit) is correct.
24+
25+
## Issues
26+
None filed, commented on or closed.
27+
28+
## False positives ruled out
29+
- From a subdirectory of a Pipenv project, `scan` says "No packages found. Run your package manager's install first." Under `pipenv run`, hosted mode suggests a root requirements.txt, and agent mode patches the venv but writes `.socket/` into the subdirectory. This is documented in docs/testing/pipenv-compatibility.md ("CLI scope": no walk-up to a parent Pipfile; run in the project directory or pass `--cwd`).
30+
- A grant `sha512` without the `sha512-` prefix is refused as malformed. That was the mock.
31+
32+
## Next
33+
Re-verify #2460 / #2343 once they're fixed, Pipenv 11.10.4 (py3.6), netrc through the mirror, and #1572 / #1608 on 2026.12.1.

‎known-non-bugs/pipenv.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ One line per ruled-out finding. Search with git grep; don't read the whole file.
108108
- Harness note (2026-11-28): the mock must also serve the BEFORE blob (`/patch/blob/<gitsha256 of the original>`) or agent `rollback` fails "Before blob could not be downloaded". The real patch API (patches-api.socket.dev) is blocked by the sandbox proxy (CONNECT 403).
109109
- A hosted Pipfile.lock pin whose URL carries userinfo (`http://user:tok@<patch-server>/patch/...`) isn't recognized as owned even on the configured `--patch-server-url` host ("not given as a patch mirror or patch server"). Documented: CLI_CONTRACT "Patch hosts" counts only references "with no userinfo". The secret is redacted everywhere (2026-12-02).
110110
- `vex` in a Pipfile-only project exits with "must name the project it describes"; Pipfile isn't a product source, so pass `--product` (documented detection list) (2026-12-02).
111+
- From a subdirectory of a Pipenv project (no walk-up to a parent Pipfile, PIPENV_MAX_DEPTH), scan finds nothing or suggests a root requirements.txt, and `pipenv run` agent mode writes `.socket/` into the subdirectory: documented in docs/testing/pipenv-compatibility.md "CLI scope" (run in the project dir or pass `--cwd`).

‎state/pipenv.md‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[agent] Progress ledger for the scheduled Pipenv bug-hunt routine (label pm:pipenv).
22

3-
Last run: 2026-12-02 ~18:56Z, main `7beca2f` (release v5.1.0; release focus is on), newest Pipenv 2026.12.1 (no release since 2026-11-26). Linux only. The pre-compaction history is in the branch history (state/pipenv.md before 2026-11-26).
3+
Last run: 2026-12-04 ~18:50Z, main `cd7c5c5` (release v5.2.0, tagged since 2026-12-02; the release focus is over), newest Pipenv 2026.12.1 (no release since 2026-11-26). Linux only. The pre-compaction history is in the branch history (state/pipenv.md before 2026-11-26).
44

55
## Coverage matrix
66

7-
One row per workflow, one column per mode. "pass `cfc870f`" or later (`7beca2f`) means re-run this release cycle (on or after 2026-11-11); a pass with an older SHA only counts as untested for the release (see INSTRUCTIONS.md "Release focus").
7+
One row per workflow, one column per mode. SHAs from oldest to newest: `cfc870f` < `7beca2f` < `cd7c5c5` (v5.2.0 + 5 commits).
88

99
| Workflow | agent | hosted | vendored |
1010
| --- | --- | --- | --- |
11-
| Common path: scan, lock-only `sync` + fresh `install --deploy`, stale warning + remedy, vex, rollback byte-exact | pass 2026.12.1 `cfc870f`; RECORD rewrite (#2417: in-place row, added-file row, uninstall / force-reinstall, byte-exact rollback) pass 2026.12.1 + 2020.11.15 `7beca2f` | pass 2020.11.15 / 2024.4.1 / 2025.0.4 / 2026.12.1 `7beca2f` (incl. rollback remedy UPSTREAM); 2022.12.19 / 2023.12.1 `cfc870f` | pass 2020.11.15 / 2024.4.1 / 2026.12.1 `7beca2f`; 2022.12.19 / 2023.12.1 `cfc870f` |
11+
| Common path: scan, lock-only `sync` + fresh `install --deploy`, stale warning + remedy, vex, rollback byte-exact | pass 2018.11.26 (py3.8) `cd7c5c5`; uv-made `.venv` (LF RECORD) 2026.12.1 `cd7c5c5`; 2026.12.1 `cfc870f`; RECORD rewrite (#2417: in-place row, added-file row, uninstall / force-reinstall, byte-exact rollback) pass 2026.12.1 + 2020.11.15 `7beca2f` | pass 2018.11.26 / 2023.12.1 / 2026.12.1 `cd7c5c5` (incl. rollback remedy UPSTREAM); 2020.11.15 / 2024.4.1 / 2025.0.4 `7beca2f`; 2022.12.19 `cfc870f` | pass 2023.12.1 / 2026.12.1 `cd7c5c5`; 2020.11.15 / 2024.4.1 `7beca2f`; 2022.12.19 `cfc870f` |
1212
| Pipenv 2018.11.26 / 11.x common path | pass `045d7ec`–`61cfb9b`; untested this release | 2018.11.26 py3.8 pass `cfc870f`; 11.10.4 blocked 2026-12-02 (no py3.6/3.7 in sandbox, Pipenv 11 cannot create a venv on 3.8) | 2018.11.26 pass `cfc870f`; 7–11 refused (documented) |
13-
| Patch mirror (`--patch-mirror-url`, experimental) | n/a | pass 2026.12.1 `cfc870f`: fresh pin, lock-only `--deploy` PATCHED, idempotent rescan, `redirect_pin_on_unconfigured_host` without the mirror, patch.socket.dev pin moved onto the mirror, rollback byte-exact; no-mirror list/remove/rollback silence is #2272 (commented) | takeover of a mirrored pin with the mirror: pass 2026.12.1 `cfc870f` (revert byte-exact); without it: "user-declared file reference" (#2272 comment) |
13+
| Patch mirror (`--patch-mirror-url`, experimental) | n/a | base with a path prefix + trailing slash pass 2026.12.1 `cd7c5c5` (deploy through the mirror, idempotent, list / vex / rollback); a pin on the mirror host outside its base fails closed (`redirect_pin_on_unconfigured_host`) `cd7c5c5`; pass 2026.12.1 `cfc870f`: fresh pin, lock-only `--deploy` PATCHED, idempotent rescan, `redirect_pin_on_unconfigured_host` without the mirror, patch.socket.dev pin moved onto the mirror, rollback byte-exact; no-mirror list/remove/rollback silence is #2272 (commented) | takeover of a mirrored pin with the mirror: pass 2026.12.1 `cfc870f` (revert byte-exact); without it: "user-declared file reference" (#2272 comment) |
1414
| Relock (`pipenv install <other>` keeps the pin, `pipenv lock` drops it, documented) | n/a | pass 2026.12.1 `cfc870f` | pass 2026.12.1 `cfc870f` |
1515
| Mode switch agent → hosted → rollback | pass 2026.12.1 `7beca2f` (venv UPSTREAM after rollback) | pass 2026.12.1 `7beca2f` (lock byte-exact) | untested |
1616
| Credential redaction (#2445) in Pipfile.lock-quoted URLs | n/a | pass 2026.12.1 `7beca2f` (scan / list / rollback text + `--json`) | pass 2026.12.1 `7beca2f` |
@@ -20,18 +20,19 @@ One row per workflow, one column per mode. "pass `cfc870f`" or later (`7beca2f`)
2020
| Out-of-tree venv discovery (WORKON_HOME, IN_PROJECT, `.env`, `.venv` pointer, VIRTUAL_ENV) | pass 2026.12.1 `7beca2f` (WORKON_HOME with a space, `.venv` pointer, VIRTUAL_ENV); `.env` IN_PROJECT pass `cfc870f` | stale warning + remedy pass 2026.12.1 `7beca2f` (same three shapes) | n/a |
2121
| requirements.txt sibling / `pipenv requirements` export | n/a | pass `657fce2`; `--hash` hosted pass | #981 (`--hash` on 2023.7.9+) closed; pass `657fce2` |
2222
| `--prune` GC, interrupted runs (SIGKILL), concurrent scans | n/a | pass `e76cb9b` | pass `7d3086f` |
23+
| Editable local path package beside the patched dep; `install --ignore-pipfile`, `graph`, `clean`; Pipfile-only remedy | n/a | pass 2026.12.1 `cd7c5c5` | untested |
2324
| `-g` / `install --system` | pass 2018 / 2022 / 2023 / 2026.8 `61cfb9b` | refused exit 2 (documented) | n/a |
2425
| macOS / Windows | probes disabled by maintainers (Linux only) | | |
2526

2627
## Backlog
2728

2829
1. #2460 and #2343: re-verify once fixed (both split releases patched, hosted + vendored + re-run idempotency; the split-version stale + reinstall remedies and the base-site `pipenv requirements` remedy).
2930
2. Pipenv 11.10.4 (`path` form) hosted: needs a py3.6 interpreter (uv has none here; try a container image or a pyenv build).
30-
3. Patch mirror edge cases: a user's own source on the mirror's host outside the base in the patch-server path shape (must be a conflict, not rotated), a mirror base with a trailing slash or a path prefix, a `pipenv requirements` export beside a mirrored lock, netrc credentials with Pipenv 2023 / 2026.
31+
3. Patch mirror: netrc credentials (an auth-required mirror, `redirect_mirror_unverified`) with Pipenv 2023 / 2026; a `pipenv requirements` export beside a mirrored lock.
3132
4. #2272: re-verify for Pipfile.lock once fixed (list / remove / rollback / vex / vendored without the mirror setting should name the mirror host).
32-
5. Agent RECORD rewrite on a `.venv` made by `uv` (LF RECORD) beside Pipfile, and a patch that deletes a file (rollback re-adds the row).
33+
5. Agent: a patch that deletes or adds a file on a uv-made `.venv` (rollback restores the RECORD row).
3334
6. #1572 and #1608 are closed: re-verify on Pipenv 2026.12.1 (ignore rules / LFS, drift warnings).
34-
7. Hosted 2022.12.19 / 2023.12.1 release re-run on `7beca2f` (last pass `cfc870f`), and 2018.11.26 agent mode.
35+
7. Hosted 2022.12.19 / 2024.4.1 / 2025.0.4 re-run on `cd7c5c5`; vendored editable-path shape.
3536
8. #1050 GC on the #1122 pylock-wired shape; the #1142 named-category-with-packages-left variant; `report` command on a Pipenv project.
3637

3738
## Known non-bugs
@@ -44,6 +45,7 @@ Full list: `known-non-bugs/pipenv.md` (search it with `git grep`). The ones most
4445
- Hosted vex with a stale venv exits 1 "No applied patches…" until the remedy runs.
4546
- Hosted rollback is an upstream restore: pylock.toml comes back TOML-equivalent, not byte-exact (`{ name = … }` spacing, real URLs, sdist line).
4647
- A hosted pin URL with userinfo isn't owned even on the configured patch server (CLI_CONTRACT "Patch hosts": no userinfo).
48+
- From a subdirectory of the project the CLI does not walk up to the Pipfile (docs "CLI scope"); run in the project dir or pass `--cwd`.
4749
- Pipfile.lock `pipfile-spec` < 6 and vendored on Pipenv 7–11 are refused (documented).
4850
- Under a patch mirror, a pin on a custom `--patch-server-url` origin isn't moved (`redirect_mirror_pin_not_moved`); a patch.socket.dev pin is.
4951
- `uv pip install -r pylock.toml` of a Pipenv pylock installs nothing even before socket-patch runs (Pipenv/uv interplay).

0 commit comments

Comments
 (0)