Skip to content

fix(roadmap): the base replay of a step runs the checkout Python #6688

Closed

Description

@dan-petty

Problem

Since #6537 (#6517, 2026-11-20), the runner image installs no dev group into /app/.venv. The bootstrap of the Job installs the dev group into <checkout>/.venv, and checkout_environment puts that venv first on the PATH of the checks.

The base replay of a behavior group does not use that venv. replay_group_tests (src/devops_cli/roadmap/implement/implement_base_replay.py) calls replay_on_base in the Job process, and pytest_replay_argv (src/devops_cli/ci/fail_to_pass.py) starts sys.executable -m pytest. In the Job, sys.executable is /app/.venv/bin/python, which has no pytest. So each behavior group stops at its first exit check, and the Job discards the work.

Stop reports of 2026-11-21 with /app/.venv/bin/python: No module named pytest:

Item Time Failed check
#6603 09:51Z pytest on base: tests/roadmap/project_review/test_review_readers.py
#4147 14:18Z pytest on base: tests/security/test_secret_redaction.py
#6522 15:50Z pytest on base: tests/github/test_ci_job_time.py
#6627 19:29Z pytest on base: tests/roadmap/refine/test_roadmap_refine_sanitize.py, tests/roadmap/test_roadmap_body_hash.py

The #6627 run used 4,475,162 input tokens before it stopped.

openspec/specs/roadmap-implement-runner/spec.md already says that the exit checks of a step get the checkout venv first on PATH. The replay ignores PATH, because it names the interpreter.

Expected

The base replay of an implement step runs the Python of <checkout>/.venv. devops ci fail-to-pass keeps sys.executable, because its process runs in the checkout venv.

This is a fix of a broken existing check, not a new gate, so the freeze of #6519 does not apply.

Acceptance criteria

  • A test shows that replay_group_tests starts pytest with <checkout>/.venv/bin/python.
  • The spec of the runner says which interpreter the base replay uses.
  • After the release, the next implement Job with a behavior group reports a base replay result and not No module named pytest.

Dependencies

None. Related: #6517, #6519, #6627.

Source

Source: #6627

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    on Nov 21, 2026
  2. added
    effort/low
    on Nov 21, 2026
  3. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P0-Critical. All implement Jobs with a behavior group fail with No module named pytest.
    • Related: build(runner): bootstrap the dev env with uv in each Job #6517, which asks for a different change. #6517 moved the dev venv to the checkout; this candidate fixes the replay that still points at the old /app/.venv interpreter.
  4. added
    value/high
    priority/p0-critical
    on Nov 21, 2026
  5. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 21, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 21, 2026
  7. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 23:18 UTC

  8. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor

    The acceptance criterion "the next implement Job reports a base replay result" passes in release 0.190.0.

    The stops of #4147, #6522, #6603, #6627 and #6633 (the last Job of #6633 ran the 0.189.0 image) are cleared with implement: retry.

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

    effort/lowpriority/p0-criticalscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions