← Back to Pull requests

Enable KHR extension tests in CI #1264

Open
unknown opened this pull request with 249 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 18, 2026 14:32 UTC
Author

The KHR extension tests are gated behind SYCL_CTS_ENABLE_KHR_TESTS (and the per-extension SYCL_CTS_ENABLE_KHR_*_TESTS options), which nothing in CI set, so they were never compiled and could regress unnoticed. Configure the CI builds with SYCL_CTS_ENABLE_KHR_TESTS=ON so 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 SKIP when 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_headers is 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_include and exposes the result as SYCL_CTS_KHR_SPLIT_HEADERS.

One test case in khr_queue_empty_query needs sycl::handler::host_task, which AdaptiveCpp does not provide, so it uses DISABLED_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

Diff: 249 lines (+186 / -63) across 3 files Reviewer: gmlueck Review duration: 19277m
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
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.0% (MEDIUM) · Higher = larger blast radius
39.0%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.8% · Safe to merge
20.8%