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

The Custom method should have fedora-stable-x86_64 option #3409

Open
praiskup opened this issue Sep 10, 2024 · 4 comments
Open

The Custom method should have fedora-stable-x86_64 option #3409

praiskup opened this issue Sep 10, 2024 · 4 comments
Labels
RFE Enhancement, feature requests

Comments

@praiskup
Copy link
Member

The fedora-latest-x86_64 isn't optimal, the failure probability is relatively high, e.g., here:

Start: installing minimal buildroot with dnf5
Updating and loading repositories:
 updates                                100% |   1.5 KiB/s |   7.5 KiB |  00m05s
 fedora                                 100% |   5.4 MiB/s |  32.7 MiB |  00m06s
 Additional repo copr_packit_packit_sta 100% | 147.0   B/s |   1.3 KiB |  00m09s
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/pack
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/pack
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/pack
>>> Status code: 404 for https://download.copr.fedorainfracloud.org/results/pack
>>> Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.xFailed to download metadata (baseurl: "https://download.copr.fedorainfracloud.org/results/packit/packit-stable/fedora-41-s390x/") for repository "copr_packit_packit_stable"
 Librepo error: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
WARNING: DNF5 command failed, retrying, attempt #2, sleeping 10s
...
@praiskup
Copy link
Member Author

Wait, are we using s390x for source RPM builds? :-/ s390x is the most scarce resource.

@praiskup praiskup added the RFE Enhancement, feature requests label Sep 11, 2024
@praiskup
Copy link
Member Author

Nah, this is probably breaking all custom builds (including packit):
https://copr.fedorainfracloud.org/coprs/g/mock/mock-pull-requests/build/8023082/

This is the issue for the broken mirrormanager: https://pagure.io/fedora-infrastructure/issue/12183

It is acceptable to have problems like that in Fedora in the early stages of the branched version, but it is not acceptable for Copr (we should use the stable default).

@praiskup
Copy link
Member Author

if 'fedora-latest' in source_dict['chroot']:
arch = source_dict['chroot'].rsplit('-', 2)[2]
source_dict['chroot'] = \
MockChroot.latest_fedora_branched_chroot(arch=arch).name
fedora-latest solution

@FrostyX
Copy link
Member

FrostyX commented Sep 18, 2024

Just FTR we want to use fedora-distro-aliases for this and we discussed caching. Fedora-distro-aliases currently implements caching to have a fallback when Bodhi is down but the cache doesn't provide any performance benefits. Even if a cache exists, we try to get fresh results from Bodhi.

I don't think we should change this behavior and always use cache if cache is available but instead try something like this on Copr side:

from coprs import cache
@cache.memoize(timeout=666)  # Maybe an hour? Maybe a day?

but we should first do some testing if @cache.memoize is shared for every thread, if it survives systemctl restart httpd, and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFE Enhancement, feature requests
Projects
Status: In 3 months
Development

No branches or pull requests

2 participants