Enable KHR extension tests in CI #1264
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 249 lines diff across 3 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.330
Real PR Conversation Timeline
1 comments
"Review active on #1264"
general
weight: 0.35
gmlueck
The KHR extension tests are gated behind
SYCL_CTS_ENABLE_KHR_TESTS(and the per-extensionSYCL_CTS_ENABLE_KHR_*_TESTSoptions), which nothing in CI set, so they were never compiled and could regress unnoticed. Configure the CI builds withSYCL_CTS_ENABLE_KHR_TESTS=ONso every supported implementation compiles them on each pull request. The options keep defaulting to OFF, so nothing changes for a default local build.For that to work on implementations that do not support a given extension, apply the WG conclusion from #1259: guard the tests on the extension's feature-test macro and report them as skipped via Catch2's
SKIPwhen the implementation does not predefine that macro. Each file is guarded once. The "defines the <macro> macro" probe test case touches no extension API, so it stays outside the guard and reports either SKIP or SUCCEED; the helpers and the remaining test cases go behind a single#ifdef <macro>. Files without a probe test case use#ifndef <macro>with one skipping test case in that branch instead. An unsupported category therefore reports a single skipped test case.This makes a category start testing an implementation as soon as that implementation advertises the extension, with no further change to the CTS.
sycl_khr_split_headersis a special case: its feature-test macro is defined by the very headers the extension introduces, so it cannot be queried on an implementation that does not provide them. That category probes for the header with__has_includeand exposes the result asSYCL_CTS_KHR_SPLIT_HEADERS.One test case in
khr_queue_empty_queryneedssycl::handler::host_task, which AdaptiveCpp does not provide, so it usesDISABLED_FOR_TEST_CASE.Document the convention in the developer documentation.
Verified by compiling all KHR categories in the DPC++, AdaptiveCpp and ProtoSYCL CI containers, both with the feature-test macros present and absent.
🤖 Generated with Claude Code