Repository navigation
fix(aggregator): typecheck the four drifted test files (#8133) - #8159
Conversation
bunx tsc --noEmit in pm-stack/aggregator reported 8 errors on main, all in test files, after the RepoCoverage census fields (staleOpenIssues, staleIssuesCollectedAt, staleIssuesError) and RoadmapAnnotation.kind were narrowed without updating their fixtures: - coverage.test.ts: annotate the row/report/goodFile fixtures as RepoCoverage/CoverageReport/CoverageSnapshotFile and give the row the three census fields, so toEqual() no longer infers a wider object. - feed.test.ts: drop the duplicated feedSectionStatus import. - roadmap-annotations.test.ts: declare the restored fixture as RoadmapAnnotation so kind is the RoadmapAnnotationKind union. - saas-extract-surrogate-7743.test.ts: usageNote is optional on the service (a missing note is legitimate); assert with ! like its paygNote/paygEstimate siblings. Type-only change: bun test in pm-stack/aggregator stays at 1845 pass / 18 fail, byte-identical to origin/main (the 18 failures — including the pre-existing renderProgramProject dezren39/nix card failure also noted in #8133 — are unrelated and tracked separately).
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 58 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. |
…e-census fields Shepherd completion of PR #8159 (task 17245): main gained a second RepoCoverage literal (the snapshot-rotation mk fixture) after this branch forked, missing the same three stale-census fields this PR adds to the row fixture \u2014 TS2739 on current main. Add them as null (census unavailable), matching the fixture null-census semantics; no assertion changes. Also merges current main into the branch: the feed.test.ts duplicate-import fix from this PR already landed on main independently, so that hunk is dropped. Verified in the worktree: bunx tsc --noEmit reports zero errors in all four of this PR files (total on main 22 -> 14, the rest is newer drift outside this PR scope); bun test on the four files: 126 pass, 0 fail.
|
Agent note — task 17245 claimed by lane any-d (PR shepherd pass)
|
|
Agent note — task 17245 merging PR #8159, completed against current main (lane any-d)
|
|
Agent note — task 17245 DONE: PR #8159 merged (completed against current main by this shepherd)
|
Closes #8133 (typecheck half).
bunx tsc --noEmitinpm-stack/aggregatorreported 8 errors on main, all in test files. They are type drift left behind by two narrowings that did not update their fixtures:test/coverage.test.tsRepoCoveragegrewstaleOpenIssues/staleIssuesCollectedAt/staleIssuesError; therowfixture is an unannotated object literal, sotoEqualinferred a wider typetest/feed.test.tsfeedSectionStatusimported twicetest/roadmap-annotations.test.tsrestoredis an unannotated literal, sokind: stringdoes not narrow toRoadmapAnnotationKindtest/saas-extract-surrogate-7743.test.tsusageNoteis optional (a missing note is legitimate); the sibling tests already assert with!Fixed by annotating the fixtures with the real types (and giving the coverage row its three census fields), deleting the duplicate import, and asserting
usageNote!the same waypaygNote!/paygEstimate!.note!already do. No runtime change.Verification
bunx tsc --noEmit→ clean (exit 0).bun test→ 1845 pass / 18 fail, byte-identical to a cleanorigin/mainworktree (verified side by side).The 18 runtime failures are pre-existing on main and not touched here. The named ones (
renderProgramProject > detail builder splits pool and roadmap … (#1126),inFlightBoardItems,pass-through pool assembly,source gate boot behavior) plus 13 unnamed 5s timeouts reproduce on a pristine checkout. Note that therenderProgramProjectone is thedezren39/nixcard failure #8133 already flagged — it needs its own issue rather than a test-fixture edit.Confidence
High, low risk: type annotations and one
!on a test-only optional, no production path touched.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.