Repository navigation
test: preserve descriptor helper evaluation and list state - #1967
Conversation
Benchmark report
Compares js-framework: 1k/10k row operations
All 20 timed operations (19 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)No changes across 60 measured values. Public-import reachability bundles (bytes)No changes across 111 measured values. |
|
Needs changes. I found no wrong render in the delta or context-tracking paths, but the cost and scope don't match how much code can actually use this.
Merge note: the Verified:
|
|
Good to go with nits. The rework addresses the earlier review. The production-TSRX field-mutation case (L218–L225) is the real guard: the withdrawn projection accepted this exact helper shape, so it would render the stale
Verified:
|
Summary
Add public regression coverage for imported descriptor-list helpers, including same-object field mutation, live import reads, per-row default props, keyed state and suspended updates.
Why
The proposed production-only descriptor reuse could skip authored reads: mutating an existing item and publishing a new array left stale text and event data. Getter-driven import changes and transient per-row defaults also diverged from development and ordinary descriptor rendering. The optimization has been withdrawn in a forward commit.
The final runtime, compiler, benchmark fixtures and work gates match the required main revision
64c33de2f09a40eef4b4e9a6f0a4ead6fb955efe. This PR now changes only two test files. Previous allocation-elision and timing claims do not apply to the final diff.Changes
Validation
e1b505653, against main64c33de2f: 20/20 owning tests pass and fullpnpm syncpasses with no generated changes. The two-test diff is unchanged from its previously qualified version.Risk / follow-ups
No framework or benchmark behavior changes in this final diff. The prior memo-wall survivor-gate change is also withdrawn. No new speedup, bundle-size improvement or Ripple parity is claimed. The broader performance investigation remains open.
Provenance
agent-authored)Codex task · implementation host
com-79386.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Only new Vitest integration files; no production code paths change.
Overview
Adds test-only regression coverage for Octane lists built from imported
buildRows-style helpers—no runtime, compiler, or benchmark changes in this diff.descriptor-list-behavior.test.tsintroduces Vite + happy-dom integration fixtures (client IIFE and SSR bundle) that exercise keyed row lists through realoctane/compiler/vitebuilds. Scenarios include memoholdbuffering, sibling suspension/startTransition, reordering, context refresh,Activityhide/show lifecycle,descriptorChildreninspection, undefined keys, live key mutation during transitions, unkeyed→keyed recovery, andhydrateRootadoption afterrenderToString.vite-descriptor-helpers.test.tslocks mutated-item render parity when a new outer array is published: in-place field mutation, getter-driven import/callback changes, and transientdefaultProps. The same expectations run under production TSRX, production JSX, forwarded helpers, and a RunnableDevEnvironment path that uses Vite’s actual dev transforms (with browser HMR client stubbed for render-only control).Reviewed by Cursor Bugbot for commit e1b5056. Bugbot is set up for automated code reviews on this repo. Configure here.