Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix tests #3669

wants to merge 2 commits into from

Conversation

nikromen
Copy link
Member

@nikromen nikromen commented Mar 13, 2025

fixes beaker tests

# 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/")
Copy link
Member Author

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

@nikromen nikromen marked this pull request as ready for review March 13, 2025 22:42
Copy link

Pull Request validation

Failed

🔴 Review - Missing review from a member (2 required)

Success

🟢 CI - All checks have passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant