Skip to content

Format the assistant source-link assertion - #2107

Merged
zlareb1 merged 1 commit into
mainfrom
fix/format-chat-source-link-test
Dec 4, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/format-chat-source-link-test

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Related: #2094
Related: #2013

Changelog category

  • CI Fix or Improvement

Changelog entry

Not required.

Why

Biome 2.5.14 rejects the source-link assertion in the assistant chat test. The format job on main and the tested contributor merges see the same file.

Scope and risk

Apply the pinned formatter's line wrapping to that assertion. The expected URL and every assertion stay intact.

Compatibility, rollout and rollback

The change is confined to test formatting. Reverting restores the formatting failure.

Tests

  • The pinned Biome check fails on the same assertion on clean main and passes with this change.
  • make format, make lint, and make typecheck pass.
  • All 3,868 dashboard tests pass on Node 22 with two test workers. The dashboard build and bundle budget pass on Node 22.

AI assistance in the code

  • AI-assisted. Biome produced the formatting change, and Codex compared the exact file in the failed checkouts.

Checklist

  • Local format, lint, type checks, and dashboard checks pass.
  • The commit is signed off.

Note

Low Risk
Test-only formatting with no production or assertion changes.

Overview
Reformats the docsLink href assertion in Chat.test.tsx so Biome’s line wrapping applies—the expected URL and all other assertions are unchanged.

This is a CI/format fix only; it unblocks the pinned Biome check on the assistant chat test without changing test behavior.

Reviewed by Cursor Bugbot for commit 8887bb9. Bugbot is set up for automated code reviews on this repo. Configure here.

Apply the pinned Biome wrapping so the format check passes.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 3, 2026 7:25pm UTC
loom-telemetry Ready Ready Preview Dec 3, 2026 7:25pm UTC

Request Review

@KaloyanNaumov

Copy link
Copy Markdown
Contributor

Evidence that this clears the failure, measured on clean main rather than assumed — because it is the one check blocking five unrelated PRs at the moment.

Tree: dea732eb8 (current main), no other change. Tool: the pinned @biomejs/biome@2.5.14 (the static musl build — the glibc binary needs a newer base than the host we test on).

tree biome format frontend/src/views/assistant/Chat.test.tsx
clean main rc=1 — "Formatter would have printed the following content", at lines 578–579
main + this PR's diff rc=0

And the whole tree after applying this diff: biome format . → "Checked 1205 files in 32s. No fixes applied."

So it is exactly the one file and exactly the one assertion. Since the format job runs against the merge of a PR head with main, merging this turns the check green on every open PR that merges main — five of ours are currently red on it while touching nothing in frontend/.

@zlareb1
zlareb1 merged commit 3ba2bc3 into main Dec 4, 2026
82 checks passed
zlareb1 added a commit that referenced this pull request Dec 4, 2026
Main fixed the assistant test's format (#2107).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
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.

2 participants