Package-update-job fails because of missing packages
field for some sources
#285
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
sig/stack-guidance
Categorizes an issue or PR as relevant to SIG Stack Guidance.
Describe the bug
When checking package availability during package-update-job, some sources used in
_check_package_availability
are missing apackages
field, causing an unhandled KeyError:Concerned sources are from
https://pulp.operate-first.cloud/pypi/
index.My first guess would be that the method to get packages for Pulp-based sources fails because of the way it parses the index page: see https://github.com/thoth-station/python/blob/299d6ece8a8392c7fe2d3ef5015684bf355bbfa1/thoth/python/aiosource.py#L251
To Reproduce
See Sentry report for Oct. 19, 2022, 12:00:24 p.m. UTC in
ocp4-stage
.Expected behavior
Packages can be gathered for Pulp sources.
The text was updated successfully, but these errors were encountered: