Skip to content

Commit

Permalink
chore(Packit): Add internalt tests per pull request
Browse files Browse the repository at this point in the history
Add internal tests for pre-defined usecases from
internal repository with the specifications.
These tests are switched by using MRACK_TEST_CASE
environment variable with a test that needs to be
specified in internal repository.

Signed-off-by: Tibor Dudlák <[email protected]>
  • Loading branch information
Tiboris committed May 10, 2023
1 parent 44023eb commit 5ec01aa
Showing 1 changed file with 92 additions and 21 deletions.
113 changes: 92 additions & 21 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,104 @@ actions:
- "python3 setup.py --version"

jobs:
- job: copr_build
# - job: copr_build
# trigger: pull_request
# release_suffix: "99.dev.{PACKIT_PROJECT_BRANCH}"
# targets: [fedora-all, epel-8, epel-9]

# - job: tests
# trigger: pull_request
# identifier: "upstream-smoke"
# targets: [fedora-all, epel-8, epel-9]

# - job: copr_build
# trigger: commit
# targets: [fedora-all, epel-8, epel-9]

# - job: copr_build
# trigger: release
# owner: "@freeipa"
# project: neoave
# targets: [fedora-all, epel-8, epel-9]

# - job: propose_downstream
# trigger: release
# dist_git_branches: [fedora-all, epel-8, epel-9]

# - job: koji_build
# trigger: commit
# dist_git_branches: [fedora-all, epel-8, epel-9]

# - job: bodhi_update
# trigger: commit
# dist_git_branches: [fedora-branched, epel-8, epel-9] # rawhide updates are created automatically

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/tdudlak/mrack-internal-tests" #tmp change
fmf_ref: "mrack-internal-smoke" #tmp change
use_internal_tf: True
identifier: "internal-provisioning-osp"
trigger: pull_request
release_suffix: "99.dev.{PACKIT_PROJECT_BRANCH}"
targets: [fedora-all, epel-8, epel-9]
targets: [fedora-latest-stable]
env:
MRACK_TEST_CASE: "provisioning-osp"

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/tdudlak/mrack-internal-tests" #tmp change
fmf_ref: "mrack-internal-smoke" #tmp change
use_internal_tf: True
identifier: "internal-provisioning-aws"
trigger: pull_request
targets: [fedora-all, epel-8, epel-9]
targets: [fedora-latest-stable]
env:
MRACK_TEST_CASE: "provisioning-aws"

- job: copr_build
trigger: commit
targets: [fedora-all, epel-8, epel-9]
# - job: tests
# fmf_url: "https://gitlab.cee.redhat.com/tdudlak/mrack-internal-tests" #tmp change
# fmf_ref: "mrack-internal-smoke" #tmp change
# use_internal_tf: True
# identifier: "internal-provisioning-bkr-c9s-req1cpu"
# trigger: pull_request
# targets: [fedora-latest-stable]
# env:
# MRACK_TEST_CASE: "provisioning-bkr-c9s-req1cpu"

- job: copr_build
trigger: release
owner: "@freeipa"
project: neoave
targets: [fedora-all, epel-8, epel-9]
# - job: tests
# fmf_url: "https://gitlab.cee.redhat.com/tdudlak/mrack-internal-tests" #tmp change
# fmf_ref: "mrack-internal-smoke" #tmp change
# use_internal_tf: True
# identifier: "internal-provisioning-bkr-fedora-ppc64le"
# trigger: pull_request
# targets: [fedora-latest-stable]
# env:
# MRACK_TEST_CASE: "provisioning-bkr-fedora-ppc64le"

- job: propose_downstream
trigger: release
dist_git_branches: [fedora-all, epel-8, epel-9]
# - job: tests
# fmf_url: "https://gitlab.cee.redhat.com/tdudlak/mrack-internal-tests" #tmp change
# fmf_ref: "mrack-internal-smoke" #tmp change
# use_internal_tf: True
# identifier: "internal-provisioning-bkr-rhel-8-req-2048mem-2cpu"
# trigger: pull_request
# targets: [fedora-latest-stable]
# env:
# MRACK_TEST_CASE: "provisioning-bkr-rhel-8-req-2048mem-2cpu"

- job: koji_build
trigger: commit
dist_git_branches: [fedora-all, epel-8, epel-9]
# - job: tests
# fmf_url: "https://gitlab.cee.redhat.com/tdudlak/mrack-internal-tests" #tmp change
# fmf_ref: "mrack-internal-smoke" #tmp change
# use_internal_tf: True
# identifier: "internal-provisioning-bkr-rhel-9-req-4069mem"
# trigger: pull_request
# targets: [fedora-latest-stable]
# env:
# MRACK_TEST_CASE: "provisioning-bkr-rhel-9-req-4069mem"

- job: bodhi_update
trigger: commit
dist_git_branches: [fedora-branched, epel-8, epel-9] # rawhide updates are created automatically
# - job: tests
# fmf_url: "https://gitlab.cee.redhat.com/tdudlak/mrack-internal-tests" #tmp change
# fmf_ref: "mrack-internal-smoke" #tmp change
# use_internal_tf: True
# identifier: "internal-all-providers-ssh"
# trigger: pull_request
# targets: [fedora-latest-stable]
# env:
# MRACK_TEST_CASE: "all-providers-ssh"

0 comments on commit 5ec01aa

Please sign in to comment.