Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions .github/workflows/apt.matrix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"include": [
{
"label": "Debian bullseye amd64",
"rake-job": "debian-bullseye",
"test-docker-image": "debian:bullseye"
},
{
"label": "Debian bookworm amd64",
"rake-job": "debian-bookworm",
"test-docker-image": "debian:bookworm"
},
{
"label": "Ubuntu Focal amd64",
"rake-job": "ubuntu-focal",
"test-docker-image": "ubuntu:focal"
},
{
"label": "Ubuntu Jammy amd64",
"rake-job": "ubuntu-jammy",
"test-docker-image": "ubuntu:jammy"
},
{
"label": "Ubuntu Noble amd64",
"rake-job": "ubuntu-noble",
"test-docker-image": "ubuntu:noble"
}
]
}
119 changes: 93 additions & 26 deletions .github/workflows/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,23 @@ concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
define-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
# 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
run: echo "matrix=$(cat apt.matrix.json | jq --compact-output)" >> $GITHUB_OUTPUT
working-directory: .github/workflows/
build:
name: Build
timeout-minutes: 60
timeout-minutes: 120
needs: define-matrix
strategy:
fail-fast: false
matrix:
label:
- Debian bullseye amd64
- Debian bookworm amd64
- Ubuntu Focal amd64
- Ubuntu Jammy amd64
- Ubuntu Noble amd64
include:
- label: Debian bullseye amd64
rake-job: debian-bullseye
test-docker-image: debian:bullseye
- label: Debian bookworm amd64
rake-job: debian-bookworm
test-docker-image: debian:bookworm
- label: Ubuntu Focal amd64
rake-job: ubuntu-focal
test-docker-image: ubuntu:focal
- label: Ubuntu Jammy amd64
rake-job: ubuntu-jammy
test-docker-image: ubuntu:jammy
- label: Ubuntu Noble amd64
rake-job: ubuntu-noble
test-docker-image: ubuntu:noble
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -64,10 +53,36 @@ jobs:
with:
name: packages-lts-apt-source-${{ matrix.rake-job }}
path: fluent-lts-apt-source/apt/repositories
# TODO move the following steps to "Test" job

check_package_size:
name: Check Package Size
runs-on: ubuntu-latest
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-${{ matrix.rake-job }}
path: fluent-package/apt/repositories
- name: Check Package Size
run: |
fluent-package/apt/pkgsize-test.sh ${{ matrix.rake-job }} amd64
installation_test:
name: Installation Test
runs-on: ubuntu-latest
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-${{ matrix.rake-job }}
path: fluent-package/apt/repositories
- name: Installation Test
run: |
mkdir -p .bundle
Expand All @@ -77,6 +92,19 @@ jobs:
--volume ${PWD}:/fluentd:ro \
${{ matrix.test-docker-image }} \
/fluentd/fluent-package/apt/install-test.sh
piuparts_test:
name: Piuparts Test
runs-on: ubuntu-latest
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-${{ matrix.rake-job }}
path: fluent-package/apt/repositories
- name: Piuparts (Install/Remove/Upgrade) Test
run: |
mkdir -p .bundle
Expand All @@ -87,6 +115,19 @@ jobs:
--volume ${PWD}:/fluentd:ro \
${{ matrix.test-docker-image }} \
/fluentd/fluent-package/apt/piuparts-test.sh
serverspec_test:
name: Serverspec Test
runs-on: ubuntu-latest
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-${{ matrix.rake-job }}
path: fluent-package/apt/repositories
- name: Serverspec Test
run: |
mkdir -p .bundle
Expand All @@ -96,6 +137,19 @@ jobs:
--volume ${PWD}:/fluentd:ro \
${{ matrix.test-docker-image }} \
/fluentd/fluent-package/apt/serverspec-test.sh
confluent_test:
name: Confluent Test
runs-on: ubuntu-latest
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-${{ matrix.rake-job }}
path: fluent-package/apt/repositories
- name: Confluent Test
run: |
mkdir -p .bundle
Expand All @@ -105,6 +159,19 @@ jobs:
--volume ${PWD}:/fluentd:ro \
${{ matrix.test-docker-image }} \
/fluentd/fluent-package/apt/confluent-test.sh
binstubs_test:
name: Binstubs Test
needs: [define-matrix, build]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-${{ matrix.rake-job }}
path: fluent-package/apt/repositories
- name: Binstubs Test
run: |
mkdir -p .bundle
Expand All @@ -116,7 +183,7 @@ jobs:
/fluentd/fluent-package/apt/binstubs-test.sh
test:
name: Test ${{ matrix.label }} ${{ matrix.test-file }}
needs: build
needs: [check_package_size, installation_test, piuparts_test, serverspec_test, confluent_test, binstubs_test]
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,30 @@ jobs:
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
check_package_size:
name: Check Package Size
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Check Package Size
shell: pwsh
run: |
powershell -ExecutionPolicy Bypass -Command ".\fluent-package\msi\pkgsize-test.ps1"
installation_test:
name: Installation Test
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Installation Test
shell: pwsh
run: |
Expand All @@ -52,6 +72,16 @@ jobs:
--volume ${PWD}:C:\fluentd:ro `
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\install-test.ps1"
update_from_v4_test:
name: Migration From v4 Test
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Migration From v4 Test
shell: pwsh
run: |
Expand All @@ -61,6 +91,16 @@ jobs:
--volume ${PWD}:C:\fluentd:ro `
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\update-from-v4-test.ps1"
update_from_v5_test:
name: Update From v5 Test
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Update From v5 Test
shell: pwsh
run: |
Expand All @@ -70,6 +110,16 @@ jobs:
--volume ${PWD}:C:\fluentd:ro `
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\update-from-v5-test.ps1"
serverspec_test:
name: Serverspec Test
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Serverspec Test
shell: pwsh
run: |
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/yum.matrix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"include": [
{
"label": "RockyLinux 8 x86_64",
"rake-job": "rockylinux-8",
"test-docker-image": "rockylinux:8",
"centos-stream": false
},
{
"label": "AlmaLinux 9 x86_64",
"rake-job": "almalinux-9",
"test-docker-image": "almalinux:9",
"centos-stream": false
},
{
"label": "Amazon Linux 2 x86_64",
"rake-job": "amazonlinux-2",
"test-docker-image": "amazonlinux:2",
"centos-stream": false
},
{
"label": "Amazon Linux 2023 x86_64",
"rake-job": "amazonlinux-2023",
"test-docker-image": "amazonlinux:2023",
"centos-stream": false
}
]
}
Loading
Loading