-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: extract test file as element of matrix
Before: test.sh execute multiple test files. This behavior make it hard to distinct failure test cases. After: * Use test.sh as launch script. It doesn't execute multiple test files. This change was introduced to make it easy to distinct each test cases on error. * Use grouping log lines feature See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#grouping-log-lines Signed-off-by: Kentaro Hayashi <[email protected]>
- Loading branch information
Showing
4 changed files
with
142 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,13 @@ jobs: | |
- Debian GNU/Linux bookworm amd64 | ||
- Ubuntu Focal amd64 | ||
- Ubuntu Jammy amd64 | ||
test-file: | ||
- "update-from-v4.sh" | ||
- "update-to-next-version-with-backward-compat-for-v4.sh" | ||
- "downgrade-to-v4.sh" | ||
- "install-newly.sh local" | ||
- "install-newly.sh v5" | ||
- "install-newly.sh lts" | ||
include: | ||
- label: Debian GNU/Linux bullseye amd64 | ||
rake-job: debian-bullseye | ||
|
@@ -122,6 +129,13 @@ jobs: | |
- label: Ubuntu Jammy amd64 | ||
rake-job: ubuntu-jammy | ||
test-lxc-image: ubuntu:22.04 | ||
exclude: | ||
- label: Debian GNU/Linux bookworm amd64 | ||
test-file: update-from-v4.sh | ||
- label: Debian GNU/Linux bookworm amd64 | ||
test-file: update-to-next-version-with-backward-compat-for-v4.sh | ||
- label: Debian GNU/Linux bookworm amd64 | ||
test-file: downgrade-to-v4.sh | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/download-artifact@v4 | ||
|
@@ -131,5 +145,5 @@ jobs: | |
with: | ||
name: packages-apt-source-${{ matrix.rake-job }} | ||
- uses: canonical/[email protected] | ||
- name: Run Test | ||
run: fluent-package/apt/systemd-test/test.sh ${{ matrix.test-lxc-image }} | ||
- name: Run Test ${{ matrix.test-file }} on ${{ matrix.test-lxc-image }} | ||
run: fluent-package/apt/systemd-test/test.sh ${{ matrix.test-lxc-image }} ${{ matrix.test-file }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ jobs: | |
${{ matrix.test-docker-image }} \ | ||
/fluentd/fluent-package/yum/binstubs-test.sh | ||
v1test: | ||
name: Test with CGroup V1 | ||
name: Test (CGroup V1) | ||
needs: build | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
|
@@ -100,6 +100,13 @@ jobs: | |
- CentOS 7 x86_64 | ||
- AmazonLinux 2 x86_64 | ||
- AmazonLinux 2023 x86_64 | ||
test-file: | ||
- "update-from-v4.sh" | ||
- "update-to-next-version-with-backward-compat-for-v4.sh" | ||
- "downgrade-to-v4.sh" | ||
- "install-newly.sh local" | ||
- "install-newly.sh v5" | ||
- "install-newly.sh lts" | ||
include: | ||
- label: CentOS 7 x86_64 | ||
rake-job: centos-7 | ||
|
@@ -110,17 +117,24 @@ jobs: | |
- label: AmazonLinux 2023 x86_64 | ||
rake-job: amazonlinux-2023 | ||
test-lxc-image: images:amazonlinux/2023 | ||
exclude: | ||
- label: AmazonLinux 2023 x86_64 | ||
test-file: update-from-v4.sh | ||
- label: AmazonLinux 2023 x86_64 | ||
test-file: update-to-next-version-with-backward-compat-for-v4.sh | ||
- label: AmazonLinux 2023 x86_64 | ||
test-file: downgrade-to-v4.sh | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: packages-${{ matrix.rake-job }} | ||
- uses: canonical/[email protected] | ||
- name: Run Test | ||
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-lxc-image }} | ||
- name: Run Test ${{ matrix.test-file }} on ${{ matrix.test-lxc-image }} | ||
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-lxc-image }} ${{ matrix.test-file }} | ||
|
||
v2test: | ||
name: Test with CGroup V2 | ||
name: Test (CGroup V2) | ||
needs: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -129,6 +143,13 @@ jobs: | |
label: | ||
- RockyLinux 8 x86_64 | ||
- AlmaLinux 9 x86_64 | ||
test-file: | ||
- "update-from-v4.sh" | ||
- "update-to-next-version-with-backward-compat-for-v4.sh" | ||
- "downgrade-to-v4.sh" | ||
- "install-newly.sh local" | ||
- "install-newly.sh v5" | ||
- "install-newly.sh lts" | ||
include: | ||
- label: RockyLinux 8 x86_64 | ||
rake-job: rockylinux-8 | ||
|
@@ -142,5 +163,5 @@ jobs: | |
with: | ||
name: packages-${{ matrix.rake-job }} | ||
- uses: canonical/[email protected] | ||
- name: Run Test | ||
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-lxc-image }} | ||
- name: Run Test ${{ matrix.test-file }} on ${{ matrix.test-lxc-image }} | ||
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-lxc-image }} ${{ matrix.test-file }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters