Skip to content

Gate inference qualification on published regressions - #121

Open
i386 wants to merge 10 commits into
ci/manual-nightly-publicationfrom
codex/inference-regression-checks
Open

i386 wants to merge 10 commits into
ci/manual-nightly-publicationfrom
codex/inference-regression-checks

Conversation

@i386

@i386 i386 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #165 → #121 → #122 → #124 (stack #166). This PR builds on #165.

Original problem

Labeled PR and manual smoke runs verified native execution without comparing their measured performance against the saved public baseline. Failed-only reruns could also lose successful configurations from earlier attempts. Maintainers can now gate these runs on comparable measurements using #165's shared health report and 1% tolerance.

Diagnostics

The publisher already has workload-bound baselines, but non-publishing runs did not read them. Whole-file harness comparisons also treated unrelated reporting or split-only edits as a change to every benchmark. Publication remains protected-main-only; native jobs cannot receive its credentials.

Fix

  • Read one immutable Hugging Face baseline snapshot anonymously and compare each verified configuration independently. Fail on regressions beyond 1%, unreadable baselines, or missing required evidence. Show new series when a matching baseline does not exist.
  • Use Report inference health consistently on Hugging Face and Actions #165's regression-first report, current values and complete configuration coverage. Read-only comparisons use inline measured-comparison charts; publishing runs retain the shared historical PNGs and immutable per-run URLs.
  • Compare selected benchmark ASTs and pinned inputs as data, without executing candidate code. Split-only changes do not invalidate standalone history.
  • Reuse successful receipts from prior attempts only when the current attempt has no artifact directory and source/native identities verify. Never replace current failed evidence with an old success.
  • Preserve PR qualify admission and release qualification. Scheduled and manual protected-main nightlies use Report inference health consistently on Hugging Face and Actions #165's required publication policy; a merge to main adds no inference run.

Compatibility

No runtime, ABI or Parquet schema change. Existing 1% baseline semantics and audited recipe identities come from #165. Comparisons cannot seed, promote or publish a baseline.

Validation

After the stack update to 4eca7f8, just ci-automation passed with Python 3.12 and the pinned publication dependencies, including all 61 Node tests and the Parquet/PNG publication tests. Workflow lint and git diff --cached --check also passed.

Passed locally on Python 3.12:

  • just automation-contracts
  • just inference-contracts after the final comparison test changes
  • uv run --python 3.12 --with-requirements ci/inference-publish-requirements.txt -- just inference-publication-test
  • bash scripts/tests/inference-report.sh
  • node --test .github/scripts/*.test.cjs — 32 passed
  • actionlint .github/workflows/inference.yml .github/workflows/ci.yml
  • git diff --check

No new model or hardware qualification ran. Live baseline gating requires the protected workflow after landing; local contracts do not establish device qualification.

CI repair validation

The old native package jobs were cancelled or failed in runner setup. Re-ran the two HTTP 500 failures, then ported the process-exit cleanup fix and its three regression contracts to fresh branch heads. The probe rechecks child exit before treating a permission-denied process group as live.

SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just automation-contracts, bash -n scripts/ci-model-fetch.sh, and git diff --check passed on macOS ARM64. Fresh package/device checks remain pending in CI. Existing incomplete feature acceptance tasks remain incomplete.

Native cache validation

The v1 shared Cargo/sccache inputs omitted the native patch recipe, allowing native artifacts from another source tree to be reused. Ported main’s source-bound dependency/extra-file identity and cold-build directory fix. Native patch edits/removals now invalidate dependency caches; Rust-only changes retain their permitted dependency reuse.

SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just automation-contracts and git diff --check passed on macOS ARM64, including the native-cache regressions. Fresh model/device qualification is pending on the new head.

Main CI fixes refreshed — 6e9ff22e

Merged target main cc2a27435e798649a9cb938d600d39722e4a2263, including #254's separate queue/execution budgets and #256's formation-bound peer rendezvous, verified child listener readiness and control availability during preparation. Earlier split qualification failures included connection-refused/timeouts at the leader control port; those older results predate these shared fixes. Other merged CI fixes include Windows Vulkan path handling and the shared Windows GPU smoke workflow.

SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automation passed on the merged tree, including deadline, peer identity, listener ownership, log streaming, reporting/publication and workflow contracts. git diff --check and git diff --cached --check passed. This is a normal base merge preserving the PR's feature changes; no additional Rust/native feature change was authored in this refresh. New exact-head source/package/device checks and native inference qualification are pending; earlier native results do not qualify this new head. The previous head remains available in history as 88f4af338c46a8775d347cef6d5c6aecc0a0de58.

Hosted CI on the initial merge exposed a duplicated PROFILE workflow env key and older schedule-test assertions absent from that commit. These are corrected in 6e9ff22e; actionlint .github/workflows/inference.yml and the complete just ci-automation suite (102 Node tests plus Python/publication/shell contracts) passed on the corrected tree. Historical recipe aliases remain unchanged.

Split preparation rendezvous repair

The follow-up to main's peer lifecycle improvements is included at bf065baa082a07c69c62b6ccecbb7333fdf55256. The failed #239 split attempt showed a late-starting peer remained invisible during model admission and stage planning. Control now exposes the matching formation/source/attempt in the preparing phase during those operations. Native-child readiness, listener ownership and completion evidence remain required; timeouts and qualification policy are unchanged.

Validation for this head: git diff --check, just --command env PYTHONPATH=scripts /tmp/skippy-ci-repair/automation-venv312/bin/python scripts/tests/inference_peer.py (12 tests), and SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automation all passed. The new real-loopback regression covers both roles and both preparation operations, rejects premature readiness, and verifies cleanup on preparation failure. Exact-head hardware qualification is pending CI.

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.

@i386

i386 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Do not merge until we have populated a baseline using inference qualification set to nightly.

@i386
i386 added this pull request to stack #144 November 22, 2026 00:01
@coderabbitai

coderabbitai Bot commented Nov 22, 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 49 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: d3015594-a9be-4964-bb56-9174e9f573a6
Commits

Reviewing files that changed from the base of the PR and between c8f1789 and bf065ba.

Files selected for processing: 22

  • .github/scripts/inference-publication.test.cjs
  • .github/scripts/inference-schedule.test.cjs
  • .github/workflows/inference.yml
  • Justfile
  • ci/README.md
  • docs/design/inference-qualification-examples/README.md
  • docs/design/inference-qualification-examples/nightly-promotion.md
  • docs/design/inference-qualification-examples/nightly-regression.md
  • docs/design/inference-qualification-examples/pr-pass.md
  • docs/design/inference-qualification-examples/pr-regression.md
  • scripts/inference-compare.py
  • scripts/inference-dispatch.py
  • scripts/inference-execute.py
  • scripts/inference-publish-nightly.py
  • scripts/lib/inference_baselines.py
  • scripts/lib/inference_comparability.py
  • scripts/lib/inference_markdown.py
  • scripts/lib/inference_mermaid.py
  • scripts/lib/inference_nightly_metrics.py
  • scripts/lib/inference_nightly_results.py
  • scripts/tests/inference_nightly.py
  • scripts/tests/inference_peer.py
  • 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 requested a review from danielwinterw November 22, 2026 01:45
@i386

i386 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Needs @danielwinterw's eyes and brain before merging

@i386
i386 removed this pull request from stack #144 November 22, 2026 04:39
@i386
i386 changed the base branch from main to ci/manual-nightly-publication November 22, 2026 04:39
@i386
i386 added this pull request to stack #166 November 22, 2026 04:39

@i386 i386 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented at head 4eca7f82e3 (stacked on #165) — content follows #165's design; blocked behind #165 and one lane to rerun.

The gating logic (immutable anonymous HF baseline snapshot, per-configuration 1% comparison, fail-closed on unreadable baselines or missing evidence, receipt reuse only when the current attempt has no artifacts and identities verify) is coherent and the AST-comparison-without-executing-candidate-code approach for benchmark equivalence is the right trust boundary. I found no new findings of my own at this layer.

Blockers/notes:

  • #165's open items (smoke-metrics Major, mermaid diagrams) apply to this stack; #165 should land first.
  • The ARM64 CUDA 13 package lane failed on 11-22 with a server-side curl 500 (exit 22) — infra, not this diff, but it needs a green rerun at this head before any approval story.
  • Same AGENTS.md Mermaid requirement (workflow changes) unmet at this layer too.

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Skippy Lab Qualification: Failed or incomplete

Commit: bf065baa082a07c69c62b6ccecbb7333fdf55256 · PR smoke · Workflow and timings · Saved evidence

Inference admission or qualification incomplete or failed.

Latest successful main: run 45835599636, attempt 1, commit f243a305f497cbe5f897fdbe384235b0a62edf3f. Comparison unavailable: workload inputs changed or could not be verified.

Configuration Outcome Prefill tok/s Prefill vs main Decode tok/s Decode vs main Actions logs
qwen35-4b-standalone Passed 3780.1 Unavailable 62.8 Unavailable Logs
qwen3-coder-30b-a3b-standalone Passed 2833.3 Unavailable 85.1 Unavailable Logs
qwen3-coder-30b-a3b-split Failed Unavailable Unavailable Unavailable Unavailable Logs
qwen36-35b-a3b-standalone Passed 1913.8 Unavailable 62.4 Unavailable Logs
qwen36-35b-a3b-split Passed 1898.5 Unavailable 40.9 Unavailable Logs
qwen38-flash-next-standalone Passed 732.6 Unavailable 30.2 Unavailable Logs
qwen38-flash-next-split Passed 527.7 Unavailable 26.3 Unavailable Logs

TPS comes from three separate warmed, uncached probes at concurrency 1, each generating exactly 128 tokens. The scored correctness answers and each probe's 64-token warmup are excluded. Each rate is total tokens / total server-reported phase time, not an average of request rates. Client elapsed times and raw responses are retained in throughput-probe.json. These bounded samples are not sustained benchmarks or controlled speedup comparisons. Legacy short-answer receipts and missing or invalid probe evidence show as Unavailable.

Deltas use unrounded rates from matching PR-profile smoke receipts on the latest successful main run, including the nightly smoke evidence. Positive means faster. Changed workload inputs, different serving host classes, unequal phase token counts or missing evidence show Unavailable. Physical Spark placement and runtime conditions can differ; deltas are descriptive, not controlled speedup claims.

Smoke checks cover GPU startup, deterministic endpoint repeats and bounded streaming. They do not establish an AgentX performance score. Nightly history and saved performance baselines are published separately; a saved baseline can be older than the latest successful main run used here. Native build and qualification output streams into each configuration’s Actions log, with per-attempt copies in Saved evidence. Any capture gaps are reported in the log and saved diagnostics. GitHub evidence copies expire after 30 days.

This branch has not been deployed

No deployments
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.

2 participants