pulpcore-3.15-rpm-pipeline 330 failed

Pulpcore 3.15 RPM pipeline failed:

https://ci.theforeman.org/job/pulpcore-3.15-rpm-pipeline/330/

foreman-pipeline-pulpcore-3.15-centos8-stream-pulpcore (failed) (remote job)
foreman-pipeline-pulpcore-3.15-centos7-pulpcore (failed) (remote job)

I’m not sure what changed, but it looks like it can’t find yarl:

[2022-06-28T21:27:32.121Z] e[0;31m  stderr: |-e[0m
[2022-06-28T21:27:32.121Z] e[0;31m    Traceback (most recent call last):e[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_mastere[0m
[2022-06-28T21:27:32.121Z] e[0;31m        ws.require(__requires__)e[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in requiree[0m
[2022-06-28T21:27:32.121Z] e[0;31m        needed = self.resolve(parse_requirements(requirements))e[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolvee[0m
[2022-06-28T21:27:32.121Z] e[0;31m        raise VersionConflict(dist, req).with_context(dependent_req)e[0m
[2022-06-28T21:27:32.121Z] e[0;31m    pkg_resources.ContextualVersionConflict: (yarl 1.6.3 (/usr/lib64/python3.8/site-packages), Requirement.parse('yarl~=1.0.0'), {'pulpcore'})e[0m
[2022-06-28T21:27:32.121Z] e[0;31m  e[0m
[2022-06-28T21:27:32.121Z] e[0;31m    During handling of the above exception, another exception occurred:e[0m
[2022-06-28T21:27:32.121Z] e[0;31m  e[0m
[2022-06-28T21:27:32.121Z] e[0;31m    Traceback (most recent call last):e[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/bin/pulpcore-manager", line 6, in <module>e[0m
[2022-06-28T21:27:32.121Z] e[0;31m        from pkg_resources import load_entry_pointe[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3252, in <module>e[0m
[2022-06-28T21:27:32.121Z] e[0;31m        def _initialize_master_working_set():e[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3235, in _call_asidee[0m
[2022-06-28T21:27:32.121Z] e[0;31m        f(*args, **kwargs)e[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_sete[0m
[2022-06-28T21:27:32.121Z] e[0;31m        working_set = WorkingSet._build_master()e[0m
[2022-06-28T21:27:32.121Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 585, in _build_mastere[0m
[2022-06-28T21:27:32.121Z] e[0;31m        return cls._build_from_requirements(__requires__)e[0m
[2022-06-28T21:27:32.122Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirementse[0m
[2022-06-28T21:27:32.122Z] e[0;31m        dists = ws.resolve(reqs, Environment())e[0m
[2022-06-28T21:27:32.122Z] e[0;31m      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolvee[0m
[2022-06-28T21:27:32.122Z] e[0;31m        raise DistributionNotFound(req, requirers)e[0m
[2022-06-28T21:27:32.122Z] e[0;31m    pkg_resources.DistributionNotFound: The 'yarl~=1.0.0' distribution was not found and is required by pulpcoree[0m

I think this is because ~= 1.0.0 is translated to >= 1.0.0, == 1.0.* (see https://peps.python.org/pep-0440/#compatible-release) and we package 1.6.3. This is fixed in upstream Pulpcore 3.15.9:

https://github.com/pulp/pulpcore/commit/00a9a5badc8061c1c6558d6dde70a14ee9ffc0a8

There’s a packaging PR to update:
https://github.com/theforeman/pulpcore-packaging/pull/524

Yeah, according to the information that I got on #pulp-dev, the change in the conditional was done without intention of changing the requirement, they already reverted and opened PR aim to fix this.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.