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

MON-34952 Centreon next 24.04 (Jira release #19666#) #1106

Closed
wants to merge 76 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
1be3294
chore(deps): bump docker/build-push-action from 3.3.1 to 5.1.0
dependabot[bot] Jan 3, 2024
6f8a2e0
chore(deps): bump docker/setup-buildx-action from 2.10.0 to 3.0.0
dependabot[bot] Jan 3, 2024
a324fd1
initial commit
mushroomempires Jan 9, 2024
7d1e98e
pbuilder fix + conan fix
mushroomempires Jan 9, 2024
9f58867
to revert
mushroomempires Jan 9, 2024
a757f91
Revert "to revert"
mushroomempires Jan 9, 2024
85d580f
add quotes
mushroomempires Jan 9, 2024
44cb2f1
moved around pbuilder install
mushroomempires Jan 9, 2024
9f7949c
add bookworm to matrix
mushroomempires Jan 9, 2024
ac3a83c
trigger ci
mushroomempires Jan 9, 2024
a3a85c8
remove
mushroomempires Jan 9, 2024
c1ee6f6
update package according to package extension and stability
mushroomempires Jan 9, 2024
1396781
forgot to add stability variable in package workflows
mushroomempires Jan 9, 2024
976f104
added canary as option for generating packages with deb distrib
mushroomempires Jan 9, 2024
4d81364
forgot brackets
mushroomempires Jan 10, 2024
d651d74
add bookworm condition for the rest of the steps
mushroomempires Jan 10, 2024
d964e5a
fix
mushroomempires Jan 10, 2024
ab26b2d
add check to prevent 22/23 centreon versions from delivering bookworm…
mushroomempires Jan 10, 2024
c4e2526
ensure that testing packages are created
mushroomempires Jan 11, 2024
90b9e5e
added double brackets for check
mushroomempires Jan 11, 2024
24be4c4
added environment files
mushroomempires Jan 11, 2024
c7e237a
uwu
mushroomempires Jan 11, 2024
9353708
uwu
mushroomempires Jan 11, 2024
b75e76e
reverted changes to push testing packages
mushroomempires Jan 11, 2024
9ae4237
fixes and changes brought by reviews
mushroomempires Jan 17, 2024
bb1c22c
fix
mushroomempires Jan 17, 2024
6a1125a
fix
mushroomempires Jan 17, 2024
0653c65
fix(broker/lua): functions in error could keep data on the stack (#1069)
bouda1 Jan 17, 2024
d897ca5
fix
mushroomempires Jan 17, 2024
ac7e914
fix
mushroomempires Jan 17, 2024
e173da3
fix/enh(broker): cbd memory leak in sql module and new library to tra…
jean-christophe81 Jan 18, 2024
79fe111
attempt to remove pbuilder
mushroomempires Jan 18, 2024
0f0389a
Merge branch 'develop' of https://github.com/centreon/centreon-collec…
mushroomempires Jan 18, 2024
6846e83
Update .github/workflows/centreon-collect.yml
mushroomempires Jan 18, 2024
c2f12a7
revert
mushroomempires Jan 18, 2024
ceb7cd1
Merge branch 'MON-34065-package-debian-12' of https://github.com/cent…
mushroomempires Jan 18, 2024
b6ce187
removed debian tooling
mushroomempires Jan 18, 2024
c4c0dc7
added git for conan install command on dockerfile
mushroomempires Jan 19, 2024
b2c9d36
removed packaging dependencies on debian dockerfile that are redundan…
mushroomempires Jan 19, 2024
3e31143
removed packaging dependencies on debian dockerfile that are redundan…
mushroomempires Jan 19, 2024
5e5d485
Merge branch 'master' into sync-release-34027
tuntoja Jan 25, 2024
213e423
MON-34027 Sync Centreon Collect next 24.04 (Jira release #34027#) (#1…
pkippes Jan 26, 2024
3c69e27
fix(ci): fix breaking changes on gha upload-artifact upgrade (#1025)
sc979 Jan 26, 2024
d243131
chore(deps): bump actions/setup-python from 4 to 5
dependabot[bot] Jan 26, 2024
e503e10
chore(deps): bump actions/download-artifact from 3.0.2 to 4.1.1
dependabot[bot] Jan 15, 2024
dcb6913
chore(deps): bump actions/cache from 3.3.2 to 4.0.0
dependabot[bot] Jan 22, 2024
3d4296e
chore(deps): bump actions/upload-artifact from 3.1.3 to 4.2.0
dependabot[bot] Jan 22, 2024
cc3187c
fix(ci): skip sandbox analysis on PR jobs (#1051)
sc979 Jan 26, 2024
717e531
MON-23624 rrd files have group rw permissions (#978)
jean-christophe81 Jan 26, 2024
3e8a113
fix(promote): add github_base_ref to promote job inputs (#1080)
tuntoja Jan 26, 2024
1011634
chore(deps): bump docker/setup-buildx-action from 2.10.0 to 3.0.0 (#1…
mushroomempires Jan 26, 2024
255e8ec
chore(deps): bump docker/build-push-action from 3.3.1 to 5.1.0 (#1027)
mushroomempires Jan 26, 2024
e5877b9
chore(deps): bump actions/setup-python from 4 to 5 (#1028)
mushroomempires Jan 26, 2024
926273d
add condition on os to use one version of setup-python over another
mushroomempires Jan 26, 2024
08ac3f4
added deleteme file in broker to trigger pipelines
mushroomempires Jan 26, 2024
44da269
Merge branch 'develop' of https://github.com/centreon/centreon-collec…
mushroomempires Jan 26, 2024
6c2ae54
deleted DELETEME
mushroomempires Jan 26, 2024
d1cfff6
removed leftover space
mushroomempires Jan 26, 2024
5af70f1
feat(packaging): package for Debian 12 (#1057)
mushroomempires Jan 26, 2024
7b5e311
enh(ci): upgrade github actions (#1081)
mushroomempires Jan 26, 2024
f4a5394
chore(deps): bump actions/upload-artifact from 4.0.0 to 4.3.0
dependabot[bot] Jan 29, 2024
9ac7cc3
Mon 33334 cbd memory leak jc 2 (#1076)
jean-christophe81 Jan 29, 2024
9afc361
retention.dat is not deleted by collect install (#1007)
jean-christophe81 Jan 30, 2024
a1a15e6
MON-33334 fix stats muxer memory-leak (#1087)
jean-christophe81 Jan 30, 2024
82fee31
chore(deps): bump actions/upload-artifact from 4.0.0 to 4.3.0 (#1086)
mushroomempires Feb 1, 2024
0db41be
try to ignore specific action
sc979 Feb 1, 2024
d6193ff
add quotes to dependency ignore
mushroomempires Feb 1, 2024
abf2513
Revert "try to ignore specific action"
mushroomempires Feb 1, 2024
5b2cbc4
enh(ci): upgrade GitHub actions (#1098)
mushroomempires Feb 1, 2024
a2c199d
feat(packaging): package for Ubuntu Jammy (#1097)
mushroomempires Feb 2, 2024
3511028
exclude paths from create jira version files (#1104)
tuntoja Feb 2, 2024
15e6ecd
fix(ci): fix delivery condition (#1108)
kduret Feb 2, 2024
84de42b
lua_gc is called periodicaly in order to clean broker events owned by…
jean-christophe81 Feb 8, 2024
8f13d07
fix(gorgone): package last version of libzmq (#1115)
sdepassio Feb 9, 2024
fe085c6
fix(ci): fix delivery of libzmq (#1130)
kduret Feb 9, 2024
cf7a6cb
fix(ci): add distrib name in libzmq deb package (#1133)
kduret Feb 12, 2024
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
16 changes: 11 additions & 5 deletions .github/actions/delivery/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ runs:

- name: Build name for DEB
shell: bash
if: ${{ inputs.distrib == 'bullseye' }}
if: ${{ contains(fromJSON('["bullseye", "bookworm", "jammy"]'), inputs.distrib) }}
run: |
echo "extfile=deb" >> $GITHUB_ENV

- name: Use cache files
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ./*.${{ env.extfile }}
key: ${{ inputs.cache_key }}
Expand All @@ -46,7 +46,7 @@ runs:
JF_URL: https://centreon.jfrog.io
JF_ACCESS_TOKEN: ${{ inputs.artifactory_token }}

- if: ${{ startsWith(inputs.distrib, 'el') }}
- if: ${{ env.extfile == 'rpm' }}
name: Publish RPMs
run: |
FILES="*.${{ env.extfile }}"
Expand Down Expand Up @@ -89,7 +89,7 @@ runs:
done
shell: bash

- if: ${{ inputs.distrib == 'bullseye' }}
- if: ${{ env.extfile == 'deb' }}
name: Publish DEBs
run: |
FILES="*.${{ env.extfile }}"
Expand All @@ -113,6 +113,12 @@ runs:

echo "[DEBUG] - Version: $VERSION"

jf rt upload "$FILE" "apt-standard-${{ inputs.version }}-${{ inputs.stability }}/pool/${{ inputs.module_name }}/" --deb "${{ inputs.distrib }}/main/$ARCH"
if [[ "${{ inputs.distrib }}" == "jammy" ]]; then
REPO_PREFIX="ubuntu"
else
REPO_PREFIX="apt"
fi

jf rt upload "$FILE" "${REPO_PREFIX}-standard-${{ inputs.version }}-${{ inputs.stability }}/pool/${{ inputs.module_name }}/" --deb "${{ inputs.distrib }}/main/$ARCH"
done
shell: bash
13 changes: 12 additions & 1 deletion .github/actions/package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ inputs:
rpm_gpg_signing_passphrase:
description: The rpm gpg signing passphrase
required: true
stability:
description: "branch stability (stable, testing, unstable, canary)"
required: true

runs:
using: composite
Expand All @@ -58,6 +61,11 @@ runs:
export DIST=".${{ inputs.distrib }}"
else
export DIST=""
if [ "${{ inputs.stability }}" = "unstable" ] || [ "${{ inputs.stability }}" = "canary" ]; then
export RELEASE="$RELEASE~${{ inputs.distrib }}"
else
export RELEASE="1~${{ inputs.distrib }}"
fi
fi

export RPM_SIGNING_KEY_FILE="$(pwd)/key.gpg"
Expand All @@ -67,6 +75,9 @@ runs:
for FILE in ${{ inputs.nfpm_file_pattern }}; do
DIRNAME=$(dirname $FILE)
BASENAME=$(basename $FILE)
if [ -f $DIRNAME/env/.env.${{ inputs.distrib }} ]; then
source $DIRNAME/env/.env.${{ inputs.distrib }}
fi
cd $DIRNAME
sed -i "s/@COMMIT_HASH@/${{ inputs.commit_hash }}/g" $BASENAME
nfpm package --config $BASENAME --packager ${{ inputs.package_extension }}
Expand All @@ -76,7 +87,7 @@ runs:
shell: bash

- name: Cache packages
uses: actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache/save@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ./*.${{ inputs.package_extension }}
key: ${{ inputs.cache_key }}
7 changes: 5 additions & 2 deletions .github/actions/promote-to-stable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ inputs:
repository_name:
description: "The repository name"
required: true
github_base_ref:
description: "Release base ref"
required: true

runs:
using: "composite"
Expand All @@ -41,7 +44,7 @@ runs:

# Cloud specific promote
# delivery by default to onprem, override to internal if base branch is master
if [[ $GITHUB_BASE_REF == "master" ]]; then
if [[ ${{ inputs.github_base_ref }} == "master" ]]; then
ROOT_REPO_PATH="rpm-standard-internal"
else
ROOT_REPO_PATH="rpm-standard"
Expand Down Expand Up @@ -75,7 +78,7 @@ runs:
shell: bash

- name: Promote DEB packages to stable
if: ${{ startsWith(inputs.distrib, 'bullseye') }}
if: ${{ contains(fromJSON('["bullseye", "bookworm"]'), inputs.distrib) }}
run: |
echo "[DEBUG] - Major version: ${{ inputs.major_version }}"
echo "[DEBUG] - Minor version: ${{ inputs.minor_version }}"
Expand Down
6 changes: 4 additions & 2 deletions .github/docker/Dockerfile.centreon-collect-alma8
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG REGISTRY_URL

FROM ${REGISTRY_URL}/almalinux:8

RUN <<EOF
RUN bash -e <<EOF

# Base dnf configuration.
echo 'http_caching=none' >> /etc/yum.conf && \
Expand Down Expand Up @@ -55,14 +55,16 @@ dnf install -y cmake \

dnf update libarchive

dnf clean all

pip3 install conan==1.61.0 --prefix=/usr --upgrade
rm -rf ~/.conan/profiles/default

EOF

COPY conanfile.txt .

RUN <<EOF
RUN bash -e <<EOF

cat conanfile.txt
conan install . -s compiler.cppstd=17 -s compiler.libcxx=libstdc++11 --build=missing
Expand Down
6 changes: 4 additions & 2 deletions .github/docker/Dockerfile.centreon-collect-alma9
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG REGISTRY_URL

FROM ${REGISTRY_URL}/almalinux:9

RUN <<EOF
RUN bash -e <<EOF

# Base dnf configuration.
echo 'http_caching=none' >> /etc/yum.conf
Expand Down Expand Up @@ -48,14 +48,16 @@ dnf --best install -y cmake \
nfpm \
sudo

dnf clean all

pip3 install conan==1.61.0 --prefix=/usr --upgrade
rm -rf ~/.conan/profiles/default

EOF

COPY conanfile.txt .

RUN <<EOF
RUN bash -e <<EOF

cat conanfile.txt
conan install . -s compiler.cppstd=17 -s compiler.libcxx=libstdc++11 --build=missing
Expand Down
4 changes: 3 additions & 1 deletion .github/docker/Dockerfile.centreon-collect-alma9-test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${REGISTRY_URL}/almalinux:9

COPY . /tmp/collect

RUN <<EOF
RUN bash -e <<EOF

# Base dnf configuration.
echo 'http_caching=none' >> /etc/yum.conf
Expand Down Expand Up @@ -38,6 +38,8 @@ dnf --best install -y \
psmisc \
sudo

dnf clean all

echo "install robot and dependencies"

pip3 install -U robotframework robotframework-databaselibrary robotframework-httpctrl robotframework-examples pymysql python-dateutil psutil
Expand Down
59 changes: 59 additions & 0 deletions .github/docker/Dockerfile.centreon-collect-debian-bookworm
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
ARG REGISTRY_URL

FROM ${REGISTRY_URL}/debian:bookworm

RUN bash -e <<EOF

apt-get update

apt-get -y install cmake \
git \
curl \
gcc \
g++ \
gdb \
pkg-config \
ninja-build \
mariadb-server \
openssh-server \
libmariadb3 \
librrd-dev \
libgnutls28-dev \
liblua5.3-dev \
python3 \
python3-pip \
libperl-dev \
libgcrypt20-dev \
aptitude \
fakeroot \
strace \
locales \
rrdtool \
rrdcached \
zstd \
sudo

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

apt-get clean

localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

pip3 install --break-system-packages conan==1.61.0
ln -s /usr/local/bin/conan /usr/bin/conan
rm -rf ~/.conan/profiles/default

EOF

COPY conanfile.txt .

RUN bash -e <<EOF

cat conanfile.txt
conan install . -s compiler.cppstd=17 -s compiler.libcxx=libstdc++11 --build='missing'

EOF

WORKDIR /src
50 changes: 50 additions & 0 deletions .github/docker/Dockerfile.centreon-collect-debian-bookworm-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
ARG REGISTRY_URL

FROM ${REGISTRY_URL}/debian:bookworm

COPY . /tmp/collect

RUN bash -e <<EOF

apt-get update

apt-get -y install curl \
gcc \
g++ \
gdb \
git \
mariadb-server \
openssh-server \
libmariadb3 \
librrd8 \
libgnutlsxx30 \
liblua5.3 \
python3 \
python3-dev \
python3-pip \
libperl-dev \
libgcrypt20 \
aptitude \
strace \
locales \
rrdtool \
rrdcached \
zstd \
psmisc \
sudo

apt-get clean

localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

pip3 install --break-system-packages -U robotframework robotframework-databaselibrary robotframework-httpctrl robotframework-examples pymysql python-dateutil psutil
pip3 install --break-system-packages grpcio grpcio_tools py-cpuinfo cython unqlite gitpython boto3

cd /tmp/collect

.github/scripts/collect-prepare-test-robot.sh mariadb

/bin/rm -rf /tmp/collect

EOF

13 changes: 3 additions & 10 deletions .github/docker/Dockerfile.centreon-collect-debian-bullseye
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ ARG REGISTRY_URL

FROM ${REGISTRY_URL}/debian:bullseye

RUN <<EOF
RUN bash -e <<EOF

apt-get update

apt-get -y install cmake \
git \
curl \
gcc \
g++ \
Expand All @@ -23,14 +24,8 @@ apt-get -y install cmake \
python3-pip \
libperl-dev \
libgcrypt20-dev \
dh-make \
aptitude \
lintian \
pbuilder \
quilt \
git-buildpackage \
debmake \
devscripts \
fakeroot \
strace \
locales \
Expand All @@ -47,8 +42,6 @@ apt-get clean

localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
pip3 install conan==1.61.0
ln -s /usr/local/bin/conan /usr/bin/conan
rm -rf ~/.conan/profiles/default
Expand All @@ -57,7 +50,7 @@ EOF

COPY conanfile.txt .

RUN <<EOF
RUN bash -e <<EOF

cat conanfile.txt
conan install . -s compiler.cppstd=17 -s compiler.libcxx=libstdc++11 --build='missing'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ ARG REGISTRY_URL

FROM ${REGISTRY_URL}/debian:bullseye


COPY . /tmp/collect

RUN <<EOF
RUN bash -e <<EOF

apt-get update

Expand Down Expand Up @@ -34,15 +33,13 @@ apt-get -y install curl \
psmisc \
sudo

localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
apt-get clean

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8

pip3 install -U robotframework robotframework-databaselibrary robotframework-httpctrl robotframework-examples pymysql python-dateutil psutil
pip3 install grpcio grpcio_tools py-cpuinfo cython unqlite gitpython boto3


cd /tmp/collect

.github/scripts/collect-prepare-test-robot.sh mariadb
Expand Down
Loading
Loading