Skip to content

Restore automatic inference qualification for matching PRs - #206

Merged
i386 merged 1 commit into
mainfrom
fix/automatic-inference-qualification
Nov 25, 2026
Merged

i386 merged 1 commit into
mainfrom
fix/automatic-inference-qualification

Conversation

@i386

@i386 i386 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Original problem

Inference-affecting PRs could merge without running Spark qualification. inference.yml selected the correct paths but skipped its plan unless the PR carried qualify, then published success for that skip. Recovery PR #201 exposed this: its original qualification run was green with no native jobs.

Matching PRs now automatically run the existing seven-configuration PR ladder on each head. Missing labels no longer disable qualification, and skipped qualification cannot satisfy PR checks.

Diagnostics

Run 45489845896 concluded success, while plan and the unexpanded matrix job were skipped. Its API job metadata is preserved as an offline regression fixture. The changed aggregate rejects that exact result with Inference qualification: plan: skipped.

Fix

  • Remove the plan's label condition and the labeled trigger. Matching opened, synchronized, reopened and ready-for-review PRs always enter existing protected admission; label changes no longer restart qualification.
  • Require successful admission and matrix execution in the inference summary. A skipped plan or matrix is a failure.
  • For inference-affecting PRs, inspect jobs from the latest exact-head automatic inference run. Require successful plan, summary and every PR configuration in the protected ladder. Read each job's latest execution within that run, preserving successful jobs inherited by partial reruns while rejecting newer skips/failures.
  • Preserve existing declarative routing, protected-main controllers, collaborator/source admission, reservations, cleanup, nightly/release behavior and intentional skips outside required inference. Update CI documentation and contributor skill policy.

Workflow diagrams

Inference qualification — Before

flowchart TD
  PR[Matching PR: open, sync, reopen, ready, label] --> Label{qualify label?}
  Label -->|No| Skip[Skip plan and matrix]
  Skip --> Green[Summary publishes success]
  Label -->|Yes| Plan[Protected admission and source-bound plan]
  Other[Manual, nightly, reusable release] --> Plan
  Plan --> Matrix[Existing profile matrix on native JY]
  Matrix --> Evidence[Upload configuration evidence]
  Plan --> Nightly[Scheduled nightly publication only]
  Matrix --> Nightly
  Plan --> Summary[Summary validates results]
  Matrix --> Summary
  Nightly --> Summary
  Evidence --> Report[PR results comment]
  Summary --> Report
Loading

Inference qualification — After

flowchart TD
  PR[Matching PR: open, sync, reopen, ready] --> Plan[Protected admission and source-bound plan]
  Other[Manual, nightly, reusable release] --> Plan
  Plan --> Matrix[Existing profile matrix on native JY]
  Matrix --> Evidence[Upload configuration evidence]
  Plan --> Nightly[Scheduled nightly publication only]
  Matrix --> Nightly
  Plan --> Summary[Summary requires successful plan and matrix]
  Matrix --> Summary
  Nightly --> Summary
  Summary --> Gate[Skipped or failed required work fails qualification]
  Evidence --> Report[PR results comment]
  Summary --> Report
Loading

PR checks — Before

flowchart TD
  Events[PR, producer start/completion, check, status] --> Protected[Protected controller validates live PR and routes]
  Protected --> Runs[Read latest exact-head producer runs]
  Runs --> Accepted[Accept success, neutral or skipped workflow]
  Accepted --> Checks[Check independent checks and statuses]
  Checks --> Final[Recheck live head and acceptance criteria]
  Final --> Status[Publish PR checks]
Loading

PR checks — After

flowchart TD
  Events[PR, producer start/completion, check, status] --> Protected[Protected controller validates live PR and routes]
  Protected --> Runs[Read latest exact-head producer runs]
  Runs --> Required{Required inference run?}
  Required -->|Yes| Jobs[Read run job history: latest execution per job]
  Jobs --> Roster[Require successful plan, summary and protected PR roster]
  Required -->|No| Accepted[Retain existing workflow result rules]
  Roster --> Checks[Check independent checks and statuses]
  Accepted --> Checks
  Checks --> Final[Recheck live head and acceptance criteria]
  Final --> Status[Publish PR checks]
Loading

Validation

  • SKIPPY_PYTHON=/Users/jdumay/.paseo/worktrees/2f4aprt2/gorgeous-stingray/target/upgrade-repro/automation-venv/bin/python just ci-automation — passed: 147 Python tests, 73 Node workflow/controller tests, and shell report contracts. The interpreter supplies the repository's pinned reporting dependencies.
  • actionlint .github/workflows/inference.yml — passed.
  • git diff --check — passed.
  • /Users/jdumay/.paseo/worktrees/2f4aprt2/gorgeous-stingray/target/upgrade-repro/automation-venv/bin/python /Users/jdumay/.codex/skills/.system/skill-creator/scripts/quick_validate.py .agents/skills/manage-ci — passed.
  • Regressions cover unlabeled admission policy, skipped plans/matrix results, the real green skipped run, missing configurations, stale heads, latest runs, partial reruns, API failures, and unchanged nightly/release publication requirements. Existing routing tests verify independent declarative lists and docs/report exclusions; runtime/pin/patch examples select inference.
  • Native model/hardware qualification was not run for this controller-only diff. Protected workflows take effect after merge to main; automatic unlabeled dispatch still requires live verification there. Existing PRs need a fresh matching event or rerun. This PR does not repair the independent failures now reported by Recover llama.cpp upgrade to 5bacb7c8 and fix runtime regressions #201's real qualification run.

Acceptance criteria

  • I ran the relevant local checks, or explained why they do not apply.
  • I agree to license my contributions under the Apache License, Version 2.0.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 170e318e-309c-4793-bc41-2b98af6b7fbf
Commits

Reviewing files that changed from the base of the PR and between 24caa5b and 9cbfbf3.

Files selected for processing: 8

  • .agents/skills/manage-ci/SKILL.md
  • .github/scripts/fixtures/inference-skipped-plan.json
  • .github/scripts/inference-schedule.test.cjs
  • .github/scripts/pr-checks.cjs
  • .github/scripts/pr-checks.test.cjs
  • .github/scripts/pr-inference-checks.cjs
  • .github/workflows/inference.yml
  • ci/README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@i386
i386 merged commit 6531cce into main Nov 25, 2026
50 checks passed
@i386
i386 deleted the fix/automatic-inference-qualification branch November 25, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant