-
Notifications
You must be signed in to change notification settings - Fork 114
[skip-ci] TMT: initial enablement #820
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
Draft
lsm5
wants to merge
1
commit into
containers:main
Choose a base branch
from
lsm5:packit-tmt
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -8,3 +8,6 @@ vendor/ | |
.idea/* | ||
contrib/systemd/*/*.service | ||
.vscode* | ||
rpm/RPMS | ||
rpm/SRPMS | ||
rpm/*.tar.gz |
This file contains hidden or 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 hidden or 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 hidden or 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,43 @@ | ||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
prepare: | ||
- when: distro == centos-stream or distro == rhel | ||
how: shell | ||
script: | | ||
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm | ||
dnf -y config-manager --set-enabled epel | ||
order: 10 | ||
- when: initiator == packit | ||
how: shell | ||
script: | | ||
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo" | ||
if compgen -G $COPR_REPO_FILE > /dev/null; then | ||
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE | ||
fi | ||
dnf -y upgrade --allowerasing | ||
order: 20 | ||
|
||
provision: | ||
how: artemis | ||
hardware: | ||
memory: ">= 16 GB" | ||
cpu: | ||
cores: ">= 4" | ||
threads: ">=8" | ||
disk: | ||
- size: ">= 512 GB" | ||
|
||
/no-rpm: | ||
summary: Run tests independent of rpm | ||
discover+: | ||
filter: tag:no-rpm | ||
adjust+: | ||
- enabled: false | ||
when: initiator is not defined or initiator != packit | ||
|
||
/rpm: | ||
summary: Run tests on the rpm | ||
discover+: | ||
filter: tag:rpm |
This file contains hidden or 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 @@ | ||
--- !Policy | ||
product_versions: | ||
- fedora-* | ||
decision_context: | ||
- bodhi_update_push_stable | ||
- bodhi_update_push_testing | ||
subject_type: koji_build | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} | ||
|
||
--- !Policy | ||
product_versions: | ||
- rhel-* | ||
decision_context: osci_compose_gate | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} |
This file contains hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
# Only common dependencies that are NOT required to run test_integration.sh are | ||
# specified here. Everything else is in test_integration.sh. | ||
require: | ||
- iptables | ||
- netavark-tests | ||
|
||
adjust: | ||
duration: 10m | ||
when: arch == aarch64 | ||
|
||
tag: [ upstream, downstream ] | ||
summary: Integration tests | ||
test: bash integration.sh | ||
environment: | ||
NETAVARK: /usr/libexec/podman/netavark | ||
NETAVARK_DHCP_PROXY_CLIENT: /usr/libexec/podman/netavark-dhcp-proxy-client | ||
TEST_PLUGINS: /usr/share/netavark/examples |
This file contains hidden or 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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
rpm -q aardvark-dns cargo netavark | ||
|
||
# Run tests | ||
bats /usr/share/netavark/test-dhcp |
This file contains hidden or 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 hidden or 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 hidden or 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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
rpm -q aardvark-dns cargo netavark | ||
|
||
# Run tests | ||
bats /usr/share/netavark/test |
This file contains hidden or 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,33 @@ | ||
require: | ||
- cargo | ||
- clippy | ||
- go-md2man | ||
- git-core | ||
- iptables | ||
- make | ||
- protobuf-compiler | ||
- rustfmt | ||
|
||
adjust+: | ||
- duration: 10m | ||
when: arch == aarch64 | ||
|
||
/validate: | ||
tag: no-rpm | ||
summary: Validate test | ||
test: make -C $TMT_TREE validate | ||
|
||
/unit: | ||
tag: no-rpm | ||
summary: Unit test | ||
test: make -C $TMT_TREE unit | ||
|
||
/integration: | ||
tag: rpm | ||
summary: Integration tests | ||
test: bash integration.sh | ||
environment: | ||
NETAVARK: /usr/libexec/podman/netavark | ||
TEST_PLUGINS: /usr/share/netavark/examples | ||
require+: | ||
- netavark-tests |
This file contains hidden or 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,13 @@ | ||
summary: Podman tests dependent on netavark | ||
require: | ||
- netavark | ||
- podman-tests | ||
|
||
tag: [rpm] | ||
|
||
test: | | ||
/usr/bin/bats -t /usr/share/podman/test/system/030-run.bats | ||
/usr/bin/bats -t /usr/share/podman/test/system/075-exec.bats | ||
/usr/bin/bats -t /usr/share/podman/test/system/500-networking.bats | ||
|
||
duration: 15m |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had this discussion recently about the podman RHEL rpm that this is not supported. So we should make sure if this ever gets top RHEL we do not ship it outside of the gating env if possible (i.e. follow whatever we decided to do with the podman rpm).
Outside of the bats test we do not support these examples either upstream. So maybe add the description here that these are test only binaries for gating and not recommended/supported for any other use.