Skip to content
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

add rocky 9 testing #71

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
- run: ./builder/build.sh -c -B MYCOOLARG=iLikeTests centos-7
# Do a reproducible rocky-8 build (does not work for centos-7)
- run: ../tests/test-rocky-8-reproducible.sh

- run: ../tests/test-rocky-9-reproducible.sh
24 changes: 24 additions & 0 deletions demo/builder-support/dockerfiles/Dockerfile.target.rocky-9
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# First do the source builds
@INCLUDE Dockerfile.target.sdist

# This defines the distribution base layer
# Put only the bare minimum of common commands here, without dev tools
FROM rockylinux:9 as dist-base
ARG BUILDER_CACHE_BUSTER=
#RUN dnf install -y epel-release
# Python 3.4+ is needed for the builder helpers
RUN dnf install -y /usr/bin/python3
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
RUN dnf install -y dnf-plugins-core
RUN dnf config-manager --set-enabled crb

# Do the actual rpm build
@INCLUDE Dockerfile.rpmbuild

# Generate provenance
RUN /build/builder/helpers/generate-dnf-provenance.py /dist/rpm-provenance.json

# Do a test install and verify
# Can be skipped with skiptests=1 in the environment
@EXEC [ "$skiptests" = "" ] && include Dockerfile.rpmtest

23 changes: 23 additions & 0 deletions tests/test-rocky-9-reproducible.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
# Test if rocky-9 RPM builds are reproducible
# Must be run from demo dir

set -ex

# First build
./builder/build.sh -B MYCOOLARG=iLikeTests rocky-9

# Record hashes
sha256sum \
builder/tmp/latest/rocky-9/dist/noarch/*.rpm \
builder/tmp/latest/sdist/*.tar.gz \
> /tmp/sha256sum.txt

# Second build after cleaning and adding a file to invalidate the build context
rm -rf ./builder/tmp/latest/rocky-9
rm -rf ./builder/tmp/latest/sdist
./builder/build.sh -B MYCOOLARG=iLikeTests -b build-again rocky-9

# Check hashes, should be identical
sha256sum -c /tmp/sha256sum.txt

Loading