Skip to content

Simplify cuda verifier tests and use StartTracer helper#244

Merged
gnurizen merged 2 commits intomainfrom
test-improve
Mar 12, 2026
Merged

Simplify cuda verifier tests and use StartTracer helper#244
gnurizen merged 2 commits intomainfrom
test-improve

Conversation

@gnurizen
Copy link
Collaborator

Summary

  • Remove TestCUDAVerifierSingleShot and TestCUDAVerifierMultiProbe — redundant since the e2e tests already load and verify the same BPF programs
  • Replace manual tracer setup in runEndToEnd with testutils.StartTracer, removing ~100 lines of boilerplate
  • CI: replace debootstrap with busybox-based initramfs

This eliminates 2 full BPF program load+verify cycles, significantly reducing ARM test time (~5min previously).

Test plan

  • ARM CI passes with reduced test time
  • TestCUDAEndToEndSingleShot and TestCUDAEndToEndMultiProbe still pass

🤖 Generated with Claude Code

gnurizen and others added 2 commits March 11, 2026 17:59
Replace the debootstrap rootfs with a minimal busybox + ldd-based
approach. Instead of downloading a full Debian minimal rootfs, we:
- Use busybox-static for shell and utilities
- Copy only the shared libraries actually needed (via ldd)
- Copy libstdc++ and libgcc_s for parcagpu's dlopen chain

Benefits:
- No sudo required (debootstrap needs chroot)
- Initramfs ~44MB vs ~96MB with debootstrap
- Faster build (no network download of .debs)
- No debootstrap apt dependency in the build job

Tested locally: all tests pass on kernel 6.6.31.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
InstrumentCudaLaunch

Also remove CUDAVerifier tests as that is subsumed by the e2e tests
and the arm tests take 5m with all that extra bpf verification going
through qemu
@gnurizen gnurizen merged commit c644a72 into main Mar 12, 2026
72 checks passed
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