Repository navigation
F4: keep the hold through row-page errors and restore the anchor on Retry (#69) - #73
Merged
Merged
Conversation
…(Refs #69) A row-page error during the selection-change hold ended the hold and committed the partial new comparison; Retry then paged only to the viewport, so the anchor flow was never loaded and the view landed on other flows. The hold now pauses while the error is shown (previous comparison kept, no summary or cell reads, no "Updating" status, grid still aria-busy) and resumes after a successful Retry. locate reports flows on unfetched pages as unknown rather than absent, even after an error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Moves the large-workload Flows grid harness into flows-grid-harness.ts and adds flows-grid-anchoring.test.tsx: an error during the hold then Retry (the issue repro), a repeated failure, a selection change while the error shows, the first-page error and error-outside-a-hold regressions, plus tests killing #23 QA mutants N5, N6 and N7. Row-page faults are injected through the flowRows spy. The D4 old-anchor offset check is now unconditional. The suite is split because each test of this workload adds about 100 MB to the worker heap and one file of 20 tests runs out of heap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 15, 2026
Closed
9 tasks
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.
Refs #69
Behaviour change
aria-busy(documented in the README: its rows are still the previous selection's).main: row 1149 at −68 px, another flow). A repeated failure pauses the hold again.locatereports flows that may be on unfetched pages as unknown (undefined), never absent (null), even after an error.Root cause:
useFlowGridrequired!isErrorforseeking, so an error ended the hold and committed the partial comparison; after Retry pages were fetched only to viewport + lookahead, so the anchor (110 rows further down) was never loaded. The suspectedlocatecontribution was checked by variants:locatechange alone does not fix the repro (row 1149), the hold change alone does (row 1260). In the repro no loaded row of the partial comparison was in view, so the pins survived thenulls; thelocatechange is kept as required hardening.Tests
flows-grid-anchoring.test.tsx(harness moved toflows-grid-harness.ts): error-during-hold + Retry, repeated failure, selection change during the error, first-page error (O12), error outside a hold, and O9/O8 tests. Faults are injected per row page through the test'sflowRowsspy; the mock scenario and URL scenarios are unchanged.ComparisonGrid.tsx, reverted, none committed): N5 (focus clause removed) killed by the O9 test; N6 (first pin only) killed by "anchors on a later recorded flow…"; N7 (no re-anchor when every pin is gone) killed by "re-anchors on the flows in view…". The three AC1 tests fail on thedeb4f29hook; the AC2/AC3 regressions pass on both.main); one file with 20 tests hit the 2.2 GB worker heap limit (OOM). Clearing the query cache per test did not help. Existing assertions and the 20 s/40 s budgets are unchanged.Container checks (workspace container, Compose project
lca-diff-f4-hold-retry, port 5196)format:checklinttypecheckbuildtest:unittest:e2e -- --project=chromiumflows-grid.spec.tsand all@smoke)Slowest new test in the parallel unit run: O9 focus test 21.8 s (40 s per-test budget, same as the existing deep tests); #69 tests 8–9 s.
Limitations
🤖 Generated with Claude Code