Fix sysprobe KMT leaf helper and testdata BUILD files #61982
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.46) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 464 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.367
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #61982"
general
weight: 0.35
gjulianm
What does this PR do?
Updates five
BUILD.bazelfiles so system-probe KMT leaf helper binaries and testdata targets build hermetically in Bazel://pkg/gpu/probe/testdata(BUILD.bazel) with a statically linked Linuxcudasamplecc_binaryand an explicittestdata_filesfilegroupcontaining the checked-in source and fixture files. Thecudasampleexecutable remains a separate public target for KMT packaging; it is not included intestdata_files, so local GPU tests can build their helper without colliding with a Bazel runfile. Thecudasampletarget usescopts = ["-O0"]so optimized builds preserve its dummy CUDA calls for GPU probes to observe. Updates//pkg/gpu/probe:probe_testto depend on the filegroup instead of a recursive glob.//pkg/ebpf/uprobes/testutil/standalone_attacherstatically (static = "on") withnetgoandosusergoGo build tags so it runs in minimal containers without a dynamic loader.testdata/decoded/sample/testHandleOrder.jsonfixture to//pkg/dyninst:dyninst_testembedsrcs.gotags = ["test"]to//test/new-e2e/system-probe/test-json-reviewso its//pkg/util/testutil/flake(//go:build test) dependency compiles.No Python, Go, or C source files are changed.
Motivation
Makes all four system-probe KMT leaf helper and testdata targets buildable hermetically in Bazel so downstream
//bazel/kmtpackaging can depend on them cleanly (ABLD-584), while keeping the CUDA fixture available to KMT consumers without making it an input runfile that conflicts with local GPU test helper compilation.Describe how you validated your changes
bazel run //bazel/buildifier:test): Passed locally.bazel run //:gazelle -- -mode=diff pkg/gpu/probe pkg/gpu/probe/testdata pkg/ebpf/uprobes/testutil/standalone_attacher pkg/dyninst test/new-e2e/system-probe/test-json-review): Passed locally with empty diff.bzlog --format text build --config=rbe //pkg/gpu/probe/testdata:cudasample //pkg/gpu/probe/testdata:testdata_files //pkg/ebpf/uprobes/testutil/standalone_attacher //test/new-e2e/system-probe/test-json-reviewsucceeded. The dependency query confirmstestdata_filescontains the four checked-in fixture/source files and omits:cudasample.fastbuildand-c optafter addingcopts = ["-O0"].bzlog --format text build --config=rbe //pkg/gpu/probe:all //pkg/dyninst:all): Succeeded (covers//pkg/dyninst:dyninst_test_bpfand all//pkg/gpu/probe:probe_test*variants).bzlog --format text test --config=rbe //pkg/gpu/probe:probe_test //pkg/gpu/probe:probe_test_nvml //test/new-e2e/system-probe/test-json-review:test-json-review_test): Succeeded (3/3 tests passed).//pkg/gpu/probe:probe_test,//pkg/gpu/probe:probe_test_nvml,//pkg/gpu/probe:probe_test_bpf, and//pkg/gpu/probe:probe_test_bpf_nvmlsucceeded. The cudasample binary remains a separate Linux-only target.bzlog --format text test --config=rbe //pkg/gpu/probe:probe_test //pkg/gpu/probe:probe_test_nvmlsucceeded (2/2 tests passed); the corresponding Darwin builds also succeeded.//pkg/dyninst:dyninst_test_bpf,//pkg/gpu/probe:probe_test_bpf,//pkg/gpu/probe:probe_test_bpf_nvml) were build-verified only; executing them requires a privileged Linux kernel / KMT environment.