← Back to Pull requests

ci: reusable tests #724

Closed
unknown closed this pull request without merging on Nov 02, 2026 10:16 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 11:37 UTC
Author

Summary

Reworks the core CI test flow so that failures are reported where they happen, only the affected jobs run, and test results become reusable outside package_core.

Fixes

  • Intermediate artifacts (build env, binaries) are now cleaned up on push builds too.

  • CI summary links to test jobs now point to the compile step.
  • Reusable tests

  • Build metadata is computed by extra/ci_get_build_info.sh, shared by all workflows.

  • Tests move to a reusable test_core.yml, which can also test the published core of a commit (e.g. for periodic runs).

  • Test jobs check their own results against known_example_issues.txt and fail early, so PR checks turn red as soon as a board has unexpected errors.
  • Per-job dependencies

  • Build, package and test jobs publish small completion markers artifacts via the mark-job-completed action.

  • The CI summary takes job links from the markers: verify-core no longer calls the GitHub API, and job names no longer matter.

  • Matrix entries list the jobs they depend on: packages including a failed board, and the tests of a missing package, are no longer started. The summary reports those tests as skipped and blames only the failed build.

  • On "Re-run failed jobs", packages and tests that already passed are skipped unless one of their prerequisites was rebuilt; "Re-run all jobs" still starts from scratch.
  • Testing

    Run 40490513187 shows the new behavior with injected failures (a temporary failure in build-env for unoq and a permanent build error on giga).
    In attempt 1, Build for unoq failed on the simulated "Restore build environment" error.
    The gating left out the zephyr_unoq and zephyr packages and their unoq and ventunoq tests.
    Both GIGA test jobs failed early on the deliberate #error, and verify-core failed the run.
    "Re-run infrastructure failures" recognized the unoq failure as an infrastructure one and started attempt 2.
    In attempt 2, only what was affected re-ran: Build for unoq, Select packages, Package zephyr and Package zephyr_unoq, the four unoq and ventunoq test jobs (all passed), and the two still-failing GIGA tests.
    zephyr_contrib, zephyr_main and the other boards' tests were skipped as already passed.
    Attempt 2 ended failed only because of the GIGA compile error, so the auto re-run concluded "no infrastructure failure found" and didn't start a third attempt.
    With every board built successfully, "Clean up intermediates" also ran in attempt 2.

    Diff: 323 lines (+242 / -81) across 4 files Reviewer: facchinm Review duration: 8558m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 323 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #724"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 42.0% (MEDIUM) · Higher = larger blast radius
    42.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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.6% · Safe to merge
    16.6%