-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix tests #3669
base: main
Are you sure you want to change the base?
Fix tests #3669
Conversation
# fedora-review url redirects to the fedora-review/ and wget2 with -A option | ||
# doesn't follow redirects in this case | ||
# upstream issue: TODO | ||
cmd.append(chroot.result_url + "fedora-review/") |
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 honestly have no idea how to make wget2 work here...
reproducer:
try to run:
wget2 -r -nH --no-parent --reject "index.html*" -e robots=off -P /tmp/tmp3 --cut-dirs 6 https://download.copr-dev.fedorainfracloud.org/results/@copr/TEST1741895613756854978FedoraReview2/fedora-41-x86_64/02921806-hello/fedora-review
with no accept list items and it correctly redirects and downloads the files... but now if you add something that is in that files that were downloaded e.g. review.txt
then it downloads nothing
[root@test-env tmp3]# wget -r -nH --no-parent --reject "index.html*" -e robots=off -P /tmp/tmp3 --cut-dirs 6 -A review.txt https://download.copr-dev.fedorainfracloud.org/results/@copr/TEST1741895613756854978FedoraReview2/fedora-41-x86_64/02921806-hello/fedora-review
HTTP ERROR response 404 [https://download.copr-dev.fedorainfracloud.org/robots.txt]
[0] Checking 'https://download.copr-dev.fedorainfracloud.org/results/@copr/TEST1741895613756854978FedoraReview2/fedora-41-x86_64/02921806-hello/fedora-review' ...
HTTP response 301 [https://download.copr-dev.fedorainfracloud.org/results/@copr/TEST1741895613756854978FedoraReview2/fedora-41-x86_64/02921806-hello/fedora-review]
/tmp/tmp3/fedora-rev 100% [=========================================================================================================================================================================================================================================>] 404 --.-KB/s
[Files: 0 Bytes: 158 [934 B/s] Redirects: 1 Todo: 0 Errors: 1 ]
[root@test-env tmp3]# ls
[root@test-env tmp3]#
any ideas how to make it work? I think I am using it right... in that case I'll create upstream issue for wget2
Pull Request validationFailed🔴 Review - Missing review from a member (2 required) Success🟢 CI - All checks have passed |
fixes beaker tests