Compare commits

..

10 Commits
i9ce ... epel9

@ -168,9 +168,6 @@ echo "Ensure macro prefers the collection namespace and name passed as an argume
* Tue Dec 05 2023 Maxwell G <maxwell@gtmx.me> - 1-12 * Tue Dec 05 2023 Maxwell G <maxwell@gtmx.me> - 1-12
- %%ansible_collection_url: handle new URL scheme - %%ansible_collection_url: handle new URL scheme
* Tue Jul 25 2023 Arkady L. Shane <ashejn@msvsphere.ru> - 1-11
- Rebuilt for MSVSphere 9.2
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1-11 * Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

@ -0,0 +1,16 @@
summary: Rebuild dependents to ensure that builds pass
discover:
- name: Rebuild collection packages
how: shell
tests:
- name: Rebuild ansible-collection-community-docker
test: tests/rebuild.sh ansible-collection-community-docker
require:
- ansible-core
- ansible-packaging
- ansible-srpm-macros
- fedpkg
- rpm-build
- sudo
execute:
how: tmt

@ -0,0 +1,27 @@
#!/usr/bin/bash -x
set -euo pipefail
package="${1}"
cat <<'EOF' > ~/.rpmmacros
%_topdir %(echo $HOME)/rpmbuild
%_sourcedir %(pwd)
%_srcrpmdir %(pwd)
%_rpmdir %(pwd)/rpms
EOF
mkdir -p clones
cd clones
fedpkg clone -a "${package}"
cd "${package}"
fedpkg srpm
sudo dnf builddep -y *.src.rpm
rc=0
rpmbuild --rebuild *.src.rpm | tee build.log || rc=$?
# move the results to the artifacts directory, so we can examine them
artifacts="${TEST_ARTIFACTS:-/tmp/artifacts}"
mkdir -p "${artifacts}"
mv -v *.rpm rpms/*/* build.log "${artifacts}/" || :
exit "${rc}"
Loading…
Cancel
Save