GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — refactor(pm-aggregator): split server.ts (5,299 lines) under the production line limit (#13052) by dezren39 · Pull Request #13093 · developing-today/code Conversation
|
| Module | Lines | Contents |
|---|---|---|
server.ts |
1,813 | Read routes, the dispatch, fetchHandler, bootstrap + timers |
server-wiring.ts |
412 | Config, stores, source selection, consumers, source-side sinks, fail-soft facet fallbacks |
server-contexts.ts |
809 | Cached page/API assemblies (board, roadmap, today, overview, attention, program) + health assembly, provenance priming, SLO summaries |
server-pages.ts |
716 | Standalone token pages: Needs-Drew answer page (#8568), decision-set pages (#8766), PWA manifest |
server-write-routes.ts |
744 | Report-record resolution, identity-registry admin + stack-token exchange (#9604/#9605), prompt / comment / action route families |
server-alert-routes.ts |
330 | Alert throat (#3676): push subscriptions, test sends, incident intake, alerts/notifications pages |
server-decision-routes.ts |
457 | Needs-Drew answers + decision-set submit/defer/request-info/drafts routes |
server-respond.ts |
34 | json / jsonCompact / html / service-worker Response constructors |
Every module is under the 2,500-line guard limit. The dispatch order in handler is unchanged: the route literals stay in server.ts (several test suites pin them there — nav.test.ts, board-view-8521, roadmap-view-8723, freshness-fallback-3976, ui-overhaul), and each moved route family is delegated to at its original position, returning null when its routes do not match.
The move is verbatim: a line-multiset diff of the new file set against the old server.ts shows every original line preserved except one deliberate alias (const hotListConsumer = githubHotListConsumer) needed because TS does not narrow an imported binding inside the boot closure the way it narrowed the module-local one.
bun test (pm-stack/aggregator): 3328 pass / 3 fail / 1 error — baseline on main was 3326 pass / 5 fail / 1 error; the 3 remaining failures are the pre-existing sandbox-timeout failures (collect-fleet-feed aggregator(collect-fleet-feed): --out takes the next token blindly and unknown args are ignored — trailing --out crashes at startup with a raw TypeError, '--out --weird' writes the feed to a file named --weird, and a typo'd --otu silently overwrites the default feed #3509 ×2, deriveEpicEta aggregator(forecast): capped resampling trials are recorded as completions, publishing optimistic P50/P80 dates #6386), a strict subset of the baseline set. The two baseline assembly-deadline PM aggregator /program still stalls on a cold first request #10383 failures pass in this run.bunx tsc --noEmit: output identical to main (one pre-existing error in src/escalation-tick.ts, untouched).check-production-line-limit.sh: server.ts no longer listed (warning gone, entry removed, no new errors); the only remaining failures are the three pre-existing over-limit Rust files on main. Guard contract tests (check-production-line-limit.test.sh) all pass, including "every grandfather entry names an existing file".Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
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 50 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Batch A merge attempt BLOCKED; no conflict resolution, commit, or push made. Rebase-and-merge onto current main conflicts in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Batch A merge attempt BLOCKED (task 21622, issue #13903); no conflict resolution, commit, or push made. Fresh worktree off origin/main at 3828de1, local
Why not mechanical: the PR branched at fa75486 (single commit on top), and main has since added 518 lines to server.ts plus 8 new source modules that do not exist anywhere in the PR head tree (verified via Named blocker: needs semantic relocation - rebase the extraction onto current main and relocate main's newer routes/wiring into the correct seam modules ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
2f9a5b8 to
e797ccb
Compare
…production line limit (#13052)
e797ccb to
8e453f2
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
split(pm-stack): server.ts (5,251 lines) under the production line limit (#12671)
There was an error while loading. Please reload this page.