Skip to content

Pip fixes - #239

Open
pwalczysko wants to merge 10 commits into
ome:masterfrom
pwalczysko:pip-fixes
Open

pwalczysko wants to merge 10 commits into
ome:masterfrom
pwalczysko:pip-fixes

Conversation

@pwalczysko

Copy link
Copy Markdown
Member

First, lets make sure that the piip iand cerifi are updated when the images build.

Note that the correspondence of thos three subfolders to teh docker compose service is:

server -> omero
slave -> testinggration
web -> web

I will now rebuild the three images with cmd

docker compose build --no-cache omero testintegration web

on idr3-slot2 -> if successful, I will propagate the change to the prod mergie-ci.

cc @khaledk2 @jburel @dominikl

@pwalczysko

Copy link
Copy Markdown
Member Author

with the last commit managed to build the 3 images which are using pip during build phase

[root@idr3-slot2 devspace]# docker compose build --no-cache omero testintegration web
....
=== Built images ===
REPOSITORY                  TAG                          IMAGE ID       SIZE      CREATED
devspace-testintegration    latest                       55d385c1abc8   4.05GB    55 seconds ago
devspace-omero              latest                       64434b0e40a3   3.73GB    2 minutes ago
devspace-web                latest                       653d8976cdaf   1.97GB    43 minutes ago
devspace-nginx              latest                       a1fbd19276b5   1.71GB    2 weeks ago
devspace-jenkins            latest                       aaae3fc29fdb   690MB     2 weeks ago
devspace-docker             latest                       ce0b7ee275c4   2.11GB    2 months ago
openmicroscopy/devagent     0.8.2                        13965bff5ca2   1.56GB    10 months ago

pip install mox3 pytest pytest-django pytest-xdist pytest-mock
pip install tables
pip install jinja2
pip install PyYAML

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, why all these additional pip installs?

@pwalczysko pwalczysko Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because they were added into the config of the job (not by me) on the idr3-slot2, but they are missing in this repo

@dominikl

Copy link
Copy Markdown
Member

After all this has ran once, we have to remove the python3 -m pip install "pip @ https://fi.. again everywhere, otherwise we'll endlessly revert to this specific pip version, right?

@pwalczysko

Copy link
Copy Markdown
Member Author

After all this has ran once, we have to remove the python3 -m pip install "pip @ https://fi.. again everywhere, otherwise we'll endlessly revert to this specific pip version, right?

No, imho we cannot remove it. The venvs which are being adjusted here are not stable. One restart of the docker-compose could revert to the previous versions of pip and certifi... maybe we could go for a minimal version instead... ? cc @khaledk2

@pwalczysko

Copy link
Copy Markdown
Member Author

After all this has ran once, we have to remove the python3 -m pip install "pip @ https://fi.. again everywhere, otherwise we'll endlessly revert to this specific pip version, right?

I have tested a replacement of this kind (the commented out lines are replaced by the last one) in BF-push job also for Python version, and the eMudhra rejection, and it passes.

#python -m pip install "pip @ https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl#sha256=fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70"
#python3.11 -m pip install --upgrade pip certifi
#python -m pip install --upgrade certifi
python3.11 -m pip install --upgrade pip certifi
....
=== Python TLS environment ===
+ python --version
Python 3.11.18
+ python -m pip --version
pip 26.3 from /home/omero/workspace/BIOFORMATS-push/venv/lib/python3.11/site-packages/pip (python 3.11)
+ python -c 'import certifi; print("certifi:", certifi.__version__); print("CA bundle:", certifi.where())'
certifi: 2026.10.23
...
=== eMudhra TLS rejection tests ===
...
PASS: dv-g3b-emudhra.we-have-a-problem.com rejected TLS (SSLError)
PASS: dv-g3b-aaa-emudhra.we-have-a-problem.com rejected TLS (SSLError)

@pwalczysko

Copy link
Copy Markdown
Member Author

@dominikl I will proceed with step-by-step replacement like #239 (comment) on Monday, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants