GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Windows PyPI no-lockfile hosted scan test by mikolalysenko · Pull Request #1994 · SocketDev/socket-patch

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Problem

test (windows-latest, 1) is red on main. A Windows-only dispatch on main at 7a62fbd (run 41502835096) fails one test; the macOS dispatch (run 41502839104) is green:

---- hosted_scan_without_a_python_lock_warns_no_lockfile stdout ----
panicked at crates\socket-patch-cli\tests\mode_migration_pypi.rs:4463:9:
requirements-dev.txt: { "command": "scan", "status": "success", "events": [], "summary": { "discovered": 0, ...

The test arrived with #1885 at 16:08 UTC today. Windows legs run only nightly, so without this fix tonight's nightly will be red on Windows again, after 8 red nightlies in a row whose other failures were fixed today (#1852, #1894, #1905).

Root cause

venv_installed_from_patch_a writes six into lib/python3.11/site-packages. On Windows the Python crawler looks for Lib\site-packages (find_site_packages_under in python_crawler.rs), so the scan finds no installed package and the redirect_unconfirmed row the test expects never appears. Deterministic, not a flake.

Fix

Write the fixture into Lib/site-packages on Windows, as run_raw and the workspace fixture in the same file already do. Test-only change; no assertion changes. The other three tests using this helper now see the installed package on Windows too, which is what they already see on Linux and macOS.

Proof

  • Linux: cargo test -p socket-patch-cli --test mode_migration_pypi: 79/79 passed. rustfmt --check on the touched file is clean. (Local cargo clippy --test mode_migration_pypi -D warnings reports 8 pre-existing lints in untouched lines of prebuilt_common/mod.rs and line 2420; none are in this diff.)
  • Windows: Windows-only dispatch on this branch: run 41507034678 is green, including test (windows-latest, 1), which fails on main.
  • PR CI is green on e8cbeaa (ci-ok, clippy); Cursor Bugbot reported no findings.

Where tests run

No test is removed or moved.

https://claude.ai/code/session_011f9aeQitp67Dj9pTSDoSHq


Generated by Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@claude
Use the Windows venv layout in the PyPI fixture
e8cbeaa
hosted_scan_without_a_python_lock_warns_no_lockfile (#1885) fails on
the Windows test leg: venv_installed_from_patch_a writes six into
lib/python3.11/site-packages, but the Python crawler looks in
Lib\site-packages on Windows, so the scan finds nothing and the
expected redirect_unconfirmed row never appears.

Write the fixture into Lib/site-packages on Windows, the same way
run_raw and the workspace fixture in this file already do.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_011f9aeQitp67Dj9pTSDoSHq
@mikolalysenko Mikola Lysenko (mikolalysenko) added the ci-janitor Opened by the CI janitor routine (flakes, redundant tests, CI perf) label Nov 2, 2026
@mikolalysenko

Mikola Lysenko (mikolalysenko) commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

bugbot run


Generated by Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mikolalysenko Mikola Lysenko (mikolalysenko) mentioned this pull request Nov 2, 2026
CI perf (coverage tradeoff): Windows-only path bugs reach main because test (windows-latest, *) runs only nightly #1720
Open
@mikolalysenko Mikola Lysenko (mikolalysenko) added the Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review label Nov 2, 2026
@mikolalysenko

Mikola Lysenko (mikolalysenko) commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

Ready for review (burn-down agent).

  • Head: e8cbeaa
  • CI: all 98 check runs on this head are success or skipped (ci-ok, ci-ok (windows only), clippy, Windows/Ubuntu e2e and test legs green). No main-wide failures.
  • Bugbot: reviewed e8cbeaa, no issues found.
  • Reviewer focus: test-only change in crates/socket-patch-cli/tests/mode_migration_pypi.rs; the fixture now writes Lib/site-packages on Windows, matching the crawler. It fixes the red test (windows-latest, 1) on main.

Generated by Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mikolalysenko
Mikola Lysenko (mikolalysenko) enabled auto-merge November 2, 2026 20:48
@mikolalysenko

Mikola Lysenko (mikolalysenko) commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

Final review brief

What it does: Fixes the test fixture venv_installed_from_patch_a so it writes the venv's packages into Lib/site-packages on Windows instead of lib/python3.11/site-packages. The Python crawler looks for Lib\site-packages on Windows, so the test hosted_scan_without_a_python_lock_warns_no_lockfile (added in #1885) fails there every time and the nightly Windows run stays red. Only test code changes.

Risk: low. It is a 6-line test-only change, and it uses the same cfg!(windows) layout switch the file already uses in two places.

Look here:

  • mode_migration_pypi.rs:914-920:`` the change
  • mode_migration_pypi.rs:143-147 and :4124-4128:```` the same switch, already in use
  • python_crawler.rs:480:````` the crawler's Windows Lib/site-packages path

Verified:

  • Read the full diff. It is one file, CHANGELOG.md is untouched, and there is no debug code.
  • On this head, CI has 55 checks passing, 43 skipped and none failing, including ci-ok and clippy. The Windows-only dispatch run 41507034678 is green; that is the leg that fails on main.
  • Bugbot found nothing on e8cbeaa, and there are no review threads.
  • The other three callers of the helper now get the same installed-package layout on Windows that they already get on Linux and macOS. Their assertions are unchanged.

Changes I made: none.

Open questions: none.

Auto-merge is armed, so approving this PR sends it straight to the merge queue.


Generated by Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Tanmay182003
Tanmay Singla (Tanmay182003) approved these changes Nov 3, 2026
View reviewed changes
@mikolalysenko
Mikola Lysenko (mikolalysenko) added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 531f591 Nov 3, 2026
98 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the ci-janitor/pypi-venv-fixture-windows branch November 3, 2026 15:36
This was referenced Nov 3, 2026
Nightly gem e2e red on bundler 1.17/2.1: CRLF source-block rollback unattributable #1997
Closed
Run tests/common selftests once, not in 118 binaries #2000
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Tanmay182003 Tanmay Singla (Tanmay182003) Tanmay182003 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

ci-janitor Opened by the CI janitor routine (flakes, redundant tests, CI perf) Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mikolalysenko @Tanmay182003 @claude
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.