Skip to content

Commit 3401ea6

Browse files
committed
ci: add v6 remote install tests for RPM
Signed-off-by: Daijiro Fukuda <[email protected]>
1 parent c7cac9d commit 3401ea6

File tree

4 files changed

+40
-19
lines changed

4 files changed

+40
-19
lines changed

.github/workflows/yum.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,13 @@ jobs:
286286
test:
287287
- "update-from-v4.sh"
288288
- "update-from-v4.sh via-v5"
289-
- "update-from-v5-lts.sh"
289+
- "update-from-v5-lts.sh local"
290+
- "update-from-v5-lts.sh v6"
291+
- "update-from-v5-lts.sh lts"
290292
- "downgrade-to-v4.sh"
291293
- "downgrade-to-v5-lts.sh"
292294
- "install-newly.sh local"
293-
- "install-newly.sh v5"
294-
#- "install-newly.sh v6"
295+
- "install-newly.sh v6"
295296
- "install-newly.sh lts"
296297
- "update-to-next-version.sh"
297298
- "update-to-next-version-with-backward-compat-for-v4.sh"
@@ -324,18 +325,17 @@ jobs:
324325
- label: AlmaLinux 10 x86_64
325326
test: update-from-v4.sh via-v5
326327
- label: AlmaLinux 10 x86_64
327-
test: update-from-v5-lts.sh
328+
test: update-from-v5-lts.sh local
329+
- label: AlmaLinux 10 x86_64
330+
test: update-from-v5-lts.sh v6
331+
- label: AlmaLinux 10 x86_64
332+
test: update-from-v5-lts.sh lts
328333
- label: AlmaLinux 10 x86_64
329334
test: update-to-next-version-with-backward-compat-for-v4.sh
330335
- label: AlmaLinux 10 x86_64
331336
test: downgrade-to-v4.sh
332337
- label: AlmaLinux 10 x86_64
333338
test: downgrade-to-v5-lts.sh
334-
- label: AlmaLinux 10 x86_64
335-
test: install-newly.sh v5
336-
# After replacing to v6 lts test, this condition should be removed
337-
- label: AlmaLinux 10 x86_64
338-
test: install-newly.sh lts
339339
# rpmrebuild is not supported on EPEL for AlmaLinux 10 yet
340340
- label: AlmaLinux 10 x86_64
341341
test: update-to-next-version.sh

fluent-package/yum/systemd-test/common.sh

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,31 @@ function install_v6()
106106
case "$DISTRIBUTION_VERSION" in
107107
2023)
108108
curl --fail --silent --show-error --location \
109-
https://toolbelt.treasuredata.com/sh/install-amazon2023-fluent-package6.sh | sh
109+
https://fluentd.cdn.cncf.io/sh/install-amazon2023-fluent-package6.sh | sh
110110
;;
111-
2)
111+
esac
112+
;;
113+
*)
114+
curl --fail --silent --show-error --location \
115+
https://fluentd.cdn.cncf.io/sh/install-redhat-fluent-package6.sh | sh
116+
;;
117+
esac
118+
}
119+
120+
function install_v6_lts()
121+
{
122+
case "$DISTRIBUTION" in
123+
amazon)
124+
case "$DISTRIBUTION_VERSION" in
125+
2023)
112126
curl --fail --silent --show-error --location \
113-
https://toolbelt.treasuredata.com/sh/install-amazon2-fluent-package6.sh | sh
127+
https://fluentd.cdn.cncf.io/sh/install-amazon2023-fluent-package6-lts.sh | sh
114128
;;
115129
esac
116130
;;
117131
*)
118132
curl --fail --silent --show-error --location \
119-
https://toolbelt.treasuredata.com/sh/install-redhat-fluent-package6.sh | sh
133+
https://fluentd.cdn.cncf.io/sh/install-redhat-fluent-package6-lts.sh | sh
120134
;;
121135
esac
122136
}

fluent-package/yum/systemd-test/install-newly.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ case $1 in
88
local)
99
install_current
1010
;;
11-
v5)
12-
install_v5
13-
;;
1411
v6)
1512
install_v6
1613
;;
1714
lts)
18-
install_v5_lts
15+
install_v6_lts
1916
;;
2017
esac
2118

fluent-package/yum/systemd-test/update-from-v5-lts.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,18 @@ systemctl status --no-pager fluentd
1010
systemctl status --no-pager td-agent
1111
main_pid=$(eval $(systemctl show fluentd --property=MainPID) && echo $MainPID)
1212

13-
# Install the current without stopping the service to test automatic restart after update.
14-
install_current
13+
# Install without stopping the service to test automatic restart after update.
14+
case $1 in
15+
local)
16+
install_current
17+
;;
18+
v6)
19+
install_v6
20+
;;
21+
lts)
22+
install_v6_lts
23+
;;
24+
esac
1525

1626
# Test: take over enabled state
1727
systemctl is-enabled fluentd

0 commit comments

Comments
 (0)