Page MenuHomePhabricator

sdist on wmfreleng/tox Docker causes: WARNING:could not copy distfile to /nonexistent/.tox/distshare
Closed, ResolvedPublic

Description

When running the example of wmfreleng/tox for labs/tools/crosswatch (introduced by https://gerrit.wikimedia.org/r/#/c/387728/ )

GLOB sdist-make: /src/setup.py
  /src$ /usr/bin/python /src/setup.py sdist --formats=zip --dist-dir /src/.tox/dist >/src/.tox/log/tox-0.log
WARNING:could not copy distfile to /nonexistent/.tox/distshare

In tox the default is:

distshare=path    # (DEPRECATED) defaults to {homedir}/.tox/distshare

But when tox detects Jenkins (via JENKINS_URL) it defaults to {toxworkdir}/distshare

The tox-docker jobs need to pass JENKINS_URL to the container.

Event Timeline

The job uses the docker-zuul-env macro which does inject JENKINS_URL. We solved that in 7ef356ede11b317443eaff94268b15bf1ccac2f3 for T177684

Change 387822 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] docker: pass JENKINS_URL in wmfreleng/tox example

https://gerrit.wikimedia.org/r/387822

hashar claimed this task.

Change 387822 merged by jenkins-bot:
[integration/config@master] docker: pass JENKINS_URL in wmfreleng/tox example

https://gerrit.wikimedia.org/r/387822