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:vmlinux-gen-fix
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:ci-test-runner
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
vmlinux-ge
...
ci-test-ru
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 6b76b74a3b |
add CI workflow to run the test suite
Runs make test on every push to master and every pull_request. 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 there. Ubuntu's default apt packages need three adjustments to actually run this: bpftool is a virtual package provided by linux-tools-generic whose binary needs to be found and put on PATH manually; ctypeslib2's clang bindings default to the latest PyPI release, which doesn't match Ubuntu's libclang-16, so pin to clang==16.0.6 (older bindings stay forward-compatible with a newer system libclang); and llvmlite>=0.49 emits IR using the 'captures(none)' attribute spelling, matching the LLVM 22.1.0 it bundles internally, which Ubuntu's default LLVM 18 (and even 19) can't parse - install a matching-generation LLVM 22 from apt.llvm.org instead of the distro default. Also add ctypeslib2 and a pinned clang to the test extra: make test now regenerates vmlinux.py via tools/vmlinux-gen.py, which needs clang2py, and that dependency was previously only installed ad hoc in local dev venvs. |