Skip to content

test: quiet the known log noise - #161

Merged
Madraka merged 1 commit into
mainfrom
test/quiet-log-noise
Nov 8, 2026
Merged

Madraka merged 1 commit into
mainfrom
test/quiet-log-noise

Conversation

@Madraka

@Madraka Madraka commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

What

One of the test-log noise sources from the security/quality sweep, fixed where it is a one-word change: Kumo's Badge resolves the dot colour from variant, and the dot table only knows none, success, warning, error and neutral. Every <Badge variant="secondary" appearance="dot"> therefore logged [kumo] Unknown variant "secondary". Expected one of: none, success, warning, error, neutral. Falling back to "none". (36 lines in the last green CI run, all from test/new-site.test.tsx) and rendered no dot at all. Five places showed an unpublished site or an unknown scheduler state that way:

  • apps/studio/src/routes/SitesPage.tsx, routes/ProjectPage.tsx, components/site-overview/SiteStatusCard.tsx: "Not published" badge,
  • apps/studio/src/routes/SchedulesPage.tsx, components/ScheduleSettings.tsx: scheduler state unknown.

They now use neutral (Kumo: "Neutral dot for informational status"), so the dot shows and the warning is gone. Every other dot Badge (literals and the *_VARIANT / *_BADGE maps in Studio and packages/ui) already uses a value from that table.

The other noise sources (Better Auth's Failed to validate API key error log from negative tests, the nested <button> hydration warnings in three screens, useRouter outside a RouterProvider in the language-settings tests, happy-dom's iframe DOMException in packages/ui) are not one-liners and are listed with a proposed fix each in the sweep report.

Checked locally: pnpm design:lint on the five files, pnpm typecheck for Studio, and test/new-site.test.tsx, test/schedules-screens.test.tsx, test/collections-studio.test.tsx, test/design-rules.test.ts (601 tests, no Unknown variant line left in the output).

Checklist

  • Changed test files and Studio typecheck pass locally; pnpm check and cargo test --workspace are left to CI (one machine, several sessions)
  • Contract change? No
  • User-visible change in a published package? No: Studio is bundled into @cloudhal/cli, but a missing status dot does not warrant a release note (no changeset)
  • Commits are signed off (git commit -s, DCO)
  • Docs / AGENTS.md updated if behaviour or commands changed: nothing to update

🤖 Generated with Claude Code

Kumo's Badge resolves the dot colour from the variant, and the dot table
only knows none, success, warning, error and neutral: every
`<Badge variant="secondary" appearance="dot">` logged
'[kumo] Unknown variant "secondary" … Falling back to "none"' (36 lines
per CI run, from new-site.test.tsx) and rendered no dot at all. The five
places that showed an unpublished site or an unknown scheduler state with
a secondary dot now use neutral, Kumo's informational dot, so the dot
appears and the warning goes away. No other dot Badge uses a variant
outside that table (checked every literal and every variant map).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
@Madraka
Madraka merged commit c92fb07 into main Nov 8, 2026
4 checks passed
@Madraka
Madraka deleted the test/quiet-log-noise branch November 8, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant