Skip to content

Automatic CI profile detection may not work under tox or other test orchestrators #4481

@Liam-DeVoe

Description

@Liam-DeVoe

In the passenv docs, CI is not listed as a passthrough envvar, which makes me believe that we are not using the CI profile by default under tox, and potentially under other similar tools. (related: tox-dev/tox#3442)

I'd prefer not to resolve this solely by documenting that users to set passenv = ["CI"] (though we could also do this), since the CI profile is meant to provide good defaults to everyone, including those that don't read the docs from top to bottom.

Is there a more robust way to detect CI runners? Perhaps a file only available under github, gitlab, etc?

(Prompted by https://github.com/Quansight-Labs/pytest-run-parallel/actions/runs/16376546862/job/46366236714?pr=96#step:7:151, which raised DeadlineExceeded in CI under tox, which is not something that should happen if the CI profile was being loaded.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething is clearly wrong here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions