Skip to content

Add weekly workflow to notify on libbpf updates - #62

Open
gregclermont wants to merge 1 commit into
mainfrom
track-libbpf-updates
Open

gregclermont wants to merge 1 commit into
mainfrom
track-libbpf-updates

Conversation

@gregclermont

Copy link
Copy Markdown
Owner

Adds .github/workflows/check-libbpf.yml — a scheduled (weekly, Tuesdays 06:00 UTC) + manually-dispatchable job that notifies when a newer libbpf is available, rather than auto-bumping.

Why notify instead of auto-PR (unlike the vmlinux.h job)

  • No silent-breakage hazard. Upstream libbpf release tags are permanent — nothing 404s and rots the way vmlinux.h's main branch does. This is a stay-current update, low urgency.
  • Higher blast radius. libbpf is the runtime .so loaded via ctypes (bindings.py declares argtypes/restypes), so a bump deserves human ABI review, not auto-merge.
  • Multi-step sequencing. A bump requires building+publishing this repo's libbpf-v<ver> release assets first (via build-libbpf.yml); otherwise make setup-linux and the wheel build 404. A self-validating one-file bump PR isn't possible.

What it does

  1. Reads src/tinybpf/.libbpf-version and finds the highest upstream tag in the same major series (so a future 2.0 never auto-notifies a major jump).
  2. If newer, ensures a libbpf-update label exists and opens a tracking issue with the bump runbook — deduped: skips if an open issue already mentions that version.

At the current pin (1.4.0) the latest 1.x is 1.7.0, so the first run will open a tracking issue.

Notes

  • Permissions scoped to issues: write + contents: read.
  • YAML validated; issue-body generation dry-run locally to confirm clean markdown.

🤖 Generated with Claude Code

Unlike vmlinux.h, upstream libbpf release tags are permanent (no
silent-rotation hazard) and bumping the bundled .so is an ABI-sensitive,
multi-step change (build+publish the libbpf-v<ver> release assets, then
bump .libbpf-version, rebuild the compile image, rebuild the wheel). So
rather than auto-opening a bump PR, this scheduled job only notifies:
when a newer same-major libbpf release exists upstream it opens (once,
deduped) a tracking issue with the bump runbook.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant