-
Notifications
You must be signed in to change notification settings - Fork 808
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
[skip-ci] Packit/TMT: Run gating tests #1960
Open
lsm5
wants to merge
4
commits into
containers:main
Choose a base branch
from
lsm5:packit-gating-tests
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.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/actions/labeler | ||
release: | ||
- base-branch: [^release-?(0|[1-9]\d*).(0|[1-9]\d*)$] | ||
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,20 @@ | ||
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 |
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 @@ | ||
--- !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 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 |
---|---|---|
|
@@ -7,26 +7,22 @@ | |
%global debug_package %{nil} | ||
%endif | ||
|
||
# RHEL's default %%gobuild macro doesn't account for the BUILDTAGS variable, so we | ||
# set it separately here and do not depend on RHEL's go-[s]rpm-macros package | ||
# until that's fixed. | ||
# c9s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227328 | ||
# c8s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227331 | ||
%if %{defined rhel} | ||
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**}; | ||
%endif | ||
|
||
%global gomodulesmode GO111MODULE=on | ||
|
||
# No btrfs on RHEL | ||
%if %{defined fedora} | ||
%define build_with_btrfs 1 | ||
%endif | ||
|
||
%if %{defined rhel} | ||
%define fips 1 | ||
%endif | ||
|
||
# Only used in official koji builds | ||
# Copr builds set a separate epoch for all environments | ||
%if %{defined fedora} | ||
%define conditional_epoch 1 | ||
%define fakeroot 1 | ||
%else | ||
%define conditional_epoch 2 | ||
%endif | ||
|
@@ -77,12 +73,14 @@ Requires: containers-common >= 4:1-21 | |
Command line utility to inspect images and repositories directly on Docker | ||
registries without the need to pull them | ||
|
||
# NOTE: The tests subpackage is only intended for testing and will not be supported | ||
# for end-users and/or customers. | ||
%package tests | ||
Summary: Tests for %{name} | ||
|
||
Requires: %{name} = %{epoch}:%{version}-%{release} | ||
%if %{defined fedora} | ||
Requires: bats | ||
%if %{defined fakeroot} | ||
Requires: fakeroot | ||
%endif | ||
Requires: gnupg | ||
|
@@ -127,6 +125,10 @@ export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_tag.sh) $(hack/btrfs_installed_tag | |
export BUILDTAGS="$BASEBUILDTAGS btrfs_noversion exclude_graphdriver_btrfs" | ||
%endif | ||
|
||
%if %{defined fips} | ||
export BUILDTAGS="$BUILDTAGS libtrust_openssl" | ||
%endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
|
||
# unset LDFLAGS earlier set from set_build_flags | ||
LDFLAGS='' | ||
|
||
|
@@ -146,6 +148,10 @@ cp -pav systemtest/* %{buildroot}/%{_datadir}/%{name}/test/system/ | |
#define license tag if not already defined | ||
%{!?_licensedir:%global license %doc} | ||
|
||
# Include this to silence rpmlint. | ||
# Especially annoying if you use syntastic vim plugin. | ||
%check | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
|
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,10 @@ | ||
require: | ||
- bats | ||
- skopeo-tests | ||
|
||
environment: | ||
SKOPEO_BINARY: /usr/bin/skopeo | ||
|
||
summary: System test | ||
test: bash ./test.sh | ||
duration: 60m |
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
uname -r | ||
|
||
rpm -q \ | ||
bats \ | ||
containers-common \ | ||
skopeo \ | ||
skopeo-tests \ | ||
|
||
bats /usr/share/skopeo/test/system |
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.
Non-blocking: Does the
0|…
special case intend to exclude something specific? I’d expect something simpler like\d\+
.I don’t expect we would create a branch named
release-0050.01
, so I don’t think this matters that much, but I might be missing something important.