Page MenuHomePhabricator
Closed, ResolvedPublic


From T274347#6835467 , @EBernhardson wrote:

These images don't appear to work. Ci is failing. A simple reproduction seems to be:

docker run -it --rm --entrypoint /usr/bin/env tox
Traceback (most recent call last):
  File "/usr/local/bin/tox", line 7, in <module>
    from tox import cmdline
  File "/usr/local/lib/python3.5/dist-packages/tox/", line 9, in <module>
    import pluggy
  File "/usr/local/lib/python3.5/dist-packages/pluggy/", line 16, in <module>
    from .manager import PluginManager, PluginValidationError
  File "/usr/local/lib/python3.5/dist-packages/pluggy/", line 11, in <module>
    import importlib_metadata
  File "/usr/local/lib/python3.5/dist-packages/importlib_metadata/", line 88
    dist: Optional['Distribution'] = None
SyntaxError: invalid syntax

Event Timeline

hashar created this task.Wed, Feb 17, 5:15 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptWed, Feb 17, 5:15 PM


docker run --rm -it --entrypoint pip3 docker-registry.discovery.wmnet/releng/tox:0.4.4-s3 freeze --all


docker run --rm -it --entrypoint pip3 docker-registry.discovery.wmnet/releng/tox:0.5.0 freeze --all

--- tox:0.4.4-s3	2021-02-17 18:19:32.878462822 +0100
+++ tox:0.5.0	2021-02-17 18:19:44.186585333 +0100
@@ -1,16 +1,17 @@

I guess something got broken with metadata.

Change 664680 had a related patch set uploaded (by Hashar; owner: Ebernhardson):
[integration/config@master] dockerfiles: use pip from distribution

Change 664680 merged by jenkins-bot:
[integration/config@master] dockerfiles: use pip from distribution

Successfully published image docker-registry.discovery.wmnet/releng/tox-homer:0.2.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-pywikibot:0.6.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-acme-chief:0.6.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/commit-message-validator:0.6.1-s5
Successfully published image docker-registry.discovery.wmnet/releng/tox-cergen:0.5.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-labs-striker:0.6.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox:0.6.0
Successfully published image docker-registry.discovery.wmnet/releng/zuul-cloner:0.2.1-s4
Successfully published image docker-registry.discovery.wmnet/releng/tox-buster:0.3.0
Successfully published image docker-registry.discovery.wmnet/releng/tox-conftool:0.5.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-pyspark:0.7.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-censorshipmonitoring:0.2.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-poolcounter:0.5.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-eventlogging:0.5.0-s1
Successfully published image docker-registry.discovery.wmnet/releng/tox-mysqld:0.6.0-s1

I will get the jobs updated after dinner

Change 664897 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/config@master] jjb: update tox job to use pip from Debian

Mentioned in SAL (#wikimedia-releng) [2021-02-17T20:05:32Z] <hashar> Updating all Jenkins jobs for # T275049

Looks better, well done @EBernhardson

$ docker run -it --rm --entrypoint /usr/bin/env tox
Status: Downloaded newer image for
ERROR: tox config file (either pyproject.toml, tox.ini, setup.cfg) not found

I have updated all the Jenkins jobs to use the new images. So should be fixed now.

hashar closed this task as Resolved.Wed, Feb 17, 8:20 PM

Change 664897 merged by jenkins-bot:
[integration/config@master] jjb: update tox job to use pip from Debian