Skip to content

[Bug] Held comparison Retry assertion fails in the standalone grid test #91

Open

Description

@DavidVFitzGerald

Summary and impact

The existing bare-Flows-grid component test for a row-page error during a held selection update intermittently fails after Retry: it cannot observe the expected “Updating the comparison…” state. It failed in a complete two-worker run and again in an isolated sequential rerun during #27 verification. Investigate test synchronization versus a product hold/Retry defect; no product root cause is established. This makes broad frontend verification unreliable.

Delivery phase

Phase 1 - frontend with mock services.

Steps to reproduce

  1. Use the guarded rootless workspace with the repository's frozen frontend dependencies and synthetic large-grid harness.
  2. Inside the container run:
cd apps/frontend
npx vitest run --maxWorkers=1 src/services/mock/flows-grid-anchoring.test.tsx -t 'keeps the previous comparison through an error during the hold and restores the anchor on Retry'

The failure was observed during npm run test:unit -- --maxWorkers=2 and a sequential three-case rerun. Frequency beyond these observations is unknown. Record host load with further attempts.

Expected behavior and authority

The #69 regression should deterministically demonstrate that a row-page error preserves the comparison, Retry resumes the hold, and the anchored flow is restored. Specification §§6.3–6.4 and §9.2 require stable windowed comparison behavior and meaningful regression checks.

Actual behavior

flows-grid-anchoring.test.tsx:183 times out waiting for screen.getByText('Updating the comparison…') after Retry. This report does not establish that the final anchor or user-visible product behavior is wrong; the transient assertion may be racing. Do not weaken or remove it without verifying the intended behavior.

Environment and version

Rootless Compose project lca-diff-f5-indicators, pinned repository workspace image, Node 24.22.3, npm 11.19.1, Vitest 5.1.0/jsdom, synthetic mock data. Complete-run application SHA 6c823c87cf0e42f2760103e60972f46c134bfca4; targeted run began there and current main af5317d was merged during the run, changing only F4 evidence/additional test files, not this test/harness or grid implementation. Current branch head 9d0037e00e2c9444bf6af02b5ea69d195d403e43.

Context and dependencies

Related #69, #26 and #76; found while validating #27 / PR #88. #69 is closed after its delivered fix; this is a distinct observation of its transient-state regression assertion, not an asserted recurrence of anchor loss. #76 targets different 300-selection/deep-scroll cases. A search of open/closed hold/Retry issues found no open matching report.

The failing test renders FlowsGrid directly through flows-grid-harness.ts; it does not render App, IndicatorProvider or the new selector. git diff origin/main HEAD -- for this test, its harness and src/components/comparison/ is empty. Preserve concurrent selector/F4 work. Draft investigation; PM must bound the fix and recheck readiness.

Acceptance criteria

  • AC1 — Characterize the transient-state failure with deterministic ordering/timing evidence, including whether product behavior or the assertion is wrong.
  • AC2 — Correct the defect with a meaningful regression proving preserved comparison, resumed reads and restored anchor; no arbitrary timeout increase or disabled assertion.
  • AC3 — Focused and applicable complete container checks pass, with exact-SHA independent QA and any remaining unrelated flakes recorded.

Regression and verification plan

Run the focused command above in the guarded container before/after the fix, then the related hold/Retry and grid anchoring tests and applicable format/lint/type/unit/build checks. If product code changes, verify the corresponding browser journey. Public fixtures are synthetic only. These checks do not prove real API/auth integration.

Out of scope and follow-ups

No selector, persistence, scientific transformation, backend or unrelated timeout changes. #27 remains a separate selector implementation; #76 retains its existing performance-headroom scope. No implementation is started by this report.

Activity

  1. added
    bug
    frontend
    on Nov 15, 2026
  2. DavidVFitzGerald commented on Nov 15, 2026

    @DavidVFitzGerald
    OwnerAuthor

    Independent QA comparison for #27 (no application/test edits): the single hold/Retry case passed on both current main af5317d (14.8 s) and merged selector branch 9d0037e (9.94 s) in the same isolated guarded rootless QA project, with --maxWorkers=1.

    docker compose -p lca-diff-f5-indicators-qa exec -T workspace bash -lc 'cd apps/frontend && npx vitest run src/services/mock/flows-grid-anchoring.test.tsx -t "keeps the previous comparison through an error during the hold and restores the anchor on Retry" --maxWorkers=1'

    Each run: 1 passed, 7 unselected. These retries do not invalidate the recorded intermittent failures or establish their cause. The relevant harness mounts FlowsGrid directly, without the new indicator provider/App; selector code is absent from that test execution path. No baseline failure or full-suite PASS is claimed by this comparison. The original observed failures remain tracked here.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions