Repository navigation
ci: reduce redundant runner admissions and preserve main caches - #4284
Conversation
Independent review — main Build non-preemptionAccepted source for normal publication; no blocking finding. Exact commit Independently verified manifest SHA The only functional workflow delta is The new test evaluates the parsed workflow's actual expression, not a second handwritten policy. For its six bounded lowercase event/ref inputs and equality/boolean-only expression, Node vm and Actions yield the same booleans. GitHub's case-insensitive string equality and broader coercion rules differ generally; the test explicitly limits its equivalence claim and the existing exact-expression assertion prevents unnoticed unsupported syntax. All actual supported events are represented; the other-push row is an extra boundary although the workflow only triggers pushes to main. GitHub expression semantics Actual supplied Bun1.4.2 The tradeoff is correctly documented: admitted older-main Build completes before the latest pending main run starts; default concurrency still coalesces pending intermediate commits. This protects an admitted cache producer but does not guarantee every main commit receives a finished Build, cache hits, queue elimination or immediate latest-main proof. Cancellation from another cause remains possible. Candidate dispatch groups remain separate. GitHub concurrency Postmerge observation should inspect one ordinary completed main producer and subsequent ordinary PR cache reuse before claiming throughput improvement. No rerun/dispatch or scheduling mutation is needed for source acceptance. Current CI capacity and cache retention can remain independent bottlenecks. |
|
Source review disposition for exact head The reviewers checked all 33 ordinary job definitions, skipped-needs propagation, cancellation, candidate fail-closed behavior, event merge SHA identity, CLI tag publication, and the existing visible failure when integration-scope detection fails. Parsed comparison preserves the seven candidate gates and all other workflow values outside the intended predicates/source fallback. Shared resolver, receipts and eight-image digest proof remain unchanged. Observed local proof: pinned Bun 1.4.2, 324 tests / 2,394 assertions; seven causal old-source resolver-admission failures; scoped strict types, actionlint with ShellCheck, lint/format, manual register, scoped SAST and normal hooks. Frozen manifest SHA-256: Publication was guarded against public main This is source acceptance, not merge or runtime acceptance. The new ordinary hosted run must demonstrate skipped resolver/no runner, actual useful-job execution on the expected commit, and complete fresh checks. No manual candidate dispatch, retry, cancellation, runner-policy change or paid-capacity change was made. Local checks do not establish measured queue improvement. |
Ordinary CI workflows previously waited for a hosted runner just to echo their already-known event commit, then queued again for useful work. The seven workflows now reserve the standalone source resolver for release candidates. All 33 ordinary job definitions explicitly handle the intentional skip while preserving cancellation, dependency, draft, fork and path decisions. Pull requests and merge groups retain their event merge commit; manual CLI publication retains its resolved release tag.
Main Build runs now continue when another main push arrives, so they can finish publishing their reusable layer cache. Newer pushes coalesce in the pending slot. PR and merge-group cancellation remains unchanged; release candidates retain their separate groups and validation.
Candidate SHA validation, current-attempt receipts, all eight image digest checks, runner permissions, test commands and timeout budgets remain unchanged. Failed integration-scope detection still admits Backend integration so its existing first step reports the failure; it does not run a guessed scope or report a successful skip.
Validation:
Fresh hosted CI is still required. Local expression checks cover the current supported predicates, not GitHub's scheduler implementation. Hosted ordinary runs must confirm skipped resolver jobs without runner assignment, useful checks actually executing on the expected source, and complete normal gates. No release-candidate dispatch, CI cancellation, runner-policy change or paid capacity change was performed; no measured queue improvement is claimed yet.