You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(cluster): bring the calvin dispatch/scheduler and error files back under the 500-line limit #353
Three files this branch touches exceed, or grow past, the house 500-line
non-test limit, so the local preflight (check C5) fails and was bypassed for the
fix push:
Resolved on fix/calvin-backpressure (PR #355), pushed preflight-clean without a bypass:
File
base
before
now
core/dispatch.rs
504
543
387
core/scheduler.rs
436
508
459
nodedb/src/error/types.rs
589
601
586
busy helpers (busy_backoff, note_dispatch_busy, note_dispatch_busy_shared) moved to core/busy.rs; the active dispatch path moved to core/active_dispatch.rs; the static dispatch site now calls note_dispatch_busy instead of duplicating the backoff block.
error/types.rs has no impl Error block to move — the file is the enum plus the Result alias — and the enum cannot be split without changing the public API, so it cannot reach 500 non-test lines. It is back below its base count, which is the C5 rule for a pre-existing over-limit file: no growth.
Activity
EnRaiha commentedon Sep 20, 2026
Resolved on
fix/calvin-backpressure(PR #355), pushed preflight-clean without a bypass:core/dispatch.rscore/scheduler.rsnodedb/src/error/types.rsbusy_backoff,note_dispatch_busy,note_dispatch_busy_shared) moved tocore/busy.rs; the active dispatch path moved tocore/active_dispatch.rs; the static dispatch site now callsnote_dispatch_busyinstead of duplicating the backoff block.error/types.rshas noimpl Errorblock to move — the file is the enum plus theResultalias — and the enum cannot be split without changing the public API, so it cannot reach 500 non-test lines. It is back below its base count, which is the C5 rule for a pre-existing over-limit file: no growth.cargo check -p nodedband clippy clean · 217 calvin lib tests +busy_backoff_is_bounded_and_jitteredpass.