Compare commits

..

10 commits

Author SHA1 Message Date
Lokesh Mandvekar
81bf8725e0
install builddeps for tmt tests
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 5716cbb68b)
2024-09-05 17:11:56 +05:30
Packit
c69332a9ad Update to 1.12.2 upstream release
Upstream tag: v1.12.2
Upstream commit: 4034a243

Commit authored by Packit automation (https://packit.dev/)
2024-09-04 13:55:30 +00:00
Lokesh Mandvekar
cde445d61a
bump to v1.12.1
(cherry picked from commit 43998e7c07)
2024-08-02 14:38:23 -04:00
Lokesh Mandvekar
743a98cb78
rebuild
(cherry picked from commit 5d3e595eb6)
2024-07-26 14:18:41 -04:00
Lokesh Mandvekar
be501cbf59
rebuild
(cherry picked from commit 2af607a457)
2024-07-26 14:18:38 -04:00
Lokesh Mandvekar
ef7676829f
epoch: 2 on non-copr
(cherry picked from commit 14f5d331e7)
2024-07-26 10:03:32 -04:00
Packit
9930d1f20c Update to 1.11.0 upstream release
Upstream tag: v1.11.0
Upstream commit: 666d7b15

Commit authored by Packit automation (https://packit.dev/)
2024-05-30 15:37:41 +00:00
Packit
03beb7375f [packit] 1.10.0 upstream release
Upstream tag: v1.10.0
Upstream commit: 875c7173
2024-01-24 20:58:51 +00:00
Packit
31bc1ddb01 [packit] 1.9.0 upstream release
Upstream tag: v1.9.0
Upstream commit: e4785bd5
2023-11-27 14:19:30 +00:00
Packit
fa6fdd024f [packit] 1.8.0 upstream release
Upstream tag: v1.8.0
Upstream commit: 1ed94020
2023-09-27 18:34:33 +00:00
10 changed files with 83 additions and 161 deletions

12
.gitignore vendored
View file

@ -34,15 +34,3 @@
/v1.12.1.tar.gz
/v1.12.2.tar.gz
/aardvark-dns-v1.12.2-vendor.tar.gz
/v1.13.0.tar.gz
/aardvark-dns-v1.13.0-vendor.tar.gz
/v1.13.1.tar.gz
/aardvark-dns-v1.13.1-vendor.tar.gz
/v1.14.0.tar.gz
/aardvark-dns-v1.14.0-vendor.tar.gz
/v1.15.0.tar.gz
/aardvark-dns-v1.15.0-vendor.tar.gz
/v1.16.0.tar.gz
/aardvark-dns-v1.16.0-vendor.tar.gz
/v1.17.0.tar.gz
/aardvark-dns-v1.17.0-vendor.tar.gz

View file

@ -16,11 +16,6 @@ files_to_sync:
- src: plans/
dest: plans/
delete: true
mkpath: true
- src: test/tmt
dest: test/tmt
delete: true
mkpath: true
- src: .fmf/
dest: .fmf/
delete: true
@ -33,20 +28,14 @@ packages:
aardvark-dns-centos:
pkg_tool: centpkg
specfile_path: rpm/aardvark-dns.spec
aardvark-dns-eln:
aardvark-dns-rhel:
specfile_path: rpm/aardvark-dns.spec
srpm_build_deps:
- cargo
- git-archive-all
- make
- openssl-devel
# https://packit.dev/docs/configuration/actions
# fix-spec-file only operates on copr builds and doesn't affect official distro builds
actions:
fix-spec-file: "bash .packit-copr-rpm.sh"
jobs:
- job: copr_build
trigger: pull_request
@ -54,17 +43,9 @@ jobs:
notifications: &copr_build_failure_notification
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
targets: &fedora_copr_targets
- fedora-all-x86_64
- fedora-all-aarch64
enable_net: true
osh_diff_scan_after_copr_build: false
- job: copr_build
trigger: pull_request
packages: [aardvark-dns-eln]
notifications: *copr_build_failure_notification
targets:
fedora-all-x86_64: {}
fedora-all-aarch64: {}
fedora-eln-x86_64:
additional_repos:
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/"
@ -77,13 +58,22 @@ jobs:
trigger: pull_request
packages: [aardvark-dns-centos]
notifications: *copr_build_failure_notification
targets: &centos_copr_targets
targets:
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
- centos-stream-10-aarch64
enable_net: true
- job: copr_build
trigger: pull_request
packages: [aardvark-dns-rhel]
notifications: *copr_build_failure_notification
targets:
- epel-9-x86_64
- epel-9-aarch64
enable_net: true
# Run on commit to main branch
- job: copr_build
trigger: commit
@ -96,38 +86,54 @@ jobs:
project: podman-next
enable_net: true
# Tests on Fedora
# Unit tests on Fedora
- job: tests
trigger: pull_request
packages: [aardvark-dns-fedora]
notifications: &test_failure_notification
failure_comment:
message: "Tests failed. @containers/packit-build please check."
targets: *fedora_copr_targets
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo
targets:
- fedora-all-x86_64
- fedora-all-aarch64
# Tests on CentOS Stream
# Unit tests on CentOS Stream
- job: tests
trigger: pull_request
packages: [aardvark-dns-centos]
notifications: *test_failure_notification
targets: *centos_copr_targets
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$releasever.repo
targets:
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
- centos-stream-10-aarch64
# Unit tests on RHEL
- job: tests
trigger: pull_request
packages: [aardvark-dns-rhel]
notifications: *test_failure_notification
use_internal_tf: true
targets:
epel-9-aarch64:
distros: [RHEL-9-Nightly,RHEL-9.4.0-Nightly]
epel-9-x86_64:
distros: [RHEL-9-Nightly,RHEL-9.4.0-Nightly]
# NOTE: Need to use centos-stream-10 until RHEL-10/EPEL-10 copr targets
# are available
# TODO: iptables kernel module is not available on rhel10.
# Enable these after netavark default is switched to nftables.
#centos-stream-10-aarch64:
# distros: [RHEL-10-Beta-Nightly]
#centos-stream-10-x86_64:
# distros: [RHEL-10-Beta-Nightly]
# Sync to Fedora
- job: propose_downstream
trigger: release
packages: [aardvark-dns-fedora]
update_release: false
dist_git_branches: &fedora_targets
dist_git_branches:
- fedora-all
# Sync to CentOS Stream
@ -137,12 +143,16 @@ jobs:
update_release: false
dist_git_branches:
- c10s
- c9s
- job: koji_build
trigger: commit
packages: [aardvark-dns-fedora]
sidetag_group: netavark-releases
dependents:
- netavark
dist_git_branches: *fedora_targets
dist_git_branches:
- fedora-all
# NOTE: Bodhi update tasks are disabled to allow netavark and aardvark-dns X.Y
# builds in a single manual bodhi update. Leaving this commented out
# but not deleted so it's not forgotten.
#- job: bodhi_update
#trigger: commit
#dist_git_branches:
#- fedora-branched # rawhide updates are created automatically

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.12.0.post1.dev13+gd51655c23.
The file was generated using packit 0.100.3.post1.dev13+g92513a8e.

View file

@ -22,7 +22,7 @@ Epoch: 2
# If that's what you're reading, Version must be 0, and will be updated by Packit for
# copr and koji builds.
# If you're reading this on dist-git, the version is automatically filled in by Packit.
Version: 1.17.0
Version: 1.12.2
# The `AND` needs to be uppercase in the License for SPDX compatibility
License: Apache-2.0 AND MIT AND Zlib
Release: %autorelease
@ -53,23 +53,6 @@ BuildRequires: rust-srpm-macros
Forwards other request to configured resolvers.
Read more about configuration in `src/backend/mod.rs`.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: bats
Requires: bind-utils
Requires: jq
Requires: netavark
Requires: socat
Requires: dnsmasq
%description tests
%{summary}
This package contains system tests for %{name} and is only intended to be used
for gating tests.
%prep
%autosetup -Sgit %{name}-%{version}
# Following steps are only required on environments like koji which have no
@ -95,14 +78,6 @@ tar fx %{SOURCE1}
%install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
%{__install} -d -p %{buildroot}%{_datadir}/%{name}/test
%{__cp} -rp test/* %{buildroot}%{_datadir}/%{name}/test/
%{__rm} -rf %{buildroot}%{_datadir}/%{name}/test/tmt/
# Add empty check section to silence rpmlint warning.
# No tests meant to be run here.
%check
%files
%license LICENSE
%if (0%{?fedora} || 0%{?rhel} >= 10) && !%{defined copr_username}
@ -112,8 +87,5 @@ tar fx %{SOURCE1}
%dir %{_libexecdir}/podman
%{_libexecdir}/podman/%{name}
%files tests
%{_datadir}/%{name}/test
%changelog
%autochangelog

View file

@ -1,10 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_stable
- bodhi_update_push_testing
subject_type: koji_build
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
@ -12,5 +9,4 @@ rules:
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
rules: []

23
plans/all.fmf Normal file
View file

@ -0,0 +1,23 @@
discover:
how: fmf
execute:
how: tmt
/upstream:
summary: Run tests on upstream PRs
discover+:
filter: tag:upstream
adjust+:
enabled: false
when: initiator is not defined or initiator != packit
/downstream:
summary: Run tests on bodhi / errata and dist-git PRs
discover+:
filter: tag:downstream
dist-git-install-builddeps: true
dist-git-source: true
dist-git-remove-fmf-root: true
adjust+:
enabled: false
when: initiator == packit

View file

@ -1,33 +0,0 @@
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
/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

View file

@ -1,2 +1,2 @@
SHA512 (v1.17.0.tar.gz) = 42e3a261bb5b9df83b8bb853ed50dd7dfda643895262aedf5ccdc865c598e913996a244d234ac309a18ee1a884b7ba847679dfe5d8b6521e674114c8aba552da
SHA512 (aardvark-dns-v1.17.0-vendor.tar.gz) = b7ec2a2a34d5bb36dbcc55611dc9ec0ff2c1bed4469cc4b12d4eb0bd78bb7d6cae6f80a02ac32ade5c435fdd11e22ddd99646aa4de504c8369ee56cfa470e6a5
SHA512 (v1.12.2.tar.gz) = 851683cd5ac569358c0f89895879c19ac607653f2f4578030a99911a4723dab025ca6d26615da6037baf95514e9bb7d3a2c86c618d57c67cee2b28fd3a73c072
SHA512 (aardvark-dns-v1.12.2-vendor.tar.gz) = 1dfacc29962acca5c7baa11fbe4d1c93276b91cb5e1db6033d8e23e963ca4c4098bdbf4bdf89730fdea4d5a45b3a2c00ee65888d502e8009d2adaaa6f8374dba

View file

@ -1,26 +0,0 @@
/validate:
tag: [ no-rpm, validate ]
summary: Validate test
test: make -C ../.. validate
require:
- clippy
- rustfmt
/unit:
tag: [ no-rpm, unit ]
summary: Unit tests
test: make -C ../.. unit
require:
- cargo
/integration:
tag: [ rpm, integration ]
summary: Integration tests
test: bash test_integration.sh
environment:
AARDVARK: /usr/libexec/podman/aardvark-dns
require:
- aardvark-dns-tests
adjust:
duration: 10m
when: arch == aarch64

View file

@ -1,8 +0,0 @@
#!/usr/bin/env bash
set -exo pipefail
rpm -q aardvark-dns aardvark-dns-tests netavark
cd /usr/share/aardvark-dns/
bats test/