Development, Hardware Tests, and Releasing
Toolchain
Rust is pinned in rust-toolchain.toml (update it only in a dedicated commit). Native build dependencies live in the checked-in Mamba environment:
mamba env create --file environment.yml
mamba activate xprobe-dev
just build
just test
xprobe-dev provides Clang, CMake, Ninja, pkg-config, Just, Python, perf, py-spy, and the autotools needed for vendored libbpf/libelf/zlib (a system C compiler and Linux UAPI headers are also needed). CUDA is not installed in xprobe-dev; CI builds CUDA 12 and 13 Agents in pinned NVIDIA devel images, checks SONAMEs, and rejects build-time RPATHs. Local GPU tests run through Docker + NVIDIA Container Toolkit.
Test recipes
Run just --list for the complete list. Key suites:
| Recipe | What it tests | Notes |
|---|---|---|
just test | Rust unit/integration tests, CTest, CLI/Skill checks, analyze_trace.py fixtures | Offline, no GPU |
just lint-commits | Emoji conventional commits ≤ 72 chars; bodies wrap at 80 | Checks origin/master..HEAD |
just test-agent-contract | Public CLI shape, 26 schemas, Skill links/flags/fields, analyzer fixtures | Run after CLI/schema/docs/Skill edits |
just test-skill-install | Real npx skills copy into isolated Codex, Claude Code, and Cursor homes | Needs Node.js |
just test-install | Archive install/uninstall, GLIBC_2.34 check, wheel/SBOM checks | Offline |
just test-bpf | Compiles BPF objects without attaching | Offline |
just test-bpf-live | Live uprobe, syscall, tracepoint, CPython GC USDT, syscall aggregate | Docker (minimal capabilities, no --privileged) |
just test-cpu-live | Live CPU sampling (native + CPython 3.12+ -X perf) | Host with perf permission |
just test-python-sample-live | External CPython 3.9–3.14 stack/GIL/native-wait sampler | Host/container with ptrace access |
just gpu-smoke | Docker + NVIDIA runtime check (pinned CUDA 13.3 base image) | Needs GPU |
just test-cupti-live / -cuda12 / -cuda12-min | Live CUPTI ABI, kernel/memcpy/memset, and CUDA 12.0 min-compat | Pinned CUDA 13.3 / 12.9 / 12.0 images |
just test-nvtx-live / -cuda12 | Startup NVTX injection, nested/process ranges, truncation, logical stop reuse | Pinned CUDA 13 / 12 images |
just test-injection-live / -cuda12 | Live ptrace injection, stop, and reactivation twice | Adds SYS_PTRACE, no --privileged |
just test-multisource-live / -cuda12 | Combined host uprobe + CUPTI capture and repeated ARM/STOP | Needs GPU + BPF |
just test-trigger-live | Ring capture for idle, stream gap, duration, and latency triggers | Needs GPU |
just test-pytorch-symbols | Real CPython / native extension / libtorch C++ symbol resolution | Set PYTORCH_PYTHON |
just test-pytorch-live / test-pytorch-cuda-live / test-triage-live | Live PyTorch eager, compiled Triton, transfers, NVTX, and triage | Uses pinned PyTorch image or PYTORCH_ENV |
Container rules for live tests
- Pin concrete image tags and digests in
justfile; never use floatinglatest. - Mount the workspace read-only and compile fixtures in container-local temp directories.
- Grant only the minimum capabilities a test needs (
SYS_PTRACEfor injection;BPF/PERFMON/SYS_ADMIN/SYS_RESOURCEfor eBPF); never use--privileged. - Keep target and collector in the same container PID and mount namespaces.
- CUDA fixtures query the actual GPU compute capability and compile matching SASS to avoid PTX JIT skew.
Releasing
Work on a feature or fix branch, rebase-merge into master, then tag the merged commit:
- Bump versions: update
Cargo.toml,CMakeLists.txt,install.sh, and versioned links inREADME.md,docs/installation.md, anddocs/agent-integration.md. Verify withjust test-agent-contract. Pre-releases useX.Y.Z-dev.N(PEP 440X.Y.Z.devNfor PyPI wheels). - Run the full live hardware suite:
mamba env create --file environment-pytorch.ymlPYTORCH_ENV="$(mamba run -n xprobe-pytorch python -c 'import sys; print(sys.prefix)')" \just test-release-live
- Package and test locally (CUDA 12 + CUDA 13 Agents):
On tag push, CI rebuilds both Agents on Ubuntu 22.04 with aCUDA_PATH=/opt/cuda-12 cmake -S . -B build/cuda12 -G Ninja \-DXPROBE_BUILD_BPF=OFF -DXPROBE_REQUIRE_CUPTI=ON -DXPROBE_CUDA_MAJOR=12cmake --build build/cuda12 --target xprobe-cuptiCUDA_PATH=/opt/cuda-13 cmake -S . -B build/cuda13 -G Ninja \-DXPROBE_BUILD_BPF=OFF -DXPROBE_REQUIRE_CUPTI=ON -DXPROBE_CUDA_MAJOR=13cmake --build build/cuda13 --target xprobe-cuptiscripts/package-release.shtests/install/test_install.sh dist/xprobe-*-linux-x86_64.tar.gz
GLIBC_2.34ceiling, attests the archive + SPDX SBOM, publishes GitHub Releases, and publishes the wheel via PyPI OIDC. - Verify the public release:
Downloads the public archive and checksum, checks the SBOM, repeats the installation test, and inspects every shipped ELF against thescripts/verify-public-release.sh X.Y.Z
GLIBC_2.34ceiling.