openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Six guards that pass while proving nothing

Open M3gA-Mind opened this issue 3 months ago • 4 comments

  1. Connections.redirects.test.tsx:17-26 declares its OWN <TestRoutes> reproducing three routes by hand and renders that — it never imports AppRoutes.tsx. Deleting /skills or /channels from the real table leaves all three tests green. It asserts React Router works.
  2. navigation-settings-panels.spec.ts cannot distinguish a panel from its chrome — it asserts on an

    supplied by the ROUTE, not the panel, so it passes with the wrong panel rendered.

  3. navigation-smoothness.spec.ts declares per-route markers and never uses them: three tests that look like route coverage assert nothing about routes.
  4. The /accounts redirect was unguarded — its test asserts only that Accounts rendered, and Accounts is ALSO the element for /chat/:threadId?. Verified by deleting the redirect: the old test still passed.
  5. replace semantics were untested on all nine <Navigate> redirects. Dropping replace leaves the retired path on the history stack, so Back returns to it and is redirected forward again — a one-word edit produces a back-button trap.
  6. The embedding-state warning could stop rendering silently: deriveSourcePipelineHealth is covered exhaustively (14 cases) but the JSX rendering its verdict was not. Neutering {ingestedOnly && (…)} to {false && (…)} left the ENTIRE repo green — a correct verdict computed into a void, which is the exact shape of the 2,581-chunks/0-embedded incident.

4, 5 and 6 are now covered by our PRs. 1, 2 and 3 are not.


Found during a fleet-wide e2e coverage pass. Severity P2, category ci.

M3gA-Mind avatar Sep 01 '26 06:09 M3gA-Mind

Six guards that pass while proving nothing: tests that don't actually test the intended behavior, including tests that pass when redirects are deleted or rendering is neutered.

Labelled priority: p2.

tinysweeper avatar Sep 01 '26 06:09 tinysweeper

Picking up the first one on this list.

Looks like all three cases in that file are already checked against the real route table in other tests, so I want to confirm that properly by deleting each redirect and watching which tests notice, then get rid of the copy that never does.

obchain avatar Sep 28 '26 12:09 obchain

Triage: valid — Current review confirms this is a concrete, in-scope engineering issue or request: “Six guards that pass while proving nothing”. No complete resolution is evident in current main.

senamakel avatar Oct 09 '26 17:10 senamakel

An update against current main:

  1. Resolved: Connections.redirects.test.tsx and its private route copy were deleted (#6737).
  2. Still open: navigation-settings-panels.spec.ts passes on any marker anywhere in #root, not the panel's own heading.
  3. Still open: navigation-smoothness.spec.ts still declares per-route markers and never uses them. Items 4-6 were already covered. @obchain, if you're still on this, 2 and 3 are what's left.

M3gA-Mind avatar Nov 16 '26 16:11 M3gA-Mind