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

Copr build jobs with different identifiers don't seem to honor configured targets #2131

Open
nforro opened this issue Jul 27, 2023 · 0 comments
Labels
area/config Related to the Packit's configuration. area/copr Related to the integration with copr.fedorainfracloud.org/ complexity/single-task Regular task, should be done within days. gain/low This doesn't bring that much value to users. impact/low This issue impacts only a few users. kind/bug Something isn't working.

Comments

@nforro
Copy link
Member

nforro commented Jul 27, 2023

Consider the following config:

  - job: copr_build
    trigger: pull_request
    identifier: fedora-and-epel
    targets:
      - fedora-all
      - epel-9
  - job: copr_build
    trigger: pull_request
    specfile_path: epel8/python-specfile.spec
    identifier: epel8
    actions:
      create-archive:
        - python3 setup.py sdist --dist-dir ./epel8/
        - bash -c "ls -1t ./epel8/*.tar.gz | head -n 1"
      get-current-version: python3 setup.py --version
      pre-sync:
        - python3 plans/git_reference.py
    targets:
      - epel-8

  - job: tests
    trigger: pull_request
    identifier: fedora-and-epel
    targets:
      - fedora-all
      - epel-9

  - job: tests
    trigger: pull_request
    identifier: epel8
    targets:
      - epel-8

I would expect only two copr_build jobs with epel8 suffix and no job with epel-8-x86_64 chroot and fedora-and-epel suffix, but this is the job list (test jobs seem to work fine):

jobs

Here is a draft PR to demonstrate the issue: packit/specfile#258

@majamassarini majamassarini added kind/bug Something isn't working. area/copr Related to the integration with copr.fedorainfracloud.org/ complexity/single-task Regular task, should be done within days. impact/low This issue impacts only a few users. gain/low This doesn't bring that much value to users. area/config Related to the Packit's configuration. labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config Related to the Packit's configuration. area/copr Related to the integration with copr.fedorainfracloud.org/ complexity/single-task Regular task, should be done within days. gain/low This doesn't bring that much value to users. impact/low This issue impacts only a few users. kind/bug Something isn't working.
Projects
Status: backlog
Development

No branches or pull requests

2 participants