Skip to content

chore(ci): extract the eBPF toolchain install into a composite action - #363

Merged
privateip merged 1 commit into
mainfrom
chore/ci-ebpf-deps-action
Aug 13, 2026
Merged

chore(ci): extract the eBPF toolchain install into a composite action#363
privateip merged 1 commit into
mainfrom
chore/ci-ebpf-deps-action

Conversation

@ecv

@ecv ecv commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Five CI jobs each installed the same pinned eBPF toolchain, with the reasoning for the pins written out in one job and cross-referenced from the other four.

The pins are the point. They keep the compiled BPF object bytes identical across every job that regenerates them, and they have to move in step with the workflow-level compiler pin. Five copies means five chances to bump one and miss the rest.

Now there is one copy, in a composite action, with the reasoning next to the packages it explains. Each job keeps its own one-line note about why it needs the toolchain, since that part genuinely differs per job.

No behavior change. Same packages, same order, same jobs.

Test plan

  • task lint, including the yamlfmt pass over the new action
  • task build
  • task test:unit
  • task test:e2e

CI is the check here, since all five call sites are CI jobs.

Related to #314

Five jobs (lint, test-unit, test-unit-root, build, test-e2e) each carried
the same two-line apt install of the pinned clang-18/llvm-18/
linux-libc-dev toolchain, with the package pins explained in the build
job and cross-referenced from the other four.

The pins matter: they keep the BPF object bytes produced by one job
identical to every other job's regeneration, and they have to move
together with the workflow-level BPF2GO_CC pin. Five copies is five
chances to bump one and miss the rest.

The rationale now lives in the action, next to the packages it explains.
Each job keeps only its own one-line note about why it needs the
toolchain at all, which differs per job and is the part worth reading in
place.

Related to #314
@ecv
ecv marked this pull request as ready for review August 13, 2026 02:00
@ecv
ecv requested a review from a team as a code owner August 13, 2026 02:00
@privateip
privateip merged commit 4037fc6 into main Aug 13, 2026
10 checks passed
@privateip
privateip deleted the chore/ci-ebpf-deps-action branch August 13, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants