Skip to content
Closed
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
6 changes: 0 additions & 6 deletions .github/workflows/env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ runs:
sudo apt-get install -y curl unzip gcc-aarch64-linux-gnu \
libc6-arm64-cross qemu-user-binfmt libc6:arm64 \
musl-dev:amd64 musl-dev:arm64 musl-tools binutils-aarch64-linux-gnu
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum
id: go
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand Down
47 changes: 43 additions & 4 deletions .github/workflows/unit-test-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/workflows/env
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache-dependency-path: go.sum
id: go
- name: Check for changes in licenses of dependencies
run: |
make legal
Expand All @@ -34,6 +41,13 @@ jobs:
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/workflows/env
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache-dependency-path: go.sum
id: go
- name: Get linter version
id: linter-version
run: (echo -n "version="; make linter-version) >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -61,6 +75,13 @@ jobs:
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/workflows/env
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
cache-dependency-path: go.sum
id: go
- name: Cache coredump modules
uses: actions/cache@v4
with:
Expand All @@ -73,6 +94,8 @@ jobs:
run: make rust-tests
- name: Tests
run: make test TARGET_ARCH=${{ matrix.target_arch }}
- name: sudo tests
run: make sudo-tests

check-ebpf-blobs:
name: Check for differences in the eBPF binary blobs
Expand All @@ -98,13 +121,21 @@ jobs:


build-integration-test-binaries:
name: Build integration test binaries (${{ matrix.target_arch }})
name: Build integration test binaries (${{ matrix.target_arch }}-${{ matrix.go_version}})
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
matrix:
target_arch: [amd64, arm64]
go_version: [1.23, 1.24]
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
check-latest: true
cache-dependency-path: go.sum
id: go
- name: Clone code
uses: actions/checkout@v4
- name: Set up environment
Expand All @@ -114,16 +145,17 @@ jobs:
- name: Upload integration test binaries
uses: actions/upload-artifact@v4
with:
name: integration-test-binaries-${{ matrix.target_arch }}
name: integration-test-binaries-${{ matrix.target_arch }}-${{ matrix.go_version}}
path: support/*.test

integration-tests:
name: Integration tests (v${{ matrix.kernel }} ${{ matrix.target_arch }})
name: Integration tests (v${{ matrix.kernel }} ${{ matrix.target_arch }} ${{ matrix.go_version}})
runs-on: ubuntu-24.04
needs: build-integration-test-binaries
timeout-minutes: 10
strategy:
matrix:
go_version: [1.23, 1.24]
include:
# List of available kernels here:
# https://github.com/cilium/ci-kernels/pkgs/container/ci-kernels/versions?filters%5Bversion_type%5D=tagged
Expand All @@ -147,6 +179,13 @@ jobs:
steps:
- name: Clone code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
check-latest: true
cache-dependency-path: go.sum
id: go
- name: Install dependencies
run: |
sudo apt-get update -y
Expand All @@ -159,7 +198,7 @@ jobs:
sudo mv ~/go/bin/bluebox /usr/local/bin/.
- name: Fetch integration test binaries
uses: actions/download-artifact@v4
with: { name: "integration-test-binaries-${{ matrix.target_arch }}" }
with: { name: "integration-test-binaries-${{ matrix.target_arch }}-${{ matrix.go_version}}" }
- name: Fetch precompiled kernel
run: |
install -d ci-kernels
Expand Down
Loading