Repository navigation
Restore main static analysis by extracting crew runtime operations - #37174
Conversation
|
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 23 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. |
Review statusThe problem. Main's "static analysis and typecheck" CI job was failing for every open PR. Two changes merged today (#36543 and #34890) pushed The change. The crew snapshot and subscription code that #34890 added moves unchanged out of What was verified (full review path, one round, no findings):
Not green yet, and not caused by this PR. Test shards 4, 9 and 12 fail in four Source Control renderer test files with Deferred (for Brennan, not this PR): these runtime layers keep getting re-split under line-limit pressure (#34890 split the database binding out of this same class, and this PR splits out crew). It's a structural pattern worth a look someday. It isn't a defect. For Brennan's review
|
Main CI is red because #36543 and #34890 together grew
automation-operations.tsto 301 nonblank, noncomment lines, above the 300-line limit. This blocks the static analysis and typecheck job on otherwise unrelated PRs.Move the crew snapshot and subscription operations added in #34890 into the neighboring
crew-operations.tsruntime layer. The moved code is unchanged; database binding becomes protected so its existing call sites remain in the automation layer. The original file is now 295 physical lines (263 counted by the configured rule), and the new file is 49 physical lines. No lint rules or user behavior change.Plan: extract one coherent crew read/subscription concept, retain the existing runtime inheritance pattern and public methods, and run the existing crew/runtime and automation publication tests. No saved data, wire format, new checks, defaults, or product choices change. Older phone/server/CLI flows and saved data stay compatible; no UI or conflicting ruling is involved.
Review classification: full path under the current literal criteria (a pure move, but in the orchestration runtime).
Validation: all four existing named test files passed through tc-gate (19 tests): crew read-model, default-pane acquisition, main-terminal acquisition, and automation change-publication. The standard pre-commit hook passed all staged-file checks. Head CI static analysis and typecheck passed (4m6s). The fail-fast watcher stopped on unrelated Source Control test failures in shards 4 and 12: their mock stores lack
remoteOperations, read byuse-worktree-context.ts:76after #37093 landed on main. CI tested merge d63b546 with main 9599d71; the Source Control subtree is identical to that main commit. Linux/Windows packaging and persistence passed; some other checks were still pending. No new tests are needed for a byte-preserving move. No difference from the existing mechanism is introduced.