-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not use unstable pook reference for API #4536
Conversation
It looks like tests are failing, so I'll put this in draft mode in the meantime. |
73259f3
to
9172c1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to block this PR but I think now git
is no longer necessary in the API Dockerfile
. Afaik it was only present so that we could fetch pook
from the GitHub repo.
Oh, that's a good point, @dhruvkb, thanks for pointing it out. I'll try removing it and if it works without issue I'll go ahead and include that here, otherwise I'll open an issue to investigate further. |
Fixes
h2non/pook#132 will introduce breaking changes to pook. There isn't a version released with the breaking changes yet, but if I merged the PR, the Openverse API tests would start failing due to it being affected by the breaking changes that will come in pook v2. The API uses
master
instead of a stable version reference, so anything that changes onmaster
could break the API if a newpdm lock
updates the git revision used in the lock file.Description
Change
pook
in the API pyproject.toml to use a real version range.The catalog and ingestion servers also use pook but already use a specific version or range.
Testing Instructions
CI should pass. This shouldn't have any effect on the actual test runs. Everything the API relied on (why it started using
master
) already exists on the latest version of pook (1.4.3)Checklist
Update index.md
).main
) or a parent feature branch../ov just catalog/generate-docs
for catalogPRs) or the media properties generator (
./ov just catalog/generate-docs media-props
for the catalog or
./ov just api/generate-docs
for the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin