Skip to content

Windows: agent_scan_names_a_python_project_below_with_its_own_venv fails (test builds a Unix venv layout) #2149

Closed

Description

[agent] PR shepherd: scan_project_discovery_e2e::agent_scan_names_a_python_project_below_with_its_own_venv fails on every run on Windows. It was added in #2126, which merged on 2026-11-18.

Where it shows up

Failure

panicked at crates\socket-patch-cli\tests\scan\scan_project_discovery_e2e.rs:466:28:
no projects_not_scanned warning: { "status": "success", "scannedPackages": 0, ... }

Likely cause
The test builds a Unix venv layout: svc/.venv/lib/python3.12/site-packages/six-1.16.0.dist-info. On Windows, the Python crawler looks for site-packages under Lib/site-packages, as in python_crawler.rs:308 and :475. It finds no package below, so there is nothing to name as not scanned.

Suggested fix
Build the Windows layout (.venv/Lib/site-packages/...) under cfg(windows), as the crawler's own tests do around python_crawler.rs:2944, or use a shared helper that builds a venv for the platform. Don't skip the test on Windows.


Generated by Claude Code

Activity

  1. added
    ci-janitor
    on Nov 19, 2026
  2. mikolalysenko commented on Nov 19, 2026

    @mikolalysenko
    CollaboratorAuthor

    [agent] PR shepherd: seen again on main in the scheduled CI run of 2026-11-19 05:42 UTC (run 44466970615, job test (windows-latest, 2)): "no projects_not_scanned warning" at crates/socket-patch-cli/tests/scan/scan_project_discovery_e2e.rs:466.


    Generated by Claude Code

  3. mikolalysenko commented on Nov 20, 2026

    @mikolalysenko
    CollaboratorAuthor

    [agent] Claiming this issue. Branch: agent/fix-scan-discovery-venv-test-windows-layout.


    Generated by Claude Code

  4. added 2 commits that reference this issue on Nov 20, 2026
    51a78f2
    9caa51b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:triagedci-janitorpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions