← Back to Pull requests

ci: Add Rusticl support and refactor driver testing #2799

Open
unknown opened this pull request with 271 lines diff across 3 files
View on GitHub
unknown unknown commented on Sep 08, 2026 09:31 UTC
Author

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.

  • Documentation: Updated README.md with the driver-specific trigger syntax

  • and examples.

    [run-test: test_computeinfo]
    [run-test-rusticl: test_api enqueue_task]

    Diff: 271 lines (+203 / -68) across 3 files Reviewer: karolherbst Review duration: 46661m
    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
    0.46
    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%
    44%
    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.335
    Real PR Conversation Timeline
    1 comments
    "Review active on #2799"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.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: 46.5% (MEDIUM) · Higher = larger blast radius
    46.5%
    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: 44.7% · Lower = rushed or shallow review
    44.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: 25.7% · Safe to merge
    25.7%