Page MenuHomePhabricator

mwaddlink CI fails with "No module named pip"
Closed, ResolvedPublic

Description

seen in https://integration.wikimedia.org/ci/job/research-mwaddlink-pipeline-test/751/console

 ---> 7d3af4b35042
Step 6/26 : RUN python3 "-m" "pip" "install" "-U" "setuptools!=60.9.0" "wheel" "tox" "pip"
 ---> Running in a21fff2b636b
/usr/bin/python3: No module named pip
Removing intermediate container a21fff2b636b
The command '/bin/sh -c python3 "-m" "pip" "install" "-U" "setuptools!=60.9.0" "wheel" "tox" "pip"' returned a non-zero code: 1
[Pipeline] sh

Event Timeline

Change 787691 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[research/mwaddlink@main] [WIP] CI: Fix "No module named pip" error

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

I've tried a bunch of things (as you can see in the sorry evolution of https://gerrit.wikimedia.org/r/787691), but I can't seem to figure out the magic incantation to get coverage reports generated in the test pipeline to the container in the coverage pipeline. Any help would be much appreciated, Release-Engineering-Team!

The lack of pip is T304860

You would want the python-pip package to be installed in the image. Example: https://gerrit.wikimedia.org/r/c/mediawiki/services/wikispeech/mishkal/+/774770/2/.pipeline/blubber.yaml

Thanks @hashar. I might return to that solution, but what I'd like to do is remove the python dependency from the codehealth step (since it isn't needed; we just need the coverage files generated in the test variant; we also then don't have to run pytest twice). That should be possible now with T277777: Support copying files from run containers into the workspace for use in other stages resolved, but I can't figure out how.

Change 787763 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[research/mwaddlink@main] blubber: Add python-pip to packages

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

Change 787763 merged by jenkins-bot:

[research/mwaddlink@main] blubber: Add python3-pip to packages

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

The lack of pip is T304860

You would want the python-pip package to be installed in the image. Example: https://gerrit.wikimedia.org/r/c/mediawiki/services/wikispeech/mishkal/+/774770/2/.pipeline/blubber.yaml

Thanks @hashar. I might return to that solution, but what I'd like to do is remove the python dependency from the codehealth step (since it isn't needed; we just need the coverage files generated in the test variant; we also then don't have to run pytest twice). That should be possible now with T277777: Support copying files from run containers into the workspace for use in other stages resolved, but I can't figure out how.

We ended up adding the package. I'd still love to figure out how to copy the test artifacts from one stage to the next. But as the immediate breakage is fixed, I'm taking this task off our current sprint board.

Since the build passes now I guess this task can be marked as resolved?

Since the build passes now I guess this task can be marked as resolved?

I would still like to solve the problem of copying test artifacts from one stage to another, but I suppose I can make a new task for that.