@@ -13,11 +13,14 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
outputs :
15
15
matrix : ${{ steps.set-matrix.outputs.matrix }}
16
+ label : ${{ steps.set-matrix.outputs.label }}
16
17
steps :
17
18
- uses : actions/checkout@v4
18
19
- id : set-matrix
19
20
# See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#example-returning-a-json-object
20
- run : echo "matrix=$(cat yum.matrix.json | jq --compact-output)" >> $GITHUB_OUTPUT
21
+ run : |
22
+ echo "matrix=$(cat yum.matrix.json | jq --compact-output)" >> $GITHUB_OUTPUT
23
+ echo "label=$(cat yum.matrix.json | jq '[.include[].label]' --compact-output)" >> $GITHUB_OUTPUT
21
24
working-directory : .github/workflows/
22
25
build :
23
26
needs : define-matrix
@@ -273,16 +276,13 @@ jobs:
273
276
274
277
v2test :
275
278
name : Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V2)
276
- needs : [check_package_size, installation_test, serverspec_test, confluent_test, binstubs_test]
279
+ needs : [define-matrix, check_package_size, installation_test, serverspec_test, confluent_test, binstubs_test]
277
280
runs-on : ubuntu-latest
278
281
timeout-minutes : 15
279
282
strategy :
280
283
fail-fast : false
281
284
matrix :
282
- label :
283
- - RockyLinux 8 x86_64
284
- - AlmaLinux 9 x86_64
285
- - AmazonLinux 2023 x86_64
285
+ label : ${{ fromJSON(needs.define-matrix.outputs.label) }}
286
286
test :
287
287
- " update-from-v4.sh"
288
288
- " update-from-v4.sh via-v5"
@@ -309,25 +309,46 @@ jobs:
309
309
- " update-without-data-lost.sh v6 v7"
310
310
- " update-without-data-lost.sh v7 v6"
311
311
- " obsolete-plugins.sh"
312
- include :
313
- - label : RockyLinux 8 x86_64
314
- rake-job : rockylinux-8
315
- container-image : images:rockylinux/8
316
- - label : AlmaLinux 9 x86_64
317
- rake-job : almalinux-9
318
- container-image : images:almalinux/9
319
- - label : AmazonLinux 2023 x86_64
320
- rake-job : amazonlinux-2023
321
- container-image : images:amazonlinux/2023
312
+ include : ${{ fromJSON(needs.define-matrix.outputs.matrix).include }}
322
313
exclude :
323
- - label : AmazonLinux 2023 x86_64
314
+ - label : Amazon Linux 2023 x86_64
315
+ test : update-from-v4.sh
316
+ - label : Amazon Linux 2023 x86_64
317
+ test : update-from-v4.sh via-v5
318
+ - label : Amazon Linux 2023 x86_64
319
+ test : update-to-next-version-with-backward-compat-for-v4.sh
320
+ - label : Amazon Linux 2023 x86_64
321
+ test : downgrade-to-v4.sh
322
+ - label : AlmaLinux 10 x86_64
324
323
test : update-from-v4.sh
325
- - label : AmazonLinux 2023 x86_64
324
+ - label : AlmaLinux 10 x86_64
326
325
test : update-from-v4.sh via-v5
327
- - label : AmazonLinux 2023 x86_64
326
+ - label : AlmaLinux 10 x86_64
327
+ test : update-from-v5-lts.sh
328
+ - label : AlmaLinux 10 x86_64
328
329
test : update-to-next-version-with-backward-compat-for-v4.sh
329
- - label : AmazonLinux 2023 x86_64
330
+ - label : AlmaLinux 10 x86_64
330
331
test : downgrade-to-v4.sh
332
+ - label : AlmaLinux 10 x86_64
333
+ 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
339
+ # rpmrebuild is not supported on EPEL for AlmaLinux 10 yet
340
+ - label : AlmaLinux 10 x86_64
341
+ test : update-to-next-version.sh
342
+ - label : AlmaLinux 10 x86_64
343
+ test : update-to-next-version-service-status.sh enabled active
344
+ - label : AlmaLinux 10 x86_64
345
+ test : update-to-next-version-service-status.sh enabled inactive
346
+ - label : AlmaLinux 10 x86_64
347
+ test : update-to-next-version-service-status.sh disabled active
348
+ - label : AlmaLinux 10 x86_64
349
+ test : update-to-next-version-service-status.sh disabled inactive
350
+ - label : AlmaLinux 10 x86_64
351
+ test : update-to-next-version-with-auto-and-manual.sh
331
352
steps :
332
353
- uses : actions/checkout@v4
333
354
- uses : actions/download-artifact@v4
@@ -352,37 +373,24 @@ jobs:
352
373
- name : Setup Incus
353
374
run : |
354
375
sudo incus admin init --auto
355
- - name : Run Test ${{ matrix.test }} on ${{ matrix.container -image }}
356
- run : fluent-package/yum/systemd-test/test.sh ${{ matrix.container -image }} ${{ matrix.test }}
376
+ - name : Run Test ${{ matrix.test }} on ${{ matrix.test-incus -image }}
377
+ run : fluent-package/yum/systemd-test/test.sh ${{ matrix.test-incus -image }} ${{ matrix.test }}
357
378
358
379
fluent-release-test :
359
380
name : Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V2)
360
- needs : [v2test]
381
+ needs : [define-matrix, v2test]
361
382
runs-on : ubuntu-latest
362
383
timeout-minutes : 15
363
384
strategy :
364
385
fail-fast : false
365
386
matrix :
366
- label :
367
- - RockyLinux 8 x86_64
368
- - AlmaLinux 9 x86_64
369
- # - AlmaLinux 10 x86_64
370
- - AmazonLinux 2023 x86_64
387
+ label : ${{ fromJSON(needs.define-matrix.outputs.label) }}
371
388
test :
372
389
- install-from-r2.sh
373
- include :
374
- - label : RockyLinux 8 x86_64
375
- rake-job : rockylinux-8
376
- container-image : images:rockylinux/8
377
- - label : AlmaLinux 9 x86_64
378
- rake-job : almalinux-9
379
- container-image : images:almalinux/9
380
- # - label: AlmaLinux 10 x86_64
381
- # rake-job: almalinux-10
382
- # container-image: images:almalinux/10
383
- - label : AmazonLinux 2023 x86_64
384
- rake-job : amazonlinux-2023
385
- container-image : images:amazonlinux/2023
390
+ include : ${{ fromJSON(needs.define-matrix.outputs.matrix).include }}
391
+ exclude :
392
+ # There are no released for AlmaLinux 10 x86_64 yet
393
+ - lable : AlmaLinux 10 x86_64
386
394
steps :
387
395
- uses : actions/checkout@v4
388
396
- uses : actions/download-artifact@v4
@@ -400,5 +408,5 @@ jobs:
400
408
- name : Setup Incus
401
409
run : |
402
410
sudo incus admin init --auto
403
- - name : Run Test ${{matrix.test}} on ${{ matrix.container -image }}
404
- run : fluent-release/yum/systemd-test/test.sh ${{ matrix.container -image }} ${{ matrix.test }}
411
+ - name : Run Test ${{matrix.test}} on ${{ matrix.test-incus -image }}
412
+ run : fluent-release/yum/systemd-test/test.sh ${{ matrix.test-incus -image }} ${{ matrix.test }}
0 commit comments