Skip to content

ci: target the matching tox environment - #313

Open
nuclearcat wants to merge 1 commit into
kernelci:mainfrom
nuclearcat:ci-target-matrix-tox-env
Open

ci: target the matching tox environment#313
nuclearcat wants to merge 1 commit into
kernelci:mainfrom
nuclearcat:ci-target-matrix-tox-env

Conversation

@nuclearcat

Copy link
Copy Markdown
Member

Each CI matrix job installs one Python version, but invoking tox without an environment selector makes it evaluate every configured environment. The unavailable interpreters are then reported alongside the environment that actually ran:

Example on PR #311: https://github.com/kernelci/kci-dev/actions/runs/33051625550/job/98448291347?pr=311

    py312: FAIL

    py313: skipped because could not find python interpreter with spec(s): py313
    py313: SKIP
    py314: skipped because could not find python interpreter with spec(s): py314
    py314: SKIP
    evaluation failed :(

Add an explicit tox environment to each matrix entry and pass it to tox with -e. This preserves coverage for Python 3.12, 3.13, and 3.14 while ensuring every job runs only against the interpreter installed for it.

Each CI matrix job installs one Python version, but invoking tox without an environment selector makes it evaluate every configured environment. The unavailable interpreters are then reported alongside the environment that actually ran:

    py312: FAIL

    py313: skipped because could not find python interpreter with spec(s): py313
    py313: SKIP
    py314: skipped because could not find python interpreter with spec(s): py314
    py314: SKIP
    evaluation failed :(

This output is visible in the Python 3.12 job from PR kernelci#311:
https://github.com/kernelci/kci-dev/actions/runs/33051625550/job/98448291347?pr=311

Add an explicit tox environment to each matrix entry and pass it to tox with -e. This preserves coverage for Python 3.12, 3.13, and 3.14 while ensuring every job runs only against the interpreter installed for it.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-31T07:20:55.308258Z 0f9ae90 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant