Skip to content

tox fails when run in parallel due to distdir #412

Closed
@ssbarnea

Description

@ssbarnea

I tried to run tox in parallel from Jenkins, with different jobs for each environment but it seems that it fails at the setup.py sdist part because it uses the same temp directory.

Initially I imagined that this was caused by pbr usage but now I suspect that's only a tox bug because it does not use a random --dist-dir folder and multiple executions overlap, ending up breaking each other.

Have a look at https://gist.github.com/ssbarnea/7829537a60592ba67567a67b946df1ea with a full log here

Before you would propose me to use detox instead please note that this CI this is not an option. I want to be able to use real pipelines in Jenkins so they would appear correctly and allow people to check the (eventually live) logs of each execution thread. If I would use tox it would not be able to do either of these.

If we would be able to use expansions when conifguring distdir or toxworkdir we would be able to workaround this concurrency limitation but as far as I know expansions are not supported or they are not documented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions