Skip to content

test(cli): the search golden counts the status page templates - #11993

Merged
josephfarina merged 1 commit into
mainfrom
fix/search-golden-status-pages
Nov 16, 2026
Merged

josephfarina merged 1 commit into
mainfrom
fix/search-golden-status-pages

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

Maintainer impact

On main, packages/cli/test/experimental-isolation.test.mjs > with no icon set, stable output is unchanged > search search, text and JSON fails. The not-found, access-denied and error page templates added one more result for astryx search search, and the stored golden still counts the earlier total. Every pull request whose CI runs on a merge with main fails this test in its Node shard, whatever it changes.

Intended invariant

The golden output for astryx search search in a project with no icon set matches what the CLI prints on main. The 20 listed results do not change; only the total does.

Change

Regenerate the two golden files with vitest run packages/cli/test/experimental-isolation.test.mjs -u. The total goes from 118 to 119 in the JSON (matchCount) and in the text heading ("20 of 119"). No other line changes.

Evidence

  • Failure before the change: the test fails on main at the merge that added the status page templates, and passes on the commit before it.
  • Success after the change: experimental-isolation.test.mjs passes, 51 of 51.
  • Product/runtime behavior verified unchanged: only the two golden files change; no source file changes.
  • CI impact (for a change to workflows, actions or CI scripts): none; no workflow, action or CI script changes.

Scope

Components: CLI test golden files (packages/cli/test/__golden__/no-icon-set)

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • vitest run packages/cli/test/experimental-isolation.test.mjs: 51 passed.

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 16, 2026 5:13am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 5:19 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not finished on this head yet, and its Node test shards are still queued or running.

The new total matches what the CLI prints on main. The search search, text and JSON test fails on the base with matchCount 118 expected and 119 received, and passes on this head, both alone and merged with the current main. The extra result is the stable not-found page template, so the isolation guard still catches any experimental result.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: on main, search search, text and JSON fails. Verified: on the base, the JSON snapshot fails only on matchCount, 118 expected and 119 received.
  • Claim: the not-found, access-denied and error page templates add one more result for astryx search search. Verified: the added result is the not-found page template, 101st of 119; the other two do not match the query.
  • Claim: the stored golden still counts the earlier total. Verified: both goldens on the base say 118.
  • Claim: every pull request whose CI runs on a merge with main fails this test. Verified for any tree with these templates and the old golden, by the base run.
  • Claim: the 20 listed results do not change; only the total does. Verified: the diff changes only matchCount and the text heading, and the test passes on the head.
  • Claim: the goldens were regenerated with the test's update mode. Consistent: both goldens equal the CLI's output on the head.
  • Claim: the total goes from 118 to 119 in the JSON and in the text heading, and no other line changes. Verified by the diff.
  • Claim: the test fails at the merge that added the status page templates and passes on the commit before it. Verified indirectly: the base is off by exactly one result, and that result is the not-found template from that merge.
  • Claim: experimental-isolation.test.mjs passes 51 of 51. Verified on the head.
  • Claim: only the two golden files change, with no source, workflow, action or CI script changes. Verified.
  • Claim: no public API, product behavior, visual direction or policy change. Verified: the goldens are not in the published package.
  • Claim: public text carries no internal context. Verified.
  • File packages/cli/test/__golden__/no-icon-set/search-search.json: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-search.txt: clear, and its total matches the JSON.

Automated review (maintainer link)

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · e96037a

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@josephfarina
josephfarina merged commit 4675361 into main Nov 16, 2026
77 checks passed
@github-actions
github-actions Bot deleted the fix/search-golden-status-pages branch November 16, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — e96037aa Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant