ci: Add Rusticl support and refactor driver testing #2799
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.46) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 271 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.335
Real PR Conversation Timeline
1 comments
"Review active on #2799"
general
weight: 0.35
karolherbst
Generalize the GitHub Actions targeted PR testing workflow to support
multiple OpenCL drivers, refactor driver setup and testing steps into
modular composite actions, and introduce Rusticl (Mesa llvmpipe) alongside
PoCL.
Key highlights:
Multi-Driver Workflow: Renamed pocl.yml to tests.yml and introduced a
dynamic matrix based on the DRIVERS environment variable.
Split Workflow Jobs & Optimized Caching:
- check-triggers: Parses commit messages and PR descriptions for test
triggers and determines the active drivers.
- build-and-cache: Builds and caches driver artifacts on push or when PR
triggers are matched. Uses sparse checkout (.github) to avoid cloning
CTS source when only building drivers. Skips runtime packages and
test utilities during cache population.
- run: Restores driver cache, installs only lightweight runtime
dependencies, builds OpenCL-CTS, and runs triggered test commands.
Centralized Configuration:
- Pinned driver versions and branches in workflow-level environment
variables with clean prefixes (POCL_, RUSTICL_, VULKAN_SDK_VERSION)
inherited directly by composite actions.
Modular Composite Actions:
- .github/actions/setup-pocl: Manages PoCL & SPIRV-LLVM-Translator build,
caching, and runtime environment configuration.
- .github/actions/setup-rusticl: Clones Mesa, builds Rusticl with the
llvmpipe driver, SPIRV-Tools, and SPIRV-LLVM-Translator, and configures
the ICD search path.
- .github/actions/build-cts: Builds OpenCL Headers, ICD Loader, and CTS.
- .github/actions/run-cts: Executes targeted test binaries and compares
test output against golden reference baselines.
Driver-Specific Triggers:
- Extended syntax to allow targeting all drivers ([run-test: <cmd>]) or
specific drivers ([run-test-pocl: <cmd>], [run-test-rusticl: <cmd>]).
Rusticl Baseline: Added ci/rusticl/golden.json baseline results for
test_computeinfo and test_api enqueue_task.
and examples.
[run-test: test_computeinfo]
[run-test-rusticl: test_api enqueue_task]