Repository navigation
Preserve inference execution time after Spark queueing - #254
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou'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 38 minutes. View limit details
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. |
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original problem
PR inference qualification can cancel healthy native work because time spent waiting for Sparks consumes the same 90-minute deadline as compilation and tests. Give queued PR work a bounded execution window once it starts, so capacity pressure does not masquerade as an inference failure.
This is a main-based infrastructure fix, separate from the llama upgrade in #235.
Diagnostics
In #235's Coder split job, the formation was created at 22:19 UTC on November 27. Both members started at 23:41 UTC, completed their builds and reached server startup. At 23:46 UTC the controller exhausted its 5,400-second dispatch deadline and cancelled both members, despite native lease deadlines around 00:12 UTC. No qualification assertion had failed.
An offline fake-clock reproduction queues a job for 82 minutes, then completes it at minute 100. It fails on main with
JY qualification timed outand passes with this change.Fix
The seven configurations, model inputs, admission checks and qualification assertions are unchanged. Native leases and cleanup remain bounded. This changes protected controller code; existing in-flight workflows retain their current process and deadline. Candidate PR qualification cannot establish that the changed protected controller is deployed. A real post-merge qualification run must verify it.
Workflow diagrams
Inference qualification — Before
flowchart TD T[PR target / schedule / manual / reusable call] --> P[Protected admission and plan] P --> Q[Qualification matrix: max 3 concurrent] subgraph QJ[PR qualification job: 100-minute Actions limit] B[Placement + queue + native execution share 90 minutes] B --> U[Upload evidence; cancel outstanding work on failure] end Q --> B U --> A[Inference evidence artifacts] P --> N[Scheduled nightly publisher] Q --> N A --> N P --> S[Summary: require admitted plan and successful qualification] Q --> S N --> S N --> HF[Public nightly report] S --> R[PR results comment] A --> R Q --> R P --> RInference qualification — After
flowchart TD T[PR target / schedule / manual / reusable call] --> P[Protected admission and plan] P --> Q[Qualification matrix: max 3 concurrent] subgraph QJ[PR qualification job: 130-minute Actions limit] B[Placement + queue: at most 90 minutes] B -->|First native member observed running| E[Execution: at most 31 minutes; never reset] E --> U[Upload evidence; cancel outstanding work on failure] B -->|Queue timeout| U end Q --> B U --> A[Inference evidence artifacts] P --> N[Scheduled nightly publisher] Q --> N A --> N P --> S[Summary: require admitted plan and successful qualification] Q --> S N --> S N --> HF[Public nightly report] S --> R[PR results comment] A --> R Q --> R P --> RThe publisher applies only to scheduled nightly runs. Nightly/release execution keeps its existing total deadline and Actions limit. No composite action flow changes.
Validation
just --justfile /dev/stdin --working-directory . repro, with recipePYTHONPATH=scripts /opt/homebrew/bin/python3.12 scripts/tests/inference_deadlines.py DeadlineTests.test_long_queue_does_not_consume_native_execution_budget, fails with the original timeout.just inference-contracts: passes, including all seven new deadline regressions and the buffered-pipe streaming rehearsal.SKIPPY_PYTHON=/Users/jdumay/.paseo/worktrees/2f4aprt2/gorgeous-stingray/target/upgrade-repro/automation-venv/bin/python just ci-automation: passes, using the supplied reporting dependencies. The first invocation with the default interpreter stopped becausepyarrowwas absent; the complete rerun above exited successfully.just --justfile /dev/stdin --working-directory . workflow-check, with recipeactionlint .github/workflows/inference.yml: passes.git diff --check: passes.No Rust or native/model implementation changes. Hardware qualification of this controller change has not run; #235's independent qualification is still in progress.
Acceptance criteria