Skip to content

fix(aggregator): typecheck the four drifted test files (#8133) - #8159

Merged
dezren39 merged 3 commits into
mainfrom
daily/8158-ideation
Nov 14, 2026
Merged

dezren39 merged 3 commits into
mainfrom
daily/8158-ideation

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Closes #8133 (typecheck half).

bunx tsc --noEmit in pm-stack/aggregator reported 8 errors on main, all in test files. They are type drift left behind by two narrowings that did not update their fixtures:

file error cause
test/coverage.test.ts TS2769 ×2 RepoCoverage grew staleOpenIssues/staleIssuesCollectedAt/staleIssuesError; the row fixture is an unannotated object literal, so toEqual inferred a wider type
test/feed.test.ts TS2300 ×2 feedSectionStatus imported twice
test/roadmap-annotations.test.ts TS2769 restored is an unannotated literal, so kind: string does not narrow to RoadmapAnnotationKind
test/saas-extract-surrogate-7743.test.ts TS18048/TS2345 ×3 usageNote is 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 way paygNote!/paygEstimate!.note! already do. No runtime change.

Verification

  • bunx tsc --noEmit → clean (exit 0).
  • bun test → 1845 pass / 18 fail, byte-identical to a clean origin/main worktree (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 the renderProgramProject one is the dezren39/nix card 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.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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).
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 14:19
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T14:19:12.742531Z
We couldn’t complete this review. Comment @codex review to try again.
ca9a09f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fddbce5d-f4db-40cf-813a-10fcb8f21e54
Commits

Reviewing files that changed from the base of the PR and between 18692d0 and 9e2bba3.

Files selected for processing: 3

  • pm-stack/aggregator/test/coverage.test.ts
  • pm-stack/aggregator/test/roadmap-annotations.test.ts
  • pm-stack/aggregator/test/saas-extract-surrogate-7743.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

repo-worker-tmp-code-b added 2 commits November 14, 2026 15:07
…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.
@dezren39

Copy link
Copy Markdown
Member Author

Agent note — task 17245 claimed by lane any-d (PR shepherd pass)

@dezren39

Copy link
Copy Markdown
Member Author

Agent note — task 17245 merging PR #8159, completed against current main (lane any-d)

  • state: verified → merging (branch updated by this shepherd: merge of current main 5a75a02 + fix commit 9e2bba3, pushed to daily/8158-ideation)
  • What verification found (bunx tsc --noEmit in pm-stack/aggregator, worktree on main fe2babd): bare main reported 22 errors. Of this PR's four files: feed.test.ts no longer errors (its duplicate-import fix landed on main independently — that hunk is dropped by the merge); coverage/roadmap-annotations/saas-extract still errored as the PR describes; and coverage.test.ts had gained a NEW same-cause error (TS2739: the snapshot-rotation mk fixture literal missing the same three stale-census fields).
  • Shepherd completion: merged current main into the branch and added the missing fixture fields to mk (staleOpenIssues/staleIssuesCollectedAt/staleIssuesError as null — census unavailable, matching the fixture's null-census semantics; no assertion changes).
  • Verified on the final branch head: tsc reports ZERO errors in all four of this PR's files; bun test on the four files: 126 pass, 0 fail.
  • Remaining drift (out of scope, filed): 14 tsc errors in seven other test files (aa-batches, quota-actions-1174, quota-exhaustion, projects, overview, decisions-page, claude-adapter) — filed as aggregator: bunx tsc --noEmit reports 14 errors on main (aa-batches/quota/claude-adapter + 4 more test files) #10379 with the inventory.
  • Review gate: zero inline Codex findings exist on this PR (the summary flag traces to a review run that reported Codex usage limits in the same minute; no finding was ever posted).

@dezren39
dezren39 merged commit 9ab6bcc into main Nov 14, 2026
2 checks passed
@dezren39
dezren39 deleted the daily/8158-ideation branch November 14, 2026 21:10
@dezren39

Copy link
Copy Markdown
Member Author

Agent note — task 17245 DONE: PR #8159 merged (completed against current main by this shepherd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aggregator: bunx tsc --noEmit reports 8 errors on main (coverage/feed/roadmap/saas test files)

2 participants