mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-12-06 09:58:34 +00:00
Compare commits
base: varun-r-mallya:ci-test-runner
varun-r-mallya:master
varun-r-mallya:tests/property-based-ints
varun-r-mallya:docs/readme-logo-center
varun-r-mallya:fix/trivial-xfails
varun-r-mallya:fix/default-gpl-license
varun-r-mallya:tests/loop-selftests
varun-r-mallya:feat/bpfsnake
varun-r-mallya:feat/loops
varun-r-mallya:fix/packet-pointer-arith
varun-r-mallya:claude/pythonbpf-state-replication-g23gij
varun-r-mallya:fix/deref-before-convert
varun-r-mallya:fix/narrow-map-values
varun-r-mallya:fix/struct-map-value-field
varun-r-mallya:fix/augassign-map-value
varun-r-mallya:tests/packet-pointer-arith
varun-r-mallya:feat/integer-signedness
varun-r-mallya:fix/temp-count-if-condition
varun-r-mallya:feature/llvm-opt-o2
varun-r-mallya:feature/loop-xfail-tests
varun-r-mallya:fix/enum-constant-local
varun-r-mallya:feat/global-variables
varun-r-mallya:tests/selftest-port-spike
varun-r-mallya:ci-test-runner
varun-r-mallya:vmlinux-gen-fix
varun-r-mallya:fix/register-state-dump-keyerror
varun-r-mallya:fix/ringbuf-map-type
varun-r-mallya:fix/verifier-level-tests
varun-r-mallya:fix/probe-read-ctx-not-found
varun-r-mallya:kernel-selftest-equivalent-tests
varun-r-mallya:releasescript
varun-r-mallya:fix/comprehensive-store-type-mismatch
varun-r-mallya:testing-framework
varun-r-mallya:compilation-context
varun-r-mallya:copilot/create-documentation-project
varun-r-mallya:kfunc
varun-r-mallya:fix-vmlinux-ir-gen
varun-r-mallya:request-struct
varun-r-mallya:copilot/sub-pr-68
varun-r-mallya:copilot/fix-attributeerror-vmlinux-structs
varun-r-mallya:symex
varun-r-mallya:all_helpers
varun-r-mallya:32int_support
varun-r-mallya:refactor_assign
varun-r-mallya:globals
varun-r-mallya:refactor_conds
varun-r-mallya:ringbuf-helpers
varun-r-mallya:sym
..
compare: varun-r-mallya:vmlinux-gen-fix
varun-r-mallya:tests/property-based-ints
varun-r-mallya:docs/readme-logo-center
varun-r-mallya:master
varun-r-mallya:fix/trivial-xfails
varun-r-mallya:fix/default-gpl-license
varun-r-mallya:tests/loop-selftests
varun-r-mallya:feat/bpfsnake
varun-r-mallya:feat/loops
varun-r-mallya:fix/packet-pointer-arith
varun-r-mallya:claude/pythonbpf-state-replication-g23gij
varun-r-mallya:fix/deref-before-convert
varun-r-mallya:fix/narrow-map-values
varun-r-mallya:fix/struct-map-value-field
varun-r-mallya:fix/augassign-map-value
varun-r-mallya:tests/packet-pointer-arith
varun-r-mallya:feat/integer-signedness
varun-r-mallya:fix/temp-count-if-condition
varun-r-mallya:feature/llvm-opt-o2
varun-r-mallya:feature/loop-xfail-tests
varun-r-mallya:fix/enum-constant-local
varun-r-mallya:feat/global-variables
varun-r-mallya:tests/selftest-port-spike
varun-r-mallya:ci-test-runner
varun-r-mallya:vmlinux-gen-fix
varun-r-mallya:fix/register-state-dump-keyerror
varun-r-mallya:fix/ringbuf-map-type
varun-r-mallya:fix/verifier-level-tests
varun-r-mallya:fix/probe-read-ctx-not-found
varun-r-mallya:kernel-selftest-equivalent-tests
varun-r-mallya:releasescript
varun-r-mallya:fix/comprehensive-store-type-mismatch
varun-r-mallya:testing-framework
varun-r-mallya:compilation-context
varun-r-mallya:copilot/create-documentation-project
varun-r-mallya:kfunc
varun-r-mallya:fix-vmlinux-ir-gen
varun-r-mallya:request-struct
varun-r-mallya:copilot/sub-pr-68
varun-r-mallya:copilot/fix-attributeerror-vmlinux-structs
varun-r-mallya:symex
varun-r-mallya:all_helpers
varun-r-mallya:32int_support
varun-r-mallya:refactor_assign
varun-r-mallya:globals
varun-r-mallya:refactor_conds
varun-r-mallya:ringbuf-helpers
varun-r-mallya:sym
1 Commits
ci-test-ru
...
vmlinux-ge
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 5bfa8e38a3 |
Add CI workflow to run the test suite (#96)
* add CI workflow to run the test suite
Runs make test on every push/PR. Kernel verifier tests need passwordless
sudo and a kernel with BTF/BPF enabled, which isn't guaranteed on every
runner, so the workflow probes for working sudo first and only attempts
them if it's available.
Also add ctypeslib2 to the test extra: make test now regenerates
vmlinux.py via tools/vmlinux-gen.py, which needs clang2py.
* fix CI: bpftool is a virtual package on Ubuntu, install linux-tools instead
* fix CI: locate bpftool binary and add it to PATH manually
linux-tools-generic's update-alternatives symlink for bpftool doesn't
fire on GitHub-hosted runners, since their kernel version has no
matching linux-tools-<version> package.
* pin clang bindings to 16.0.6 to match Ubuntu's default libclang
pip installs the latest 'clang' release by default, whose libclang API
surface is newer than Ubuntu 24.04's apt libclang-16, causing a
LibclangError about an undefined symbol. Older bindings against a
newer libclang stay compatible, so pin the bindings low rather than
the system library.
* DEBUG: dump struct_vmbus_channel_offer_channel on test failure
* remove debug step now that the bitfield issue is fixed
* fix CI: install LLVM 19 from apt.llvm.org, Ubuntu's default is too old
llvmlite>=0.49's ArgumentAttributes only recognizes the LLVM 19+
'captures(none)' spelling of the renamed 'nocapture' attribute.
Ubuntu noble's default llvm/clang packages are LLVM 18, whose llc
can't parse that attribute in the emitted .ll text.
* DEBUG: show real llc stderr on failure
* fix YAML syntax in debug step
* fix CI: install LLVM 22 (matching llvmlite's bundled version), not 19
Verified on CI: LLVM 19's llc still rejects 'captures(none)' as a
parse error ('expected ) at end of argument list'). llvmlite 0.49
bundles LLVM 22.1.0 internally; match that generation instead.
* remove debug step, LLVM 22 fix confirmed working on CI
* avoid running CI twice per push: scope push trigger to master
Branches live in this repo, not forks, so a push to a branch with an
open PR fired both push and pull_request for the same commit. push
now only fires for master (a post-merge check); pull_request already
covers every commit on a feature branch.
|