Skip to content

Commit

Permalink
packit.yml: run gating tests on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Aug 22, 2024
1 parent d48c423 commit 1d443f4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
11 changes: 11 additions & 0 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
- centos-stream-10
- fedora-all

- job: tests
trigger: pull_request
targets:
- fedora-39
- fedora-39-aarch64
- fedora-40
- fedora-40-aarch64
- centos-stream-9
- centos-stream-9-aarch64
- centos-stream-10

- job: copr_build
trigger: commit
branch: "^main$"
Expand Down
10 changes: 10 additions & 0 deletions plans/all.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
summary:
Run all tests
discover:
how: fmf
execute:
how: tmt

# Let's handle them upstream only, don't break Fedora/RHEL reverse dependency gating
environment:
TEST_AUDIT_NO_SELINUX: 1
1 change: 1 addition & 0 deletions test/browser/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
- python3
- targetcli
- tlog
- podman
test: ./browser.sh
duration: 1h
2 changes: 1 addition & 1 deletion test/verify/composerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def setUp(self):

# push pre-defined blueprint
self.machine.execute("""
for toml_file in /home/admin/files/*.toml; do
for toml_file in /etc/osbuild-composer/blueprints/*.toml; do
composer-cli blueprints push $toml_file
done
""")
Expand Down
6 changes: 4 additions & 2 deletions test/vm.install
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ if [ -n "$VG" ]; then
fi

# Repositories in /etc/osbuild-composer/repositories are used only for on-premise
REPODIR=/etc/osbuild-composer/repositories
sudo mkdir -p $REPODIR
sudo mkdir -p /etc/osbuild-composer/repositories
sudo mkdir -p /etc/osbuild-composer/blueprints
# Copy rhel nightly overrides
if [ -d /home/admin/files ]; then
cp /home/admin/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.0.json
cp /home/admin/files/*.toml /etc/osbuild-composer/blueprints/
else
cp test/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
cp test/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.json
cp test/files/*.toml /etc/osbuild-composer/blueprints/
fi
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-beta.json
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-ga.json
Expand Down

0 comments on commit 1d443f4

Please sign in to comment.