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

Upgrade packit.yaml config to have integration tests #804

Closed
wants to merge 15 commits into from
Closed
168 changes: 168 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,171 @@ jobs:
get-current-version:
# get version from spec file instead from git tag
- bash -c "grep -m1 '^Version:' packaging/leapp.spec | grep -om1 '[0-9].[0-9.]**'"

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
fmf_ref: "master"
use_internal_tf: True
trigger: pull_request
targets:
epel-7-x86_64:
distros: [RHEL-7.9-ZStream]
identifier: tests-7.9to8.6
tmt_plan: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*8to9)(?!.*max_sst)"
tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"
tf_extra_params:
environments:
- tmt:
context:
distro: "rhel-7.9"
env:
SOURCE_RELEASE: "7.9"
TARGET_RELEASE: "8.6"

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
fmf_ref: "master"
use_internal_tf: True
trigger: pull_request
targets:
epel-7-x86_64:
distros: [RHEL-7.9-ZStream]
identifier: tests-7.9to8.8
tmt_plan: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*8to9)(?!.*max_sst)"
tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"
tf_extra_params:
environments:
- tmt:
context:
distro: "rhel-7.9"
env:
SOURCE_RELEASE: "7.9"
TARGET_RELEASE: "8.8"


# - job: tests
# fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
# fmf_ref: "master"
# use_internal_tf: True
# trigger: pull_request
# targets:
# epel-7-x86_64:
# distros: [RHEL-7.9-ZStream]
# identifier: tests-7.9to8.8-sst
# tmt_plan: "^(?!.*tier[2-3].*)(.*max_sst.*)"
# tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"
# tf_extra_params:
# environments:
# - tmt:
# context:
# distro: "rhel-7.9"
# env:
# SOURCE_RELEASE: "7.9"
# TARGET_RELEASE: "8.8"

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
fmf_ref: "master"
use_internal_tf: True
trigger: pull_request
targets:
epel-7-x86_64:
distros: [RHEL-7.9-rhui]
identifier: tests-7to8-aws-e2e
tmt_plan: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*8to9)(.*e2e)"
tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys; echo 42; yum-config-manager --enable rhel-7-server-rhui-optional-rpms"
tf_extra_params:
environments:
- tmt:
context:
distro: "rhel-7.9"
env:
SOURCE_RELEASE: "7.9"
TARGET_RELEASE: "8.6"
RHUI: "aws"

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
fmf_ref: "master"
use_internal_tf: True
trigger: pull_request
targets:
epel-8-x86_64:
distros: [RHEL-8.6.0-Nightly]
identifier: tests-8.6to9.0
tmt_plan: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*7to8)(?!.*max_sst)"
tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"
tf_extra_params:
environments:
- tmt:
context:
distro: "rhel-8.6"
env:
SOURCE_RELEASE: "8.6"
TARGET_RELEASE: "9.0"
RHSM_REPOS: "rhel-8-for-x86_64-appstream-eus-rpms,rhel-8-for-x86_64-baseos-eus-rpms"

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
fmf_ref: "master"
use_internal_tf: True
trigger: pull_request
targets:
epel-8-x86_64:
distros: [RHEL-8.8.0-Nightly]
identifier: tests-8.8to9.2
tmt_plan: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*7to8)(?!.*max_sst)"
tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"
tf_extra_params:
environments:
- tmt:
context:
distro: "rhel-8.8"
env:
SOURCE_RELEASE: "8.8"
TARGET_RELEASE: "9.2"
RHSM_REPOS: "rhel-8-for-x86_64-appstream-beta-rpms,rhel-8-for-x86_64-baseos-beta-rpms"
LEAPP_DEVEL_TARGET_RELEASE: "9.2"

# - job: tests
# fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
# fmf_ref: "master"
# use_internal_tf: True
# trigger: pull_request
# targets:
# epel-8-x86_64:
# distros: [RHEL-8.6.0-Nightly]
# identifier: tests-8.6to9.0-sst
# tmt_plan: "^(?!.*tier[2-3].*)(.*max_sst.*)"
# tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"
# tf_extra_params:
# environments:
# - tmt:
# context:
# distro: "rhel-8.6"
# env:
# SOURCE_RELEASE: "8.6"
# TARGET_RELEASE: "9.0"
# RHSM_REPOS: "rhel-8-for-x86_64-appstream-eus-rpms,rhel-8-for-x86_64-baseos-eus-rpms"

- job: tests
fmf_url: "https://gitlab.cee.redhat.com/oamg/leapp-tests"
fmf_ref: "master"
use_internal_tf: True
trigger: pull_request
targets:
epel-8-x86_64:
distros: [RHEL-8.6-rhui]
identifier: tests-8to9-aws-e2e
tmt_plan: "^(?!.*upgrade_plugin)(?!.*tier[2-3].*)(?!.*rhsm)(?!.*c2r)(?!.*sap)(?!.*7to8)(.*e2e)"
tf_post_install_script: "#!/bin/sh\nsudo sed -i s/.*ssh-rsa/ssh-rsa/ /root/.ssh/authorized_keys"
tf_extra_params:
environments:
- tmt:
context:
distro: "rhel-8.6"
env:
SOURCE_RELEASE: "8.6"
TARGET_RELEASE: "9.0"
RHSM_REPOS: "rhel-8-for-x86_64-appstream-eus-rpms,rhel-8-for-x86_64-baseos-eus-rpms"
RHUI: "aws"