copr-be: conditionally redirect backend URLs to Pulp #2437
No reviewers
Labels
No labels
freeze-break-request
post-freeze
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Infrastructure/ansible#2437
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pulp-redirect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See https://github.com/fedora-copr/copr/issues/3504
Merge Failed.
This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging pagure.io/fedora-infra/ansible for 2437,236dd5c8588e7639849595226e82c7413e0688c2
@praiskup PTAL
rebased onto
a0720a8029
Merge Failed.
This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging pagure.io/fedora-infra/ansible for 2437,1715dce35dc0deeb1b24392943f7b792a88b9f4c
rebased onto
9495fde3f4
rebased onto
9495fde3f4
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/22dbb9540d094a13844f188a46faa653
Hmpf, is this redirecting even if the file doesn't physically exist?
Just two nits:
.j2
, see5bdfe4b1e5
I'd wish to have this hardcoded somewhere in vars, and de-hardcode PULP_CONTENT_URL too.
Uh, this might only be truth for repeated reads of the same blobs (which we don't, we read just once), right? Seems to me that initially, sqlite needs to read the blobs just the way we do anyway...
Should we strop
:.*
from dirnames, too? To make the redirect work, e.g., forhttps://copr-be.cloud.fedoraproject.org/results/@copr/copr-pull-requests:pr:3527/
?Can you please test that both of these work:
Of course, Pagure :-( https://pagure.io/pagure/issue/4468 , replace the whitespace with colon - "pr" - colon.
Super pedantic: the
txt
variable name is annoying, perhaps filename_redirect_projects?I think so, yes.
Honestly, I don't know. We can do some experiment in python to find out.
There is currently some problem with building into CoprDirs so I cannot properly test the redirect but I think it doesn't work
The "@" in the URL doesn't cause any issues
I was surprised by this, because I don't handle this in the script. Turns out, lighthttpd does that for us, and gives us
lighty.env["uri.path"]
with%40
already converted to@
.rebased onto
ce4a415eb0
I fixed the CoprDirs redirects
Thank you for the review @praiskup. All feedback addressed, PTAL.
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/3e8794b97c9143babe945670d92f97c3
But I think we have to do the redirect only for
.rpm
files which are not.src.rpm
.I don't think we have to, why? From lighttpd perspective, src.rpm is just RPM as any other..?
LGTM
LGTM
rebased onto
fb06fb5d5c
rebased onto
fb06fb5d5c
Pull-Request has been merged by praiskup
Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/fd14441007b94f37aacd64cdc42a06d2