Skip to content

Repair isolated local tox gate environment without masking the failed run #1251

Closed

Description

@realmarcin

Local tox dependency environment selected incorrectly under inherited Conda

PR #1239 exact head 03dd4bc918566ceffd43692ef1ed865419a441aa passed direct
full pytest (4,952 passed, 15 skipped) and all three CI jobs. The literal local
default tox run failed its py environment during collection (195 errors,
missing project dependencies), after five preceding tox environments passed.
This is not a successful complete local gate. The worktree is unchanged.

Original evidence: data/issue1224-quarantine-20260929.xjuS9H/issue1236-review/repository-gates-bzgy3l1i/.
Result SHA-256 899964aeb5f4c578fb935038ec33ad0c88568a096adb5d7d08821520f4ff221d;
tox log SHA-256 1f1ffeec9151670845207871a497ebb283818c6be1811277a0177c2b94d52360.

The empty .tox/py has no project dependencies or pytest. Under inherited
CONDA_DEFAULT_ENV=base, Poetry does not honor the intended tox virtualenv;
the actual command found the base pytest 7.4.3, not the approved environment's
pytest. Independent read-only probes confirm that clearing CONDA_DEFAULT_ENV
and CONDA_PREFIX makes explicit VIRTUAL_ENV=.tox/py select that exact
environment. Verify its resolved path before any installation to avoid changing
the shared approved Poetry environment.

Bounded remediation: install exact locked dependencies without the root package
into this isolated tox environment, then rerun unmodified default tox, lock and
merge-config gates at the same clean commit with Conda markers cleared. Do not
skip tox environments, override commands, hide the original failure, alter
dependency pins or restamp the earlier full-pytest result. A separate receipt
must bind both the original pytest evidence and the fresh remaining gates.
No production transforms or merge are involved. A pass remains pending.

Activity

  1. realmarcin commented on Sep 29, 2026

    @realmarcin
    CollaboratorAuthor

    All required local gates now pass at exact PR head
    03dd4bc918566ceffd43692ef1ed865419a441aa:

    • poetry run pytest: 4,952 passed, 15 skipped.
    • poetry run tox: all six environments passed; its full pytest again reports
      4,952 passed, 15 skipped.
    • poetry check --lock: passed.
    • python scripts/generate_merge_configs.py --check: passed.

    The original full-pytest receipt is preserved at
    repository-gates-bzgy3l1i/results.json, SHA-256
    899964aeb5f4c578fb935038ec33ad0c88568a096adb5d7d08821520f4ff221d.
    That attempt's later tox collection failure is not relabeled as a success.
    #1251 was diagnosed as missing dependencies in the local tox environment plus
    inherited Conda selection. After an independently reviewed isolated locked
    dependency setup, the remaining default tox/lock/config commands passed at the
    unchanged clean source head. No tests were selected away or disabled.

    Terminal retry receipt: remaining-gates-tiiaqg7v/results.json, SHA-256
    f62091753146d394885f70fd8d68636ffc1c7428320485f6bfd27bb579ca3777.
    Full tox log SHA-256:
    457a6a753ac7ad155ee6e9bbadb55f8f4f3302fba5ec07f3094d2ee0a57a3b43.
    The pre-existing approved .venv link is untracked; tracked files are unchanged.

    Independent source/mapping review and actual isolated MediaDive replay passed
    for the byte-identical runtime. The subsequent #1240/#1244 changes are separately
    reviewed test-only repairs. Exact-head QC run 36561435972 passed on Python
    3.10/3.11/3.12. These satisfy the user's condition for an admin approval bypass.

    This is bounded PR acceptance, not the final combined materials correction,
    all-15 production rebuild, merged graph acceptance, publication or release.
    Evidence root: data/issue1224-quarantine-20260929.xjuS9H/issue1236-review/.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions