Repository navigation
test(studio): the sealed parity gate counts a clip list read again giving its clips their ids - #9091
Conversation
…ving its clips their ids
terencecho
left a comment
There was a problem hiding this comment.
P2 — Make the reread differ only in clip identity. At packages/studio/src/player/hooks/useTimelinePlayer.reloadedTimeline.test.ts:128, the starting row also differs in fields such as label, kind, and authoredTrack. Both modes still passed when I removed every identity comparison added by #9076. Match the unrelated fields across the reread and assert the scoped key alongside domId. With that fixture, both modes passed on the current implementation and failed with the identity comparison removed.
63 focused Studio tests and 12 parity-runner tests passed. The local check used the test harness. Real-browser playback was unverified.
— tai (automated review)
|
Fixed in a24860e. The clip the timeline starts with now matches the re-read in every field except the ones that name it on its page.
|
terencecho
left a comment
There was a problem hiding this comment.
The revised reread fixture holds the other clip fields constant and asserts the whole row, including the scoped key, domId, and selector. Both modes failed at that assertion with the old comparator and with only the identity comparisons removed.
63 targeted Studio tests and 12 parity-runner tests passed. The new manifest row reported parity from the two mode-specific reports. The full browser matrix was unverified locally, and the Studio checks were still running.
— tai (automated review)
What
The sealed parity gate now counts a new behaviour: a clip list read again with the same clips gives them their ids on the timeline. The test runs in both modes.
Why
0.9.106 shipped a regression that only a sealed preview showed. A sealed film can post its clip list before its page loads, with clips known only by position. When the list was read again with the clips' real ids, Studio judged it unchanged and kept the old one, so a clip could not be found by id. #9076 fixed it for 0.9.107. No parity row checked this, which is how the regression reached a release. With this row, the gate fails if either mode drops such a re-read.
Related work
Follow-up to #9076.
How
useTimelinePlayer.reloadedTimeline.test.ts: in each mode, the timeline holds clipaby position only, as an early read leaves it. A reloaded film then answers with the same single clip. After its first state tick the timeline must holdawith its element id.reloadedFilmtakes the film and its clip list as arguments, so the existing case is unchanged.manifest.json: a new row,clip-ids-on-reread, lists the case. This PR adds only that row.Test plan
useTimelinePlayer.reloadedTimeline.test.ts("gives a clip its ids when its list is read again with the same clips") fails in both modes withtimelinePlayerSync.tsas it was before fix(studio): a clip list read again keeps every change, so sealed clips get their ids #9076.check(40 behaviours, 2 without a test yet),run unsealed,run sealed,compareandgatepass, with 36 of 40 at parity. The other two not at parity are unrelated: the edit accuracy bench is measured only in CI, and the 200,000-character typing test times out sealed on this machine while main's CI has that row at parity.HF_PARITY_MODEunset, the changed file,timelinePlayerSync.test.tsanduseTimelinePlayer.test.tspass 63 tests, 3 runs in a row.tsc --noEmit,oxlint,oxfmtand the comment ratchet are clean.No visible change
Tests and the parity manifest only.