Skip to content

Commit

Permalink
casually disabling tests (will remove later)
Browse files Browse the repository at this point in the history
this is done to test trc-9 functionality in gke
  • Loading branch information
NDStrahilevitz committed Jun 7, 2022
1 parent c175784 commit d745f0f
Showing 1 changed file with 76 additions and 76 deletions.
152 changes: 76 additions & 76 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,35 +128,35 @@ jobs:
# NB: Ubuntu 20.04 provided by GitHub Actions runner does not support CO-RE.
# Thus, we are running end-to-end signatures tests using tracee non CO-RE
# container image.
smoke-test-noncore:
name: "[Smoke] Test non CO-RE"
needs:
- run-integration-tests
- verify-signatures
runs-on: ubuntu-20.04
steps:
- name: Checkout main
uses: actions/checkout@v2
with:
submodules: true
- name: Install Dependencies
uses: ./.github/actions/build-dependencies
with:
go-version: ${{ env.GO_VERSION }}
opa-version: ${{ env.OPA_VERSION }}
- name: Build tracee image (full w/out BTFHUB)
run: |
BTFHUB=0 make -f builder/Makefile.tracee-container build-tracee-full
- name: Install BPF
run: |
make install-bpf-nocore
- name: Run tests
run: |
docker image pull aquasec/tracee-tester:latest
go test -v -run "TestTraceeSignatures" ./tests/e2e/e2e_test.go \
-tracee-image-ref "tracee:full" \
-tracee-tester-image-ref "aquasec/tracee-tester:latest" \
-tracee-signatures "TRC-2"
# smoke-test-noncore:
# name: "[Smoke] Test non CO-RE"
# needs:
# - run-integration-tests
# - verify-signatures
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout main
# uses: actions/checkout@v2
# with:
# submodules: true
# - name: Install Dependencies
# uses: ./.github/actions/build-dependencies
# with:
# go-version: ${{ env.GO_VERSION }}
# opa-version: ${{ env.OPA_VERSION }}
# - name: Build tracee image (full w/out BTFHUB)
# run: |
# BTFHUB=0 make -f builder/Makefile.tracee-container build-tracee-full
# - name: Install BPF
# run: |
# make install-bpf-nocore
# - name: Run tests
# run: |
# docker image pull aquasec/tracee-tester:latest
# go test -v -run "TestTraceeSignatures" ./tests/e2e/e2e_test.go \
# -tracee-image-ref "tracee:full" \
# -tracee-tester-image-ref "aquasec/tracee-tester:latest" \
# -tracee-signatures "TRC-2"

# smoke-test-core job is using TRC-2 (Anti-Debugging) signature and tracee
# CO-RE container image with embedded BTF info objects to run a quick smoke
Expand Down Expand Up @@ -202,16 +202,16 @@ jobs:
fail-fast: false
matrix:
signature:
- "TRC-2"
- "TRC-9"
distro:
- "stream8-4.18"
- "stream9-5.14"
- "fedora34-5.11"
- "fedora35-5.14"
- "fedora36-5.17"
- "focal-5.4"
- "focalhwe-5.13"
- "jammy-5.15"
# - "stream8-4.18"
# - "stream9-5.14"
# - "fedora34-5.11"
# - "fedora35-5.14"
# - "fedora36-5.17"
# - "focal-5.4"
# - "focalhwe-5.13"
# - "jammy-5.15"
- "gkekernel1.21.11-5.4"
steps:
- name: "Checkout"
Expand All @@ -232,42 +232,42 @@ jobs:
-e non_core=0 \
-e cpus=4 -e mem=4 \
-t rafaeldtinoco/tracee-distro-tester:$distro
NON-CO-RE:
runs-on: self-hosted
needs:
- smoke-test-noncore
strategy:
fail-fast: false
matrix:
signature:
- "TRC-2"
distro:
- "stream8-4.18"
- "stream9-5.14"
- "fedora34-5.11"
- "fedora35-5.14"
- "fedora36-5.17"
- "focal-5.4"
- "focalhwe-5.13"
- "jammy-5.15"
# "gkekernel1.21.11-5.4" is CO-RE only
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
submodules: true
# Needed when running in github actions runners (kvm_accel=tcg)
#- name: "Pull test container image"
# run: |
# distro=$(echo ${{ matrix.distro }} | cut -d'-' -f1)
# docker image pull rafaeldtinoco/tracee-distro-tester:$distro
- name: "Run tests"
run: |
distro=$(echo ${{ matrix.distro }} | cut -d'-' -f1)
docker run --rm --privileged -v $(pwd):/tracee:rw \
-e kvm_accel="kvm" \
-e test_name=${{ matrix.signature }} \
-e non_core=1 \
-e cpus=4 -e mem=4 \
-t rafaeldtinoco/tracee-distro-tester:$distro
# NON-CO-RE:
# runs-on: self-hosted
# needs:
# - smoke-test-noncore
# strategy:
# fail-fast: false
# matrix:
# signature:
# - "TRC-2"
# distro:
# - "stream8-4.18"
# - "stream9-5.14"
# - "fedora34-5.11"
# - "fedora35-5.14"
# - "fedora36-5.17"
# - "focal-5.4"
# - "focalhwe-5.13"
# - "jammy-5.15"
# # "gkekernel1.21.11-5.4" is CO-RE only
# steps:
# - name: "Checkout"
# uses: actions/checkout@v2
# with:
# submodules: true
# # Needed when running in github actions runners (kvm_accel=tcg)
# #- name: "Pull test container image"
# # run: |
# # distro=$(echo ${{ matrix.distro }} | cut -d'-' -f1)
# # docker image pull rafaeldtinoco/tracee-distro-tester:$distro
# - name: "Run tests"
# run: |
# distro=$(echo ${{ matrix.distro }} | cut -d'-' -f1)
# docker run --rm --privileged -v $(pwd):/tracee:rw \
# -e kvm_accel="kvm" \
# -e test_name=${{ matrix.signature }} \
# -e non_core=1 \
# -e cpus=4 -e mem=4 \
# -t rafaeldtinoco/tracee-distro-tester:$distro

0 comments on commit d745f0f

Please sign in to comment.