Skip to content

Commit

Permalink
Manually specify DNF copr repository
Browse files Browse the repository at this point in the history
This should fix an issue when the tests are being executed on RHEL where
it seems that DNF by default looks for epel and not rhel chroots:

```
       Command 'dnf copr -y enable -y @fedora-llvm-team/llvm-snapshots-big-merge-20240523' returned 1.

        stderr (17 lines)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Enabling a Copr repository. Please note that this repository is not part
        of the main distribution, and quality may vary.

        The Fedora Project does not exercise any power over the contents of
        this repository beyond the rules outlined in the Copr FAQ at
        <https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
        and packages are not held to any quality or security level.

        Please do not file bug reports about these packages in Fedora
        Bugzilla. In case of problems, contact the owner of this repository.
        Error: It wasn't possible to enable this project.
        Repository 'epel-9-x86_64' does not exist in project '@fedora-llvm-team/llvm-snapshots-big-merge-20240523'.
        Available repositories: 'fedora-39-s390x', 'fedora-38-i386', 'fedora-rawhide-aarch64', 'fedora-39-i386', 'fedora-38-x86_64', 'fedora-40-i386', 'fedora-38-s390x', 'fedora-rawhide-i386', 'fedora-40-x86_64', 'fedora-40-s390x', 'rhel-9-aarch64', 'fedora-39-ppc64le', 'fedora-rawhide-x86_64', 'fedora-40-ppc64le', 'rhel-9-x86_64', 'fedora-rawhide-s390x', 'fedora-39-x86_64', 'fedora-38-ppc64le', 'fedora-38-aarch64', 'rhel-9-s390x', 'fedora-39-aarch64', 'fedora-rawhide-ppc64le', 'fedora-40-aarch64'

        If you want to enable a non-default repository, use the following command:
          'dnf copr enable @fedora-llvm-team/llvm-snapshots-big-merge-20240523 <repository>'
        But note that the installed repo file will likely need a manual modification.
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
  • Loading branch information
kwk committed May 23, 2024
1 parent 345d7f3 commit 72543c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/snapshot-gating.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ prepare:
script: |
dnf install -y dnf-plugins-core
dnf config-manager --save --setopt="testing-farm-tag-repository.priority=999" || true
dnf copr enable @fedora-llvm-team/$COPR_PROJECT <repository>
adjust:
- discover+:
- name: redhat-rpm-config-tests
Expand Down

0 comments on commit 72543c7

Please sign in to comment.