Skip to content

feat: rewrite telemetery and configs #84

feat: rewrite telemetery and configs

feat: rewrite telemetery and configs #84

Workflow file for this run

name: ci
on:
pull_request:
push:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Check formatting
run: |
unformatted="$(gofmt -l .)"
if [ -n "$unformatted" ]; then
echo "These files need gofmt:"
echo "$unformatted"
exit 1
fi
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...
dynamic-smoke:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Dynamic fake exploit smoke test
run: go test -run TestDynamicFakeExploitScenarioBlocksCandidate -v ./internal/limier
ebpf-docker-smoke:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Install bpftrace
run: |
sudo apt-get update
sudo apt-get install --yes bpftrace
- name: Check host telemetry prerequisites
run: |
uname -a
docker version
bpftrace --version
test -f /sys/fs/cgroup/cgroup.controllers
sudo bpftrace --info
- name: Pull smoke-test image
run: docker pull alpine:3.20
- name: Build Docker and eBPF integration test
run: go test -c -o "$RUNNER_TEMP/limier-docker-ebpf.test" ./internal/env/docker
- name: Capture a Docker process with eBPF
run: |
sudo env LIMIER_EBPF_INTEGRATION=1 \
"$RUNNER_TEMP/limier-docker-ebpf.test" \
-test.run '^TestManagerCapturesDockerExecWithEBPF$' \
-test.v