Skip to content

Commit 34cb795

Browse files
committed
enh(ci): add installation/uninstallation test for stream-connectors
1 parent b2dcaf7 commit 34cb795

5 files changed

Lines changed: 222 additions & 173 deletions

File tree

.github/actions/test-packages/action.yml

Lines changed: 111 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -38,115 +38,117 @@ runs:
3838
CENTREON_VERSION="26.10" # el10 - repo not yet available
3939
fi
4040
# Add Centreon plugins and standard repositories
41-
{
42-
echo '[centreon-plugins-stable]'
43-
echo 'name=centreon plugins stable x86_64'
44-
echo "baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/stable/x86_64"
45-
echo 'enabled=1'
46-
echo 'gpgcheck=1'
47-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
48-
echo ''
49-
echo '[centreon-plugins-stable-noarch]'
50-
echo 'name=centreon plugins stable noarch'
51-
echo "baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/stable/noarch"
52-
echo 'enabled=1'
53-
echo 'gpgcheck=1'
54-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
55-
echo ''
56-
echo '[centreon-plugins-testing]'
57-
echo 'name=centreon plugins testing x86_64'
58-
echo "baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/testing/x86_64"
59-
echo 'enabled=1'
60-
echo 'gpgcheck=1'
61-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
62-
echo ''
63-
echo '[centreon-plugins-testing-noarch]'
64-
echo 'name=centreon plugins testing noarch'
65-
echo "baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/testing/noarch"
66-
echo 'enabled=1'
67-
echo 'gpgcheck=1'
68-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
69-
echo ''
70-
echo '[centreon-plugins-unstable]'
71-
echo 'name=centreon plugins unstable x86_64'
72-
echo "baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/unstable/x86_64"
73-
echo 'enabled=1'
74-
echo 'gpgcheck=1'
75-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
76-
echo ''
77-
echo '[centreon-plugins-unstable-noarch]'
78-
echo 'name=centreon plugins unstable noarch'
79-
echo "baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/unstable/noarch"
80-
echo 'enabled=1'
81-
echo 'gpgcheck=1'
82-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
83-
if [[ "$TEST_TYPE" != "dependency" ]]; then
84-
echo ''
85-
echo "[centreon-${CENTREON_VERSION}-stable]"
86-
echo 'name=Centreon open source software repository.'
87-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/stable/x86_64/"
88-
echo 'enabled=1'
89-
echo 'gpgcheck=1'
90-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
91-
echo 'module_hotfixes=1'
92-
echo ''
93-
echo "[centreon-${CENTREON_VERSION}-stable-noarch]"
94-
echo 'name=Centreon open source software repository.'
95-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/stable/noarch/"
96-
echo 'enabled=1'
97-
echo 'gpgcheck=1'
98-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
99-
echo 'module_hotfixes=1'
100-
echo ''
101-
echo "[centreon-${CENTREON_VERSION}-testing-release]"
102-
echo 'name=Centreon open source software repository.'
103-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-release/x86_64/"
104-
echo 'enabled=1'
105-
echo 'gpgcheck=1'
106-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
107-
echo 'module_hotfixes=1'
108-
echo ''
109-
echo "[centreon-${CENTREON_VERSION}-testing-release-noarch]"
110-
echo 'name=Centreon open source software repository.'
111-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-release/noarch/"
112-
echo 'enabled=1'
113-
echo 'gpgcheck=1'
114-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
115-
echo 'module_hotfixes=1'
116-
echo ''
117-
echo "[centreon-${CENTREON_VERSION}-testing-hotfix]"
118-
echo 'name=Centreon open source software repository.'
119-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-hotfix/x86_64/"
120-
echo 'enabled=1'
121-
echo 'gpgcheck=1'
122-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
123-
echo 'module_hotfixes=1'
124-
echo ''
125-
echo "[centreon-${CENTREON_VERSION}-testing-hotfix-noarch]"
126-
echo 'name=Centreon open source software repository.'
127-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-hotfix/noarch/"
128-
echo 'enabled=1'
129-
echo 'gpgcheck=1'
130-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
131-
echo 'module_hotfixes=1'
132-
echo ''
133-
echo "[centreon-${CENTREON_VERSION}-unstable]"
134-
echo 'name=Centreon open source software repository.'
135-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/unstable/x86_64/"
136-
echo 'enabled=1'
137-
echo 'gpgcheck=1'
138-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
139-
echo 'module_hotfixes=1'
140-
echo ''
141-
echo "[centreon-${CENTREON_VERSION}-unstable-noarch]"
142-
echo 'name=Centreon open source software repository.'
143-
echo "baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/unstable/noarch/"
144-
echo 'enabled=1'
145-
echo 'gpgcheck=1'
146-
echo 'gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES'
147-
echo 'module_hotfixes=1'
148-
fi
149-
} > /etc/yum.repos.d/centreon-plugins.repo
41+
cat > /etc/yum.repos.d/centreon-plugins.repo << EOF
42+
[centreon-plugins-stable]
43+
name=centreon plugins stable x86_64
44+
baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/stable/x86_64
45+
enabled=1
46+
gpgcheck=1
47+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
48+
49+
[centreon-plugins-stable-noarch]
50+
name=centreon plugins stable noarch
51+
baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/stable/noarch
52+
enabled=1
53+
gpgcheck=1
54+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
55+
56+
[centreon-plugins-testing]
57+
name=centreon plugins testing x86_64
58+
baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/testing/x86_64
59+
enabled=1
60+
gpgcheck=1
61+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
62+
63+
[centreon-plugins-testing-noarch]
64+
name=centreon plugins testing noarch
65+
baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/testing/noarch
66+
enabled=1
67+
gpgcheck=1
68+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
69+
70+
[centreon-plugins-unstable]
71+
name=centreon plugins unstable x86_64
72+
baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/unstable/x86_64
73+
enabled=1
74+
gpgcheck=1
75+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
76+
77+
[centreon-plugins-unstable-noarch]
78+
name=centreon plugins unstable noarch
79+
baseurl=https://packages.centreon.com/rpm-plugins/$DISTRIB/unstable/noarch
80+
enabled=1
81+
gpgcheck=1
82+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
83+
EOF
84+
if [[ "$TEST_TYPE" != "dependency" ]]; then
85+
cat >> /etc/yum.repos.d/centreon-plugins.repo << EOF
86+
87+
[centreon-${CENTREON_VERSION}-stable]
88+
name=Centreon open source software repository.
89+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/stable/x86_64/
90+
enabled=1
91+
gpgcheck=1
92+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
93+
module_hotfixes=1
94+
95+
[centreon-${CENTREON_VERSION}-stable-noarch]
96+
name=Centreon open source software repository.
97+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/stable/noarch/
98+
enabled=1
99+
gpgcheck=1
100+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
101+
module_hotfixes=1
102+
103+
[centreon-${CENTREON_VERSION}-testing-release]
104+
name=Centreon open source software repository.
105+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-release/x86_64/
106+
enabled=1
107+
gpgcheck=1
108+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
109+
module_hotfixes=1
110+
111+
[centreon-${CENTREON_VERSION}-testing-release-noarch]
112+
name=Centreon open source software repository.
113+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-release/noarch/
114+
enabled=1
115+
gpgcheck=1
116+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
117+
module_hotfixes=1
118+
119+
[centreon-${CENTREON_VERSION}-testing-hotfix]
120+
name=Centreon open source software repository.
121+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-hotfix/x86_64/
122+
enabled=1
123+
gpgcheck=1
124+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
125+
module_hotfixes=1
126+
127+
[centreon-${CENTREON_VERSION}-testing-hotfix-noarch]
128+
name=Centreon open source software repository.
129+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/testing-hotfix/noarch/
130+
enabled=1
131+
gpgcheck=1
132+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
133+
module_hotfixes=1
134+
135+
[centreon-${CENTREON_VERSION}-unstable]
136+
name=Centreon open source software repository.
137+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/unstable/x86_64/
138+
enabled=1
139+
gpgcheck=1
140+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
141+
module_hotfixes=1
142+
143+
[centreon-${CENTREON_VERSION}-unstable-noarch]
144+
name=Centreon open source software repository.
145+
baseurl=https://packages.centreon.com/rpm-standard/${CENTREON_VERSION}/$DISTRIB/unstable/noarch/
146+
enabled=1
147+
gpgcheck=1
148+
gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES
149+
module_hotfixes=1
150+
EOF
151+
fi
150152
shell: bash
151153

152154
- if: ${{ inputs.package_extension == 'deb' }}

.github/workflows/stream-connectors-lib.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,28 @@ jobs:
3333

3434
strategy:
3535
fail-fast: false
36+
max-parallel: 25
3637
matrix:
37-
distrib: [el8, el9, el10, bullseye, bookworm, trixie, jammy, noble]
38+
distrib: [el8, el9, bullseye, bookworm, jammy, noble] #, el10, trixie]
3839
include:
3940
- package_extension: rpm
4041
image: packaging-stream-connectors-nfpm-alma8
4142
distrib: el8
4243
- package_extension: rpm
4344
image: packaging-stream-connectors-nfpm-alma9
4445
distrib: el9
45-
- package_extension: rpm
46-
image: packaging-stream-connectors-nfpm-alma10
47-
distrib: el10
46+
# - package_extension: rpm
47+
# image: packaging-stream-connectors-nfpm-alma10
48+
# distrib: el10
4849
- package_extension: deb
4950
image: packaging-stream-connectors-nfpm-bullseye
5051
distrib: bullseye
5152
- package_extension: deb
5253
image: packaging-stream-connectors-nfpm-bookworm
5354
distrib: bookworm
54-
- package_extension: deb
55-
image: packaging-stream-connectors-nfpm-trixie
56-
distrib: trixie
55+
# - package_extension: deb
56+
# image: packaging-stream-connectors-nfpm-trixie
57+
# distrib: trixie
5758
- package_extension: deb
5859
image: packaging-stream-connectors-nfpm-jammy
5960
distrib: jammy
@@ -104,7 +105,7 @@ jobs:
104105
- package_extension: rpm
105106
image: almalinux:9
106107
distrib: el9
107-
# - package_extension: rpm
108+
# - package_extension: rpm # Centreon 26.10 repo not yet available
108109
# image: almalinux:10
109110
# distrib: el10
110111
- package_extension: deb
@@ -113,7 +114,7 @@ jobs:
113114
- package_extension: deb
114115
image: debian:bookworm
115116
distrib: bookworm
116-
# - package_extension: deb
117+
# - package_extension: deb # Centreon 26.10 repo not yet available
117118
# image: debian:trixie
118119
# distrib: trixie
119120
- package_extension: deb
@@ -172,7 +173,7 @@ jobs:
172173
runs-on: ubuntu-24.04
173174
strategy:
174175
matrix:
175-
distrib: [bullseye, bookworm, jammy, noble] #, trixie, jammy, noble]
176+
distrib: [bullseye, bookworm, jammy, noble] #, trixie]
176177
name: deliver ${{ matrix.distrib }}
177178

178179
steps:

.github/workflows/stream-connectors.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
runs-on: ubuntu-24.04
7777
strategy:
7878
matrix:
79-
distrib: [el8, el9, el10, bullseye, bookworm, trixie, jammy, noble]
79+
distrib: [el8, el9, bullseye, bookworm, jammy, noble] # ,el10, trixie]
8080
connector_path: ${{ fromJson(needs.detect-changes.outputs.connectors) }}
8181
include:
8282
- distrib: el8
@@ -85,18 +85,18 @@ jobs:
8585
- distrib: el9
8686
image: packaging-stream-connectors-nfpm-alma9
8787
package_extension: rpm
88-
- distrib: el10
89-
image: packaging-stream-connectors-nfpm-alma10
90-
package_extension: rpm
88+
# - distrib: el10
89+
# image: packaging-stream-connectors-nfpm-alma10
90+
# package_extension: rpm
9191
- distrib: bullseye
9292
image: packaging-stream-connectors-nfpm-bullseye
9393
package_extension: deb
9494
- distrib: bookworm
9595
image: packaging-stream-connectors-nfpm-bookworm
9696
package_extension: deb
97-
- distrib: trixie
98-
image: packaging-stream-connectors-nfpm-trixie
99-
package_extension: deb
97+
# - distrib: trixie
98+
# image: packaging-stream-connectors-nfpm-trixie
99+
# package_extension: deb
100100
- distrib: jammy
101101
image: packaging-stream-connectors-nfpm-jammy
102102
package_extension: deb
@@ -169,12 +169,11 @@ jobs:
169169
artifact_name: "package-${{ matrix.connector_path }}-${{ matrix.distrib }}"
170170

171171
test-packages:
172-
if: false
173172
needs: [get-environment, detect-changes, package]
174173
strategy:
175174
fail-fast: false
176175
matrix:
177-
distrib: [el8, el9, el10, bullseye, bookworm, trixie, jammy, noble]
176+
distrib: [el8, el9, bullseye, bookworm, jammy, noble] #, el10, trixie]
178177
connector_path: ${{ fromJson(needs.detect-changes.outputs.connectors) }}
179178
include:
180179
- distrib: el8
@@ -183,7 +182,7 @@ jobs:
183182
- distrib: el9
184183
package_extension: rpm
185184
image: almalinux:9
186-
# - distrib: el10
185+
# - distrib: el10 # Centreon 26.10 repo not yet available
187186
# package_extension: rpm
188187
# image: almalinux:10
189188
- distrib: bullseye
@@ -192,7 +191,7 @@ jobs:
192191
- distrib: bookworm
193192
package_extension: deb
194193
image: debian:bookworm
195-
# - distrib: trixie
194+
# - distrib: trixie # Centreon 26.10 repo not yet available
196195
# package_extension: deb
197196
# image: debian:trixie
198197
- distrib: jammy
@@ -252,7 +251,7 @@ jobs:
252251
runs-on: ubuntu-24.04
253252
strategy:
254253
matrix:
255-
distrib: [bullseye, bookworm, jammy, noble] #, trixie, jammy, noble]
254+
distrib: [bullseye, bookworm, jammy, noble] #, trixie]
256255
connector_path: ${{ fromJson(needs.detect-changes.outputs.connectors) }}
257256
name: Deliver ${{ matrix.distrib }} ${{ matrix.connector_path }}
258257

0 commit comments

Comments
 (0)