Repository navigation
fix(pm-aggregator): type the mobile-views fixture cast with the real fact/state types (#17111) - #17112
Merged
Conversation
…fact/state types (#17111) tsc --noEmit on main failed at work-mobile-views.test.ts(495,17) with TS2769: the reference-filter test cast the JSON fixture's undecided entries to plain string fields, while mobileView's result carries MobileFactKey / UndecidedState, and bun:test's toEqual overloads reject the widening. Annotate the cast with the real types. Test-only change; the bun suite was already green, only the typecheck was red.
|
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 18 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #17111.
The pm-aggregator typecheck is red on main:
bunx tsc --noEmitfails attest/work-mobile-views.test.ts(495,17)with TS2769 — the reference-filter test casts the JSON fixture'sundecidedentries to plainstringfields, whilemobileView's result carries the narrowerMobileFactKey/UndecidedStatetypes, and bun:test'stoEqualoverloads reject the widening. The bun suite itself passes; only the typecheck is broken, and it blocks any lane chaining typecheck into verification (found by lane 2347-R-F while verifying PR #17101: runs 46365690637 and, against main, 46366858857, identical error).Fix: annotate the fixture cast with the real types imported from
src/work-mobile-views.ts. Test-only, no production code.Verification: fleet-run dispatch against this head —
bunx tsc --noEmit && bun test test/work-mobile-views.test.tsin pm-stack/aggregator (run linked in the PR comments when it lands; CI is not a merge gate).agent=xaltha lane=2347-R-F
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T06:37:42Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "c36a28d672723b085b14125996bcd72b1931e09d" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.