Skip to content

WIP: Add upstream CI for test PR's to main branch #63

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
13 changes: 13 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
jobs:
- job: tests
trigger: pull_request
branch: main
targets:
- fedora-rawhide
skip_build: true
tf_extra_params:
environments:
- tmt:
context:
target_PR_branch: main
47 changes: 47 additions & 0 deletions plans/packit-ci.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
summary: common test plan for CI


prepare:
- how: shell
script:
- ln -s $(pwd) /var/tmp/attestation-operator_sources || true
- systemctl disable --now dnf-makecache.service || true
- systemctl disable --now dnf-makecache.timer || true
- dnf makecache

environment:
OPERATOR_NAME: "keylime"
OPERATOR_NAMESPACE: "attestation-operator"
UPSTREAM_OPERATOR: "true"
REPO_CLONE: "attestation"


discover:
- name: Configure_test_system
how: fmf
url: https://github.com/RedHat-SP-Security/common-cloud-orchestration
ref: main
test:
- /Setup/setup_local_cluster
- /Setup/install_upstream_operator
#need to run bundle task, for now unstable
- name: Run_tests
how: fmf
url: https://github.com/RedHat-SP-Security/attestation-operator-tests
ref: main
test:
- /Setup/install_operator
- /Sanity
- /Setup/clean_cluster

adjust:
- when: distro == rhel-9 or distro == centos-stream-9
prepare+:
- how: shell
script:
- dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm


execute:
how: tmt