-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1283 from vojtechtrefny/rhel10_branch_ci
RHEL 10 branch CI
- Loading branch information
Showing
15 changed files
with
215 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Static Analysis (RHEL) | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- rhel10-branch | ||
|
||
jobs: | ||
build: | ||
name: static-analysis-rhel | ||
runs-on: ubuntu-24.04 | ||
env: | ||
CI_IMAGE: quay.io/centos/centos:stream10-development | ||
CI_CONTAINER: blivet-tests | ||
steps: | ||
- name: Checkout libblockdev repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install podman | ||
run: | | ||
sudo apt -qq update | ||
sudo apt -y -qq install podman | ||
- name: Start the container | ||
run: | | ||
podman run -d -t --name ${{ env.CI_CONTAINER }} --privileged --volume "$(pwd):/app" --workdir "/app" ${{ env.CI_IMAGE }} | ||
- name: Install ansible in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "dnf -y install ansible-core make which" | ||
- name: Install test dependencies in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "ansible-playbook -i 'localhost,' -c local misc/install-test-dependencies.yml" | ||
- name: Run static analysis tests in the container | ||
run: | | ||
podman exec -it ${{ env.CI_CONTAINER }} bash -c "make check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
actions: | ||
post-upstream-clone: | ||
# we need to set email and username for the merge commit | ||
- 'git config user.email "[email protected]"' | ||
- 'git config user.name "Blivet CI"' | ||
# merge the release branch to get correct version in spec | ||
- 'git merge --ff origin/3.10-release' | ||
# bump release to 99 to always be ahead of Fedora builds | ||
- 'bash -c "sed -i -r \"s/Release:(\s*)\S+/Release: 99%{?dist}/\" python-blivet.spec"' | ||
get-current-version: | ||
|
@@ -20,19 +15,78 @@ actions: | |
- bash -c "sed -i python-blivet.spec -e \"s/Release:.*/Release:\ ${PACKIT_RPMSPEC_RELEASE}%{?dist}/\"" | ||
|
||
jobs: | ||
# Fedora builds for the 'main' branch | ||
- job: copr_build | ||
metadata: | ||
targets: | ||
targets: | ||
- fedora-all | ||
trigger: pull_request | ||
branch: main | ||
|
||
# CentOS 10 Stream builds for the 'rhel10-branch' | ||
- job: copr_build | ||
targets: | ||
- centos-stream-10-x86_64 | ||
trigger: pull_request | ||
branch: rhel10-branch | ||
|
||
# Daily builds for Fedora from the 'main' branch | ||
- job: copr_build | ||
trigger: commit | ||
owner: "@storage" | ||
project: blivet-daily | ||
branch: 3.10-devel | ||
branch: main | ||
preserve_project: true | ||
|
||
# Fedora tests for the 'main' branch | ||
- job: tests | ||
trigger: pull_request | ||
targets: | ||
- fedora-latest-stable | ||
branch: main | ||
|
||
# CentOS 10 Stream tests for the 'rhel10-branch' | ||
- job: tests | ||
trigger: pull_request | ||
targets: | ||
- centos-stream-10-x86_64 | ||
branch: rhel10-branch | ||
|
||
# Downstream builds | ||
- job: propose_downstream | ||
trigger: release | ||
dist_git_branches: | ||
- fedora-all | ||
|
||
- job: koji_build | ||
trigger: commit | ||
dist_git_branches: | ||
- fedora-all | ||
|
||
- job: bodhi_update | ||
trigger: commit | ||
dist_git_branches: | ||
- fedora-branched | ||
|
||
# Reverse dependency tests | ||
## run tests for udisks consumers, see plans/ with `revdeps == yes` | ||
- job: tests | ||
identifier: revdeps | ||
trigger: pull_request | ||
branch: main | ||
notifications: | ||
failure_comment: | ||
message: "Blivet-GUI tests failed for commit {commit_sha}. @vojtechtrefny please check." | ||
targets: | ||
- fedora-latest-stable | ||
tf_extra_params: | ||
environments: | ||
- artifacts: | ||
- type: repository-file | ||
id: https://copr.fedorainfracloud.org/coprs/g/storage/blivet-daily/repo/fedora-$releasever/group_storage-blivet-daily-fedora-$releasever.repo | ||
tmt: | ||
context: | ||
revdeps: "yes" | ||
|
||
srpm_build_deps: | ||
- git | ||
- make | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# reverse dependency test for blivet-gui | ||
enabled: false | ||
|
||
adjust+: | ||
when: revdeps == yes | ||
enabled: true | ||
|
||
prepare: | ||
- name: copr | ||
how: shell | ||
script: | ||
- sudo dnf install -y 'dnf-command(copr)' | ||
- sudo dnf copr enable -y @storage/blivet-daily | ||
# TF prioritizes Fedora tag repo over all others, in particular our daily COPR | ||
- for f in $(grep -l -r 'testing-farm-tag-repository' /etc/yum.repos.d); do sed -i '/priority/d' "$f" ;done | ||
- sudo dnf -y update | ||
|
||
- name: ansible | ||
how: ansible | ||
playbook: | ||
- https://raw.githubusercontent.com/storaged-project/blivet-gui/main/misc/install-test-dependencies.yml | ||
|
||
discover: | ||
how: shell | ||
url: https://github.com/storaged-project/blivet-gui | ||
ref: main | ||
tests: | ||
- name: all | ||
test: make test | ||
|
||
execute: | ||
how: tmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
summary: Run tests | ||
|
||
adjust+: | ||
- when: revdeps == yes | ||
enabled: false | ||
- when: distro == fedora | ||
enabled: false | ||
|
||
prepare: | ||
- name: ansible | ||
how: ansible | ||
playbook: misc/install-test-dependencies.yml | ||
|
||
execute: | ||
how: tmt | ||
script: sudo make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
summary: Run tests | ||
|
||
adjust+: | ||
- when: revdeps == yes | ||
enabled: false | ||
- when: distro == centos | ||
enabled: false | ||
|
||
prepare: | ||
- name: copr | ||
how: shell | ||
script: | ||
- sudo dnf install -y 'dnf-command(copr)' | ||
- sudo dnf copr enable -y @storage/blivet-daily | ||
# TF prioritizes Fedora tag repo over all others, in particular our daily COPR | ||
- for f in $(grep -l -r 'testing-farm-tag-repository' /etc/yum.repos.d); do sed -i '/priority/d' "$f" ;done | ||
- sudo dnf -y update | ||
|
||
- name: ansible | ||
how: ansible | ||
playbook: misc/install-test-dependencies.yml | ||
|
||
execute: | ||
how: tmt | ||
script: sudo make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters