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

Fedora review have issues in rawhide chroots #3147

Closed
xsuchy opened this issue Feb 18, 2024 · 5 comments
Closed

Fedora review have issues in rawhide chroots #3147

xsuchy opened this issue Feb 18, 2024 · 5 comments
Assignees

Comments

@xsuchy
Copy link
Member

xsuchy commented Feb 18, 2024

Fedora review have issues in rawhide chroots. This seems to be due dnf3 vs. dnf5

Example: https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2264719-blesh/fedora-rawhide-x86_64/07030872-blesh/fedora-review/fedora-review.log.gz

This may need a fix on fedora-review side. Filing it here so I do not forget till Monday.

@FrostyX
Copy link
Member

FrostyX commented Feb 18, 2024

This will probably be annoying for many people because this likely causes Fedora Review Service to fail for every ticket

@FrostyX FrostyX self-assigned this Feb 19, 2024
@FrostyX
Copy link
Member

FrostyX commented Feb 20, 2024

@FrostyX
Copy link
Member

FrostyX commented Feb 21, 2024

I think I understand what is going on but I didn't have time to fix this yet.

In the logs, we can se

INFO: Package manager dnf5 detected and used (direct choice)

and

INFO: Package manager dnf5 detected and used (fallback)

And no errors, so DNF5 is there and it works fine.

The failure comes from this command

'['mock', '-r', '/var/lib/copr-rpmbuild/results/configs/child.cfg', '--no-cleanup-after', '--no-clean', '-qn', '--enable-network', 'shell', '--', 'dnf-3 repoquery -C -l filesystem']'

and IMHO not because dnf-3 command wouldn'tbe available but because of the -C (cache only) parameter

When reproducing this manually, I get

[root@builder /]# mock -r fedora-rawhide-x86_64 --no-cleanup-after --no-clean -qn --enable-network shell -- dnf-3 repoquery -C -l filesystem
Error: Cache-only enabled but no cache for 'fedora'

Well duh, dnf-3 has no cache, probably only dnf-5 has. Without the -C parameters it is slower but it works fine.

I think the solution might be checking if the cache exists and only in such case adding -C.

@FrostyX
Copy link
Member

FrostyX commented Feb 23, 2024

Fedora-review upstream issue: https://pagure.io/FedoraReview/issue/511

@FrostyX
Copy link
Member

FrostyX commented Mar 4, 2024

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

No branches or pull requests

3 participants