← Back to Pull requests

Resolve Dispatcher jobs whose final state could not be confirmed #25449

Closed
unknown closed this pull request without merging on Oct 01, 2026 13:34 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 14:47 UTC
Author

What does this PR do?


When the GitHub jobs API cannot confirm a job's final state, the gatherer decides the job's status from the workflow run's conclusion and the job's artifacts. Before, it raised and failed the whole batch.

A job is unconfirmed when it has no workflow job, or its workflow job was last seen before it completed:

| Run concluded | Job's artifacts | Job status |
|---|---|---|
| success | any | success. Missing artifacts are reported as today. |
| not success | failed or errored tests | failure |
| not success | none, or no failed tests | inconclusive |

A successful run clears the job because GitHub concludes a run success only when no job failed, and test-batch.yml has no job-level continue-on-error. When the run failed, passing JUnit files don't rule out a failure outside the tests, such as in setup.

  • _reconcile_final_jobs keeps every job with its last-known state instead of dropping the ones not seen completed.

  • Status.INCONCLUSIVE is new. Batch and run status still come from the workflow run, so the aggregate commit status is unchanged.
  • How the PR comment renders it

    Inconclusive is only possible in a batch whose workflow failed, so in practice the heading is the existing failure heading:

    ## ❌ Dispatcher tests: failed
    

    The totals count it separately, and the progress bar draws it in the pending colour, never as passed:

    ✅ 1 passed · ❔ 1 inconclusive
    

    The batch strip uses the workflow's conclusion, except when nothing in the batch confirmed a failure and a job is inconclusive:

    | Finished batch | Chip | Batch note |
    |---|---|---|
    | Workflow succeeded | ✅ | none |
    | Workflow failed, a job confirmed a failure (with or without inconclusive jobs) | ❌ | none |
    | Workflow failed, no job failed, at least one job inconclusive | ⚠️ | none. The inconclusive row accounts for the batch. |
    | Workflow failed, every job confirmed passed | ❌ | failed outside its integration test jobs (unchanged) |

    Batches · ⚠️ [batch-01](…) 2/2
    

    Each integration with an inconclusive environment is listed. It's ❌ if any of its environments confirmed a failure, ⚠️ otherwise, and the environment's row says inconclusive:

    ❌ ibm_mq: 1 failed target, 1 inconclusive target
      - py3.13-9 / linux · batch-01 · tests failed
      - py3.13-9-cluster / linux · batch-01 · inconclusive
    
    ⚠️ snmp: 1 inconclusive target
      - py3.13-python / linux · batch-01 · inconclusive
    

    An inconclusive environment without artifacts also carries the collection error: · inconclusive · artifacts could not be downloaded.

    Motivation


    In run 36720344210, every GET /actions/runs/36720344210/jobs returned 502 after 13:21:38. The last three jobs finished between 13:21:48 and 13:22:30, and the run concluded success. The runner kept its last snapshot, where those jobs were still in progress, then dropped them in the final reconcile. The gatherer raised No workflow job correlated for 'IBM ACE (py3.13-12)' and the whole batch failed, although every job was green and its artifacts were downloaded.

    Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)

  • Add qa/required if this PR needs QA validation, or qa/skip-qa if it does not. Exactly one of the two is required.

  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged
  • Diff: 447 lines (+335 / -112) across 5 files Reviewer: HadhemiDD Review duration: 1366m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 447 lines diff across 5 files
    0.45
    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.365
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #25449"
    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: 45.4% (MEDIUM) · Higher = larger blast radius
    45.4%
    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: 17.9% · Safe to merge
    17.9%