Skip to content

Commit

Permalink
workflows: use a single image for core and non-core
Browse files Browse the repository at this point in the history
- add amzn2 kernel images to test
- minor job name fix (non CO-RE)
  • Loading branch information
rafaeldtinoco committed Apr 28, 2022
1 parent 7595d30 commit c27a040
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
- "TRC-2"
kernel:
- "4.19.238-stable"
- "5.4.189-stable"
- "5.4.188-amzn2"
- "5.8.18-ubuntu"
- "5.10.111-stable"
- "5.13.19-ubuntu"
Expand All @@ -194,6 +194,7 @@ jobs:
-e kvm_accel="tcg" \
-e kern_version=${{ matrix.kernel }} \
-e test_name=${{ matrix.signature }} \
-e is_noncore=0 \
-t rafaeldtinoco/tracee-test-kernels:latest
NON-CO-RE:
runs-on: ubuntu-20.04
Expand All @@ -206,7 +207,7 @@ jobs:
- "TRC-2"
kernel:
- "4.19.238-stable"
- "5.4.189-stable"
- "5.4.188-amzn2"
- "5.8.18-ubuntu"
- "5.10.111-stable"
- "5.13.19-ubuntu"
Expand All @@ -217,11 +218,12 @@ jobs:
submodules: true
- name: "Pull test container image"
run: |
docker image pull rafaeldtinoco/tracee-test-noncore:latest
docker image pull rafaeldtinoco/tracee-test-kernels:latest
- name: "Run tests"
run: |
docker run --rm --privileged -v $(pwd):/tracee:rw \
-e kvm_accel="tcg" \
-e kern_version=${{ matrix.kernel }} \
-e test_name=${{ matrix.signature }} \
-t rafaeldtinoco/tracee-test-noncore:latest
-e is_noncore=1 \
-t rafaeldtinoco/tracee-test-kernels:latest
2 changes: 2 additions & 0 deletions .github/workflows/test-core-daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
kernel:
- "4.19.238-stable"
- "5.4.166-ubuntu+"
- "5.4.188-amzn2"
- "5.4.189-stable"
- "5.8.18-ubuntu"
- "5.10.111-stable"
Expand All @@ -43,4 +44,5 @@ jobs:
-e kvm_accel="tcg" \
-e kern_version=${{ matrix.kernel }} \
-e test_name=${{ matrix.signature }} \
-e is_noncore=0 \
-t rafaeldtinoco/tracee-test-kernels:latest
2 changes: 2 additions & 0 deletions .github/workflows/test-core-weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
kernel:
- "4.19.238-stable"
- "5.4.166-ubuntu+"
- "5.4.188-amzn2"
- "5.4.189-stable"
- "5.8.18-ubuntu"
- "5.10.111-stable"
Expand All @@ -53,4 +54,5 @@ jobs:
-e kvm_accel="tcg" \
-e kern_version=${{ matrix.kernel }} \
-e test_name=${{ matrix.signature }} \
-e is_noncore=0 \
-t rafaeldtinoco/tracee-test-kernels:latest
8 changes: 5 additions & 3 deletions .github/workflows/test-noncore-daily.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Daily Test: TRC-2 with selected kernels.
#
name: CO-RE (DAILY)
name: NON CO-RE (DAILY)
on:
workflow_dispatch: {}
schedule:
Expand All @@ -18,6 +18,7 @@ jobs:
kernel:
- "4.19.238-stable"
- "5.4.166-ubuntu+"
- "5.4.188-amzn2"
- "5.4.189-stable"
- "5.8.18-ubuntu"
- "5.10.111-stable"
Expand All @@ -36,11 +37,12 @@ jobs:
submodules: true
- name: "Pull test container image"
run: |
docker image pull rafaeldtinoco/tracee-test-noncore:latest
docker image pull rafaeldtinoco/tracee-test-kernels:latest
- name: "Run tests"
run: |
docker run --rm --privileged -v $(pwd):/tracee:rw \
-e kvm_accel="tcg" \
-e kern_version=${{ matrix.kernel }} \
-e test_name=${{ matrix.signature }} \
-t rafaeldtinoco/tracee-test-noncore:latest
-e is_noncore=1 \
-t rafaeldtinoco/tracee-test-kernels:latest
8 changes: 5 additions & 3 deletions .github/workflows/test-noncore-weekly.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Weekly Test: TRC-2 with selected kernels.
#
name: CO-RE (WEEKLY)
name: NON CO-RE (WEEKLY)
on:
workflow_dispatch: {}
schedule:
Expand All @@ -28,6 +28,7 @@ jobs:
kernel:
- "4.19.238-stable"
- "5.4.166-ubuntu+"
- "5.4.188-amzn2"
- "5.4.189-stable"
- "5.8.18-ubuntu"
- "5.10.111-stable"
Expand All @@ -46,11 +47,12 @@ jobs:
submodules: true
- name: "Pull test container image"
run: |
docker image pull rafaeldtinoco/tracee-test-noncore:latest
docker image pull rafaeldtinoco/tracee-test-kernels:latest
- name: "Run tests"
run: |
docker run --rm --privileged -v $(pwd):/tracee:rw \
-e kvm_accel="tcg" \
-e kern_version=${{ matrix.kernel }} \
-e test_name=${{ matrix.signature }} \
-t rafaeldtinoco/tracee-test-noncore:latest
-e is_noncore=1 \
-t rafaeldtinoco/tracee-test-kernels:latest

0 comments on commit c27a040

Please sign in to comment.