Skip to content

Commit c1e1c8f

Browse files
FedeDPpoiana
authored andcommitted
cleanup(ci): use provided reusable workflow by libs for container plugin e2e tests.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent b909298 commit c1e1c8f

File tree

1 file changed

+4
-76
lines changed

1 file changed

+4
-76
lines changed

.github/workflows/container-ci.yaml

Lines changed: 4 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -153,82 +153,10 @@ jobs:
153153

154154
libs-tests:
155155
needs: [build-linux]
156-
runs-on: ubuntu-22.04
157-
steps:
158-
- name: Install deps ⛓️
159-
run: |
160-
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
161-
ca-certificates \
162-
cmake \
163-
build-essential \
164-
clang-14 llvm-14 \
165-
git \
166-
clang \
167-
llvm \
168-
pkg-config \
169-
autoconf \
170-
automake \
171-
libtool \
172-
libelf-dev \
173-
wget \
174-
libbpf-dev \
175-
libcap-dev \
176-
libtbb-dev \
177-
libjq-dev \
178-
libjsoncpp-dev \
179-
libgtest-dev \
180-
libprotobuf-dev \
181-
protobuf-compiler \
182-
"linux-headers-$(uname -r)"
183-
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 90
184-
sudo update-alternatives --install /usr/bin/llvm-strip llvm-strip /usr/bin/llvm-strip-14 90
185-
sudo update-alternatives --install /usr/bin/llc llc /usr/bin/llc-14 90
186-
187-
- name: Checkout libs
188-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
189-
with:
190-
fetch-depth: 0
191-
submodules: 'recursive'
192-
repository: "falcosecurity/libs"
193-
194-
- name: Install deps
195-
run: sudo .github/install-deps.sh
196-
197-
- name: Build e2e tests 🏗️🧪
198-
env:
199-
# This avoids random failures on CI.
200-
# (https://github.com/google/sanitizers/issues/1322#issuecomment-699946942)
201-
ASAN_OPTIONS: intercept_tls_get_addr=0
202-
run: |
203-
mkdir -p build && cd build
204-
cmake -DBUILD_BPF=ON \
205-
-DBUILD_LIBSCAP_MODERN_BPF=ON \
206-
-DBUILD_LIBSCAP_GVISOR=OFF \
207-
-DENABLE_E2E_TESTS=ON \
208-
-DUSE_BUNDLED_DEPS=OFF \
209-
-DUSE_BUNDLED_LIBBPF=ON \
210-
..
211-
make -j$(nproc) sinsp-example driver bpf container_plugin
212-
sudo -E make e2e-install-deps
213-
214-
- name: Download library overriding built library
215-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
216-
with:
217-
name: libcontainer-amd64
218-
path: build/test/e2e/container_plugin-prefix/src/container_plugin/
219-
220-
- name: Run e2e tests
221-
run: |
222-
cd build
223-
sudo -E ../test/e2e/scripts/run_tests.sh
224-
225-
- name: Archive test reports
226-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
227-
if: always()
228-
with:
229-
name: libs_e2e_report
230-
path: |
231-
/tmp/report/
156+
uses: falcosecurity/libs/.github/workflows/reusable_e2e_tests.yaml@master
157+
with:
158+
container_plugin_artifact_name: 'libcontainer-amd64'
159+
secrets: inherit
232160

233161
formatting-check:
234162
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)