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

ci(cpan-libs): Add cpan libs tests #5324

Open
wants to merge 45 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
bfa7312
Adding cpan libs tests
sdepassio Dec 7, 2024
2c0e334
Removing Digest::SHA1 (Digest::SHA used in plugins, and on official d…
sdepassio Dec 10, 2024
b541e07
log error message only for true error
sdepassio Dec 10, 2024
a335226
check all cpan libs
sdepassio Dec 10, 2024
171e865
Check only deb packages with error
sdepassio Dec 11, 2024
5c8743b
Fix to skip packages tested on the wrong architecture
sdepassio Dec 11, 2024
ac0ef36
Keep only packages with error, and update error messages
sdepassio Dec 11, 2024
fa1316c
fix action-lint
sdepassio Dec 11, 2024
5ab3724
update workflow + fix dependencies installation
sdepassio Dec 12, 2024
9938545
test all cpan libs
sdepassio Dec 12, 2024
fdf1ba1
Add installation informations in the CI
sdepassio Dec 13, 2024
a4700f1
filter dependencies
sdepassio Dec 13, 2024
29e04ba
fix for rpm dependencies
sdepassio Dec 13, 2024
00fb0d7
update
sdepassio Dec 13, 2024
b05d451
fix dependencies installation
sdepassio Dec 13, 2024
10346ae
fix deb dependencies
sdepassio Dec 16, 2024
48e3655
Add missing lib for jammy
sdepassio Dec 17, 2024
cad4708
test
sdepassio Dec 18, 2024
efeed54
- Package only the deb packages that doesn't exist in the debian repo
sdepassio Dec 19, 2024
939733e
remove df and free commands + install local dependency only if it doe…
sdepassio Dec 19, 2024
3b40960
use dpkg to install a package, and install all his dependencies before
sdepassio Dec 20, 2024
f2a55c8
test building all debs with fpm
sdepassio Dec 20, 2024
d2d88cc
Cleaning installation of tools/libs already in the docker image
sdepassio Dec 26, 2024
8c199ce
update packages existence checking + dependencies after cpan build
sdepassio Dec 27, 2024
c7112c0
update action
sdepassio Dec 30, 2024
e1c9da7
Add warning messages for existing libs in official debian repos
sdepassio Dec 30, 2024
053144e
Removing unnecessary debian libraries
sdepassio Dec 30, 2024
383e25c
Move installations in docker image + check package existence for rpms
sdepassio Dec 31, 2024
8fb7591
fix for el9
sdepassio Dec 31, 2024
575aae3
update
sdepassio Dec 31, 2024
3cab202
Update for CPAN libs names with '_'
sdepassio Jan 2, 2025
1cba80b
fix condition
sdepassio Jan 2, 2025
1314d79
Add a package test just after his creation
sdepassio Jan 3, 2025
b2836ba
fix for Crypt::OpenSSL::AES on Debian
sdepassio Jan 3, 2025
0f8507b
add errors
sdepassio Jan 13, 2025
a090828
update dockerfiles to remove the patch file
sdepassio Jan 22, 2025
18abf8f
Add test on the name of the created package
sdepassio Jan 22, 2025
6557347
Only 2 libs needs to be built on arm64
sdepassio Jan 22, 2025
fd624e8
fix build names + use `apt-get install` instead of `dpkg -i` for the …
sdepassio Jan 22, 2025
22208e0
Update .github/docker/packaging/Dockerfile.packaging-plugins-jammy
sdepassio Jan 23, 2025
8a19079
Update .github/docker/packaging/Dockerfile.packaging-plugins-bullseye
sdepassio Jan 23, 2025
cd66663
Update .github/docker/packaging/Dockerfile.packaging-plugins-bookworm
sdepassio Jan 23, 2025
04fcd88
Update .github/workflows/perl-cpan-libraries.yml
sdepassio Jan 23, 2025
a735cb2
Update .github/workflows/perl-cpan-libraries.yml
sdepassio Jan 23, 2025
81f4c25
Update .github/workflows/perl-cpan-libraries.yml
sdepassio Jan 23, 2025
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
14 changes: 13 additions & 1 deletion .github/docker/packaging/Dockerfile.packaging-plugins-alma8
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,22 @@ baseurl=https://repo.goreleaser.com/yum/
enabled=1
gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo

dnf -y install gcc git gettext rpm-build dos2unix python3 epel-release nfpm-2.41.0 openssl-devel jq zstd selinux-policy-devel
dnf -y install gcc git gettext rpm-build dos2unix python3 epel-release nfpm-2.41.0 openssl-devel jq zstd selinux-policy-devel yum-utils
dnf config-manager --set-enabled powertools
dnf -y install perl-App-cpanminus perl-JSON
cpanm App::FatPacker
cpanm File::Copy::Recursive

# For cpan libs
dnf install -y cpio libcurl-devel libssh-devel expat-devel libuuid-devel zeromq-devel libxml2-devel libffi-devel perl-DBI perl-Net-Pcap freetds freetds-devel perl-Module-Build-Tiny
cpanm Module::Build::Tiny
cpanm Module::Install
# Install fpm (ruby 3 is required)
dnf module reset -y ruby
dnf module enable -y ruby:3.1
dnf install -y ruby ruby-devel
gem install fpm

dnf clean all

EOF
Expand Down
14 changes: 13 additions & 1 deletion .github/docker/packaging/Dockerfile.packaging-plugins-alma9
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,22 @@ baseurl=https://repo.goreleaser.com/yum/
enabled=1
gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo

dnf -y install gcc git gettext rpm-build dos2unix python3 epel-release nfpm-2.41.0 openssl-devel jq zstd selinux-policy-devel
dnf -y install gcc git gettext rpm-build dos2unix python3 epel-release nfpm-2.41.0 openssl-devel jq zstd selinux-policy-devel yum-utils
dnf config-manager --set-enabled crb
dnf -y install perl-App-cpanminus perl-JSON
cpanm App::FatPacker
cpanm File::Copy::Recursive

# For cpan libs
dnf install -y cpio libcurl-devel libssh-devel expat-devel libuuid-devel zeromq-devel libxml2-devel libffi-devel perl-DBI perl-Net-Pcap freetds freetds-devel perl-Module-Build-Tiny
cpanm Module::Build::Tiny
cpanm Module::Install
# Install fpm (ruby 3 is required)
dnf module reset -y ruby
dnf module enable -y ruby:3.1
dnf install -y ruby ruby-devel
gem install fpm

dnf clean all

EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ apt-get install -y \

cpanm Module::Build::Tiny
cpanm Module::Install
cpanm Crypt::OpenSSL::Guess

gem install fpm

echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
Expand All @@ -64,3 +66,7 @@ apt-get install -y nfpm=2.41.0
apt-get clean

EOF

COPY .github/patch/fpm-deb.rb.diff /tmp/fpm-deb.rb.diff
# Patch to apply fpm fix for debian package generation while waiting for the official fix to be released (https://github.com/jordansissel/fpm/pull/1947).
RUN patch -i /tmp/fpm-deb.rb.diff $(find / -type f -name "deb.rb") && /bin/rm -rf /tmp/fpm-deb.rb.diff
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ apt-get install -y \
libapp-fatpacker-perl \
libcurl4-openssl-dev \
libczmq-dev \
libczmq-dev\
libfile-copy-recursive-perl \
libjson-perl \
libmodule-build-tiny-perl \
Expand All @@ -58,11 +57,14 @@ cpanm Crypt::OpenSSL::Guess

gem install fpm


echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
apt-get update
apt-get install -y nfpm=2.41.0

apt-get clean

EOF

COPY .github/patch/fpm-deb.rb.diff /tmp/fpm-deb.rb.diff
# Patch to apply fpm fix for debian package generation while waiting for the official fix to be released (https://github.com/jordansissel/fpm/pull/1947).
RUN patch -i /tmp/fpm-deb.rb.diff $(find / -type f -name "deb.rb") && /bin/rm -rf /tmp/fpm-deb.rb.diff
4 changes: 4 additions & 0 deletions .github/docker/packaging/Dockerfile.packaging-plugins-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ apt-get install -y nfpm=2.41.0
apt-get clean

EOF

COPY .github/patch/fpm-deb.rb.diff /tmp/fpm-deb.rb.diff
# Patch to apply fpm fix for debian package generation while waiting for the official fix to be released (https://github.com/jordansissel/fpm/pull/1947).
RUN patch -i /tmp/fpm-deb.rb.diff $(find / -type f -name "deb.rb") && /bin/rm -rf /tmp/fpm-deb.rb.diff
Loading
Loading