Skip to content

test(cli): the doctor golden leaves out a check only some computers report - #12994

Closed
josephfarina wants to merge 1 commit into
mainfrom
josephfarina/doctor-golden-old-transpile-cache
Closed

josephfarina wants to merge 1 commit into
mainfrom
josephfarina/doctor-golden-old-transpile-cache

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

Maintainer impact

The doctor golden in packages/cli/test/experimental-isolation.test.mjs fails on any computer where an earlier Astryx CLI left its transpile folder in the user's cache, and passes on a clean one. The test then fails for a reason unrelated to the change under test, on the same commit that passes elsewhere.

Intended invariant

The golden holds what the project and its icon sets decide, not this computer's state. It already reduces the checks that answer from the computer's cache and search path (newest-release, cli-on-path, computer-integrations) to their ids.

Change

old-transpile-cache reports only when the old folder exists, so whether its row appears depends on the computer alone. Reducing it to its id would still add a row on some computers. The golden now leaves it out entirely, through a small set of such checks beside the existing list.

Evidence

  • Failure before the change: on a computer with the old folder (~/.cache/astryx/jiti), "doctor reports an invalid installed set" fails: 1 failed, 54 passed.
  • Success after the change: 55 pass on that computer, and 55 pass with an empty cache folder (no old folder).
  • Product/runtime behavior verified unchanged: only the test changes.
  • CI impact: none; the same test file.

Scope

Components: packages/cli (tests)

  • 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

  • pnpm exec vitest run packages/cli/test/experimental-isolation.test.mjs, with and without the old cache folder: 55 pass each.

preflight: pass 80a700a

…eport

The old-transpile-cache check reports only on a computer where an earlier
CLI left its transpile folder in the user's cache, so the doctor golden in
the isolation test failed on such a box and passed on a clean one. The
golden now leaves that check out, as it reduces the other computer checks.

[skip ci]
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Error Error Nov 19, 2026 8:13pm UTC

Request Review

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

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 8:33 PM 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 run on this head yet. Its only commit carries [skip ci], so the required checks still have to pass before it merges.

On the base, the test fails the doctor golden only when an earlier CLI's astryx/jiti cache folder exists, and on this head it passes with and without that folder. No blocking findings.

Claims and files checked

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

  • Claim: the doctor golden fails on a computer whose user cache holds an earlier CLI's transpile folder and passes on a clean one. Verified: the test on the base fails only with the folder; packages/cli/api/doctor/doctor.mjs:3144-3158.
  • Claim: the test already reduces newest-release, cli-on-path and computer-integrations to their ids. Verified: experimental-isolation.test.mjs:276-280 and :303.
  • Claim: old-transpile-cache reports only when the old folder exists. Verified: doctor.mjs:3146-3150.
  • Claim: reducing it to its id would still add a row on some computers. Verified: the map keeps an id-only row (:303).
  • Claim: the golden now leaves the check out through a small set beside the existing list. Verified: :287 and :299-301.
  • Claim: before the change, with the old folder, "doctor reports an invalid installed set" is the one failure. Verified for that test: it fails on the base only with the folder.
  • Claim: after the change, the file passes with and without the old folder. Verified for the doctor test and 53 others; the searchable-docs test needs a git checkout and was not re-run.
  • Claim: only the test changes, and product behavior is unchanged. Verified: one changed file, and packages/cli/package.json ships neither test/ nor *.test.*.
  • Claim: no CI impact. Verified: with no old folder, as on a fresh runner, the filter removes nothing.
  • Claim: the scope is packages/cli tests, with no public API, behavior, visual or policy change, and no internal context in public text. Verified.
  • Claim: preflight passed at this head. This records the author's own local run and was not re-run.
  • Claim (commit message): the golden leaves the check out as it reduces the other computer checks. Verified, as above.
  • File packages/cli/test/experimental-isolation.test.mjs: clear.

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12941 fix(Table): the default cell renderer shows an Invalid Date as an empty cell
  Author: @josephfarina
- #12886 docs(core): the README setup loads the theme's fonts
  Author: @josephfarina
- #12887 fix(cli): doctor --built reads the setup stylesheet as wiring, not page styling
  Author: @josephfarina
- #12456 fix(cli): a doc may leave out a value the code deprecates everywhere
  Author: @josephfarina
- #12857 docs(cli): the styling and typography pages state their core rules
  Author: @josephfarina
- #12994 test(cli): the doctor golden leaves out a check only some computers report
  Author: @josephfarina
- #13001 test(cli): the swizzle proof renders Lab's MediaPlayer with its required label
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12992.

@github-actions
github-actions Bot deleted the josephfarina/doctor-golden-old-transpile-cache branch November 20, 2026 06:05

This branch had an error being deployed

1 failed deployment
Preview — 80a700a9 Deployed Nov 19, 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