Skip to content

test(cli): keep the packed-gather-cache CLI from installing the published Core in the background - #13136

Merged
cixzhang merged 4 commits into
mainfrom
test/packed-gather-cache-no-core-step
Nov 21, 2026
Merged

cixzhang merged 4 commits into
mainfrom
test/packed-gather-cache-no-core-step

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Who this helps

Every pull request and main itself. Since @astryxdesign/[email protected] was published to npm (about 21:35 UTC on 2026-11-20), the packed-gather-cache.npm-packed.test.mjs check fails on any runner that can reach the registry, so test-node is red on main and on every pull request that runs it:

  • Main validation run 44821877094 at 938dbc46, test-node (11): FAIL packages/cli/test/packed-gather-cache.npm-packed.test.mjs > npm's list, kept for a package's check of itself > is read back after an edit inside a file, in place or by rename, and asked again after each change that can change it, at packed-gather-cache.npm-packed.test.mjs:161 (same), called from line 303. The kept check's answer names meta.answeredBy.core: "0.7.17"; the fresh check's names core: null.

The first commit re-cuts #13134 by astracat-bot as our own commit, byte-identical, with the bot credited in a Co-authored-by trailer. The second commit drops force from that removal, so a missing step fails the fixture. Later commits only merge main.

Cause

The fixture (packages/cli/test-utils/packed-gather-cache-fixture.mjs, usePackedCli) unpacks the CLI as it publishes with packPublishedCli, and that copy keeps the global copy's background Core step (foundation/release/core-worker.mjs). The fixture's runs clear CI, so the step starts for the run's version with the kept temp folder as the release cache. Before 0.7.17 was on npm the install always failed and nothing changed. Since then the step installs the real 0.7.17 into the kept folder's cache; later runs from that folder find a cached release and name it, while a fresh folder names none.

What changes

usePackedCli removes core-worker.mjs from its packed copy, as placeCli already does by default ("so no test's run starts a download behind its back"; coreStep: true keeps it). With no worker, maybeFetchCore returns early (global-state.mjs: "A release without the step predates it."), so no run of this fixture downloads a release and every run sees the same empty release cache. No assertion changes. The removal does not pass force, so if the step is ever renamed or moved the fixture fails at once, instead of keeping the renamed step and failing again at the next release.

Other tests that share the fixture

15 files import the fixture: the 12 packed-gather-cache.*.test.mjs files, command-cost.test.mjs, packed-own-modules.test.mjs, and packed-search-catalog.test.mjs. None of the 14 that call usePackedCli mentions the background step, the release cache or answeredBy (checked for core-worker, maybeFetchCore, cachedRelease, carriedCore, releasesDir, coreStep, answeredBy). packed-search-catalog.test.mjs does rely on the step, but it builds its own copy with placeCli(…, {coreStep: true}) and packPublishedCli, not usePackedCli, so this change does not touch it.

Where else the step can start

The step starts only for a global copy (isGlobalCopy), never in a hosted run, never when CI is set, and only when the copy still has core-worker.mjs (maybeFetchCore, handoff.mjs). GitHub Actions sets CI, so a test run starts it only where the test removes CI from the CLI's environment:

  • packed-gather-cache-fixture.mjs run() and its second runner (lines 121 and 167): this fix removes the step from their copy.
  • packed-gather-cache.hosted.test.mjs (line 155): a hosted run never starts the step, and its copy comes from the same fixture.
  • The global-local.* suites (envOf in global-local.shared.mjs) remove CI too, but point npm at an offline test registry (npm_config_registry) and place CLIs at made-up versions, with the step removed unless a case opts in (G52, at 9.0.0), so the published 0.7.17 is never installed there.

Ten other test files run the CLI with CI blank (CI: '' or vi.stubEnv('CI', ''), which the CLI treats as unset): cli-command, e2e-smoke, lib/mcp-server, commands/interactive-guard, commands/setup-nudge, commands/upgrade.file-protection, commands/upgrade.hook-output, commands/upgrade.outcomes, foundation/fs/module-loader.stdout and foundation/response/json-contract. Nine of them run the checkout's own CLI (packages/cli/clients/cli/bin/astryx.mjs), which is not a global copy because its path has no node_modules folder (choose.mjs), and cli-command.test.mjs blanks CI only for an in-process run that does not go through bin/astryx.mjs; so none of them starts the step. Four more filter CI out of the environment they pass on: api/render/hosted-packages.test.mjs (lines 103-107) and foundation/runtime/hosted-runtime.test.mjs (78-82) make hosted runs, which never start the step (and hosted-packages places its CLI with placeCli, which leaves the step out); host/index.test.mjs (46-50) makes hosted runs and runs the checkout's own CLI; and foundation/release/handoff.e2e.test.mjs (56-60) runs the checkout's own CLI. packed-search-catalog.test.mjs keeps the step but also keeps CI. The other legs' slowdown since the publish fits the same cause: each kept run of a packed-gather-cache file started a detached npm install of Core 0.7.17 that outlived the file and competed with the leg's later files.

Tests

CI impact

CI impact: none beyond the fix; test-only, no workflow change. Test-only: no Changeset.

Overlap checked: #13134, #13127, #13070 (#13134 is the astracat-bot pull request whose change this pull request's first commit re-cuts byte-identically (the second commit adds the missing-step failure), and it closes in favor of this one; #13127 and #13070 are the do-not-merge v0.7.17 release interaction checks, over 100 files each, whose diffs include this file but do not carry this change; they never merge)

Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the drain's serial merge loop, on green, CodeBunny approval and Specs' exact-head /approve-spec.

…shed Core in the background

Co-authored-by: astracat-bot[bot] <astracat-bot[bot]@users.noreply.github.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 20, 2026
@vercel

vercel Bot commented Nov 20, 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 20, 2026 11:36pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 12:48 AM UTC

@cixzhang cixzhang added the release-critical Admitted to CI at once (AST-030 DEC-30). Counts only when a writer applies it. label Nov 20, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 2a29d70

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · ef48e01

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

@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.

Changes requested: the fixture change is correct and fixes the cause of the main failure, but two claims in the description are false and need correcting.

  • The description says 16 files use the fixture, but 15 import it (the 15 it lists), and 14 of them call usePackedCli; change "16" to "15".
  • The description says #13127 and #13070 carry this fixture change, but neither pull request's head removes core-worker.mjs from the fixture; drop that clause or say they do not carry it.

test-node has not run on this head yet (it was skipped while the pull request is a draft).

Non-blocking: the worker path is now removed in two test helpers, both with force: true, so a shared helper or a check that the file existed would stop a future rename from bringing this failure back without an error.

Claims and files checked

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

  • Claim: the npm-packed test fails on main at line 161, called from line 303, with the kept check naming Core 0.7.17 and the fresh check none. Verified from the main test-node (11) failure.
  • Claim: Core 0.7.17 reached npm at about 21:35 UTC. Consistent with the v0.7.17 GitHub release at 21:44 UTC.
  • Claim: a byte-identical re-cut of #13134, with the bot credited in a Co-authored-by trailer. Verified: the file is identical and the trailer is in the commit.
  • Claim: the fixture unpacks the CLI with packPublishedCli, and the copy keeps core-worker.mjs. Verified (packed-gather-cache-fixture.mjs:558; foundation is in the package's files).
  • Claim: the fixture's runs clear CI, so the step starts with the kept temp folder as the release cache. Verified (packed-gather-cache-fixture.mjs:121, :145, :167; handoff.mjs:241-247).
  • Claim: later runs from the kept folder name the cached release, and a fresh folder names none. Verified (run-context.mjs:132-133, :163-167).
  • Claim: placeCli already leaves the step out by default, and coreStep: true keeps it. Verified (global-local-fixtures.mjs:392-394, :520-523).
  • Claim: with no worker, maybeFetchCore returns early. Verified (global-state.mjs:358-359).
  • Claim: no assertion changes. Verified: only the fixture changes.
  • Claim: 16 files use the fixture. False: 15 import it.
  • Claim: none of the 14 usePackedCli callers mentions the background step, the release cache or answeredBy. Verified for all seven named terms.
  • Claim: packed-search-catalog.test.mjs builds its own copy with placeCli(…, {coreStep: true}) and packPublishedCli. Verified (:48, :339, :366).
  • Claim: this pull request's own test-node run is green. Not yet shown: skipped at this head while in draft.
  • Claim: the run in #13134 had no registry access and is not proof. Matches that pull request's own description; not relied on.
  • Claim: test-only, no workflow change, no Changeset needed. Verified: one file under packages/cli/test-utils/, which is outside the package's files.
  • Claim: #13127 and #13070 are do-not-merge interaction checks that carry this fixture change. False for the second half: neither head removes core-worker.mjs.
  • File packages/cli/test-utils/packed-gather-cache-fixture.mjs: one non-blocking note (the duplicated worker path); consistent with global-local-fixtures.mjs.

Automated review (maintainer link)

The removal no longer passes force, so it throws when core-worker.mjs is missing instead of silently keeping a renamed step that would install the published Core again.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 7fedcf5

@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.

Changes requested: the fixture change is correct, and making the removal fail when the step is missing is a good guard, but one claim in the description is false at this head.

  • The description says this pull request re-cuts #13134 byte-identically, but its second commit (dropping force from the removal) is in neither of #13134's commits; say the first commit is the byte-identical re-cut and the second makes a missing step fail the fixture, in both the intro and the "Overlap checked" line.

The edited description now gets the fixture count and the #13127 and #13070 overlap right. test-node has not run on this head yet (it was skipped while the pull request is a draft), so CI has not yet shown the online fix.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: the npm-packed test fails on main at line 161, called from line 303, with the kept check naming Core 0.7.17 and the fresh check none. Verified from main's test-node (11) failure.
  • Claim: Core 0.7.17 reached npm at about 21:35 UTC. Consistent with the v0.7.17 GitHub release at 21:44 UTC; npm itself was not read.
  • Claim: a byte-identical re-cut of #13134, with the bot credited in a Co-authored-by trailer. False for byte-identical at this head: the second commit differs from both of #13134's commits; the trailer is on the first commit.
  • Claim: the fixture unpacks the CLI with packPublishedCli, and the copy keeps core-worker.mjs. Verified (packed-gather-cache-fixture.mjs:558; foundation is in the package's files; the removal without force succeeds in every fixture user).
  • Claim: the fixture's runs clear CI, so the step starts with the kept temp folder as the release cache. Verified (packed-gather-cache-fixture.mjs:121, :145, :167; handoff.mjs:241-247).
  • Claim: later runs from the kept folder name the cached release, and a fresh folder names none. Verified (run-context.mjs:132-133).
  • Claim: placeCli already leaves the step out by default, and coreStep: true keeps it. Verified (global-local-fixtures.mjs:392-394, :520-523).
  • Claim: with no worker, maybeFetchCore returns early. Verified (global-state.mjs:356-357).
  • Claim: no assertion changes. Verified: only the fixture changes.
  • Claim: the removal passes no force, so a renamed or moved step fails the fixture at once. Verified (packed-gather-cache-fixture.mjs:564; the call throws when the file is missing).
  • Claim: 15 files import the fixture. Verified.
  • Claim: none of the 14 usePackedCli callers mentions the background step, the release cache or answeredBy. Verified for all seven named terms.
  • Claim: packed-search-catalog.test.mjs builds its own copy with placeCli(…, {coreStep: true}) and packPublishedCli. Verified (:48, :339, :366).
  • Claim: this pull request's own test-node run is green. Not yet shown: skipped at this head while in draft.
  • Claim: the run in #13134 had no registry access and is not proof. Matches that pull request's own description; not relied on.
  • Claim: test-only, no workflow change, no Changeset needed. Verified: one file under packages/cli/test-utils/, which is outside the package's files.
  • Claim: #13127 and #13070 are do-not-merge interaction checks of over 100 files each whose diffs include this file but do not carry this change. Verified: both change this file without removing the worker, with about 3,000 files each.
  • Claim: owner and land-path notes. Process statements, not checked against code.
  • File packages/cli/test-utils/packed-gather-cache-fixture.mjs: clear; the removal throws when the worker is missing, and all 14 usePackedCli test files pass offline at this head.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 221a104

@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.

Changes requested: the fixture change is correct, and the description now describes the re-cut of #13134 accurately, but one claim in the description is false at this head.

  • The description says no other test under packages/cli removes CI, but ten test files run the CLI with CI blank (CI: '' or vi.stubEnv('CI', ''), for example clients/cli/e2e-smoke.test.mjs:44), which the CLI treats as unset, so please say instead that those tests run the checkout's own CLI, which is never a global copy and so never starts the step.

test-node has not run on this head yet (it is skipped while the pull request is a draft), so CI has not yet shown the online fix.

Claims and files checked

Review mode: carry-forward; reason: none

  • Claim: the npm-packed test fails on main at line 161, called from line 303, with the kept check naming Core 0.7.17 and the fresh check none. Verified from the annotation of main's test-node (11) failure.
  • Claim: Core 0.7.17 reached npm at about 21:35 UTC. Consistent with the v0.7.17 GitHub release; npm itself was not read.
  • Claim: the first commit is a byte-identical re-cut of #13134, with the bot credited in a Co-authored-by trailer. Verified: its patch equals #13134's first commit on the same parent, and the trailer is present.
  • Claim: the second commit drops force, so a missing step fails the fixture. Verified (packed-gather-cache-fixture.mjs:564).
  • Claim: later commits only merge main. Verified: one clean merge that changes no file of this pull request.
  • Claim: the fixture packs the CLI with packPublishedCli, its runs clear CI, the step installs into the kept folder's cache, and later runs name that release while a fresh folder names none. Verified (packed-gather-cache-fixture.mjs:121, :145, :167, :558; handoff.mjs:241-247; run-context.mjs:132-133).
  • Claim: placeCli leaves the step out by default, and coreStep: true keeps it. Verified (global-local-fixtures.mjs:392-394, :520-523).
  • Claim: with no worker, maybeFetchCore returns early. Verified (global-state.mjs:356-357).
  • Claim: no assertion changes. Verified: only the fixture changes.
  • Claim: 15 files import the fixture, 14 call usePackedCli, and none of the 14 mentions the background step, the release cache or answeredBy. Verified for all seven named terms.
  • Claim: packed-search-catalog.test.mjs builds its own copy with placeCli(…, {coreStep: true}) and packPublishedCli, and keeps CI. Verified (:48, :339, :366; no CI change in the file).
  • Claim: the step starts only for a global copy, never in a hosted run, never with CI set, and only with the worker present. Verified (handoff.mjs:200, :223; global-state.mjs:332, :356-357).
  • Claim: the fixture's two runners and the hosted file clear CI, and a hosted run never starts the step. Verified (packed-gather-cache-fixture.mjs:121, :167; packed-gather-cache.hosted.test.mjs:155; handoff.mjs:223).
  • Claim: the global-local suites clear CI but use an offline registry and made-up versions, with the step kept only in G52 at 9.0.0. Verified (global-local.shared.mjs:186-207; global-local.rows-40-59.test.mjs:723-726).
  • Claim: no other test under packages/cli removes CI. False: ten test files blank it (CI: '' or vi.stubEnv('CI', '')), which isCi reads as unset (update-notice-env.mjs:21-29).
  • Claim: the other legs' slowdown fits the same cause. An inference; not checked.
  • Claim: this pull request's own test-node run is green. Not yet shown: skipped at this head while in draft.
  • Claim: the run in #13134 had no registry access and is not proof. Matches that pull request's own description; not relied on.
  • Claim: test-only, no workflow change, no Changeset needed. Verified: one file under packages/cli/test-utils/, outside the package's files.
  • Claim: #13127 and #13070 are do-not-merge interaction checks of over 100 files each whose diffs include this file but do not carry this change. Verified at their heads, unchanged since the last check (about 3,500 and 3,000 files).
  • Claim: #13134 closes in favor of this one. A plan: #13134 is still open.
  • Claim: owner and land-path notes. Process statements, not checked against code.
  • File packages/cli/test-utils/packed-gather-cache-fixture.mjs: clear; the removal throws when the worker is missing, and all 14 usePackedCli test files passed offline with this patch.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec ef48e01

@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.

Changes requested: the fixture change is correct, but two statements in the description's "Where else the step can start" section need correcting.

  • The description says the checkout's CLI is never a global copy because "its package folder has a package.json", but this fixture's own packed copy has a package.json there and is a global copy, while the checkout's CLI is not one because its path has no node_modules folder (choose.mjs:288-289, :376-377), and cli-command.test.mjs blanks CI only for an in-process run that never goes through bin/astryx.mjs, so please drop both parentheses or state that reason instead.
  • Miss: the list of tests that remove CI from the CLI's environment leaves out four files that filter it out with the same pattern as envOf (foundation/release/handoff.e2e.test.mjs:56-60, api/render/hosted-packages.test.mjs:103-107, foundation/runtime/hosted-runtime.test.mjs:78-82 and host/index.test.mjs:46-50), so please add them with the reason none of them starts the step: three are hosted runs, and the bin runs in handoff.e2e and host/index use the checkout's own CLI.

test-node has not run on this head yet (it is skipped while the pull request is a draft), so CI has not yet shown the online fix.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: since Core 0.7.17 reached npm, the npm-packed test fails where the registry is reachable, at line 161 called from line 303, with the kept check naming Core 0.7.17 and the fresh check none. Verified from main's test-node (11) failure annotation.
  • Claim: Core 0.7.17 was published at about 21:35 UTC. Consistent with that failure at 21:46 UTC; npm itself was not read.
  • Claim: the first commit re-cuts #13134 byte for byte and credits the bot in a Co-authored-by trailer. Verified: its patch equals #13134's first commit's, and the trailer is present.
  • Claim: the second commit drops force, so a missing step fails the fixture. Verified (packed-gather-cache-fixture.mjs:564).
  • Claim: later commits only merge main. Verified: two merges whose diff from main is only the fixture's six lines.
  • Claim: the fixture packs the CLI as published, its runs clear CI, the step installs into the kept folder's cache, and later runs there name that release while a fresh folder names none. Verified (packed-gather-cache-fixture.mjs:121, :145, :167, :558; pack-published-cli.mjs:35-43; handoff.mjs:241-247; run-context.mjs:132-133).
  • Claim: placeCli leaves the step out by default, and coreStep: true keeps it. Verified (global-local-fixtures.mjs:392-394, :520-523).
  • Claim: with no worker, maybeFetchCore returns early. Verified (global-state.mjs:356-357).
  • Claim: no assertion changes. Verified: only the fixture changes.
  • Claim: 15 files import the fixture, 14 call usePackedCli, and none of the 14 mentions the step, the release cache or answeredBy. Verified for all seven named terms.
  • Claim: packed-search-catalog.test.mjs builds its own copy with placeCli(…, {coreStep: true}) and packPublishedCli, and keeps CI. Verified (:48, :83, :339, :366).
  • Claim: the step starts only for a global copy, never in a hosted run, never with CI set, and only with the worker present. Verified (handoff.mjs:200, :223; global-state.mjs:332, :356-357).
  • Claim: a test run starts the step only where the test removes CI, listed as the fixture's two runners, the hosted file and the global-local suites. Incomplete: four more files filter CI out (see the Miss above); none of them starts the step.
  • Claim: the global-local suites clear CI but use an offline registry and made-up versions, with the step kept only in one case at 9.0.0. Verified (global-local.shared.mjs:186-203, global-local.rows-40-59.test.mjs:726).
  • Claim: ten other test files run the CLI with CI blank, which the CLI treats as unset. Verified: exactly the ten named files blank it (update-notice-env.mjs:21-29).
  • Claim: each of the ten runs bin/astryx.mjs, which is never a global copy because its package folder has a package.json, so none starts the step. The conclusion holds, but the reason is false (see the first finding above).
  • Claim: the other legs' slowdown fits the same cause, a detached install that outlives the file. An inference: the worker is detached and unreferenced (global-state.mjs:429-435), so it can outlive a file, but no slowdown was measured.
  • Claim: this pull request's own test-node run is green. Not yet shown: skipped at this head while in draft.
  • Claim: #13134's own run had no registry access and is not counted as proof. Not relied on.
  • Claim: test-only, no workflow change, no Changeset needed. Verified: one file under packages/cli/test-utils/, outside the package's files.
  • Claim: #13127 and #13070 are do-not-merge interaction checks of over 100 files each whose diffs include this file but do not carry this change. Verified at their current heads (about 3,500 and 3,000 files; the fixture changes in each diff, with no worker removal).
  • Claim: #13134 closes in favor of this one. A plan: #13134 is still open.
  • Claim: owner and land-path notes. Process statements, not checked against code.
  • File packages/cli/test-utils/packed-gather-cache-fixture.mjs: clear; the removal throws when the worker is missing, and all 14 usePackedCli test files passed offline with this patch.

Automated review (maintainer link)

@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: the fixture change removes the cause of the test-node failure on main, and the description now explains it accurately.

usePackedCli now deletes the packed CLI's background Core step, so no fixture run installs the published Core into a kept cache, and a renamed step fails the fixture at once. test-node passes in all nine legs on this head, including packed-gather-cache.npm-packed.test.mjs at about its recorded time.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: since Core 0.7.17 reached npm, the npm-packed test fails where the registry is reachable, at line 161 called from line 303, with the kept check naming Core 0.7.17 and the fresh check none. Verified from main's failing test-node (11) annotation.
  • Claim: Core 0.7.17 was published at about 21:35 UTC. Consistent with that failure; npm itself was not read.
  • Claim: the first commit re-cuts #13134 byte for byte and credits the bot in a Co-authored-by trailer. Verified: its patch equals #13134's first commit's, and the trailer is present.
  • Claim: the second commit drops force, so a missing step fails the fixture. Verified (packed-gather-cache-fixture.mjs:564).
  • Claim: later commits only merge main. Verified: two merges, neither of which changes the fixture.
  • Claim: the fixture packs the CLI as published, its runs clear CI and use the kept temp folder as the cache, so the step installs the published Core there and later runs name it. Verified (packed-gather-cache-fixture.mjs:121, :145, :167, :558; handoff.mjs:223, :243; global-state.mjs:325-357).
  • Claim: placeCli leaves the step out by default, and coreStep: true keeps it. Verified (global-local-fixtures.mjs:393-394, :520-523).
  • Claim: with no worker, maybeFetchCore returns early. Verified (global-state.mjs:356-357).
  • Claim: no assertion changes. Verified: only the fixture changes.
  • Claim: 15 files import the fixture, 14 call usePackedCli, and none of the 14 mentions the step, the release cache or answeredBy. Verified for all seven named terms.
  • Claim: packed-search-catalog.test.mjs builds its own copy with placeCli(…, {coreStep: true}) and packPublishedCli, and keeps CI. Verified (:48, :339, :366).
  • Claim: the step starts only for a global copy, never in a hosted run, never with CI set, and only with the worker present. Verified (handoff.mjs:223; global-state.mjs:332, :356-357).
  • Claim: the fixture's two runners and the hosted file remove CI, and the hosted run never starts the step. Verified (packed-gather-cache-fixture.mjs:121, :167; packed-gather-cache.hosted.test.mjs:155).
  • Claim: the global-local suites remove CI but use an offline registry and made-up versions, with the step kept only in one case at 9.0.0. Verified (global-local.shared.mjs:186-203, global-local.rows-16-39.test.mjs:422, global-local.rows-40-59.test.mjs:726).
  • Claim: ten other test files blank CI, which the CLI treats as unset. Verified: exactly the ten named files blank it (update-notice-env.mjs:21-27).
  • Claim: nine of them run the checkout's own CLI, which is not a global copy because its path has no node_modules folder, and cli-command.test.mjs blanks CI only for an in-process run. Verified (choose.mjs:288-289, :376-377; cli-command.test.mjs:85; run-cli.mjs:33).
  • Claim: four more files filter CI out: two make hosted runs (one placing its CLI with placeCli), one makes hosted runs and runs the checkout's CLI, and one runs the checkout's CLI. Verified (hosted-packages.test.mjs:40, :103-107; hosted-runtime.test.mjs:78-82; host/index.test.mjs:25-26, :46-50; handoff.e2e.test.mjs:27-29, :56-60).
  • Claim: the other legs' slowdown fits the same cause. An inference: the worker is detached and can outlive a file, but no slowdown was measured.
  • Claim: this pull request's own test-node run is green with registry access, and the npm-packed file passes 6/6 in about 103 s. Verified: all nine legs pass, and the file takes 103.2 s against a recorded 103.8 s.
  • Claim: #13134's own run had no registry access and is not counted as proof. Not relied on.
  • Claim: test-only, no workflow change, no Changeset needed. Verified: one file under packages/cli/test-utils/, outside the package's published files.
  • Claim: #13134 closes in favor of this one. Verified: #13134 is closed without merging.
  • Claim: #13127 and #13070 include this file but not this change. Verified: neither head's fixture removes the worker.
  • Claim: owner and land-path notes. Process statements, not checked against code.
  • File packages/cli/test-utils/packed-gather-cache-fixture.mjs: clear; the removal throws when the worker is missing, and all 14 usePackedCli test files pass on this head.

Automated review (maintainer link)

@github-actions
github-actions Bot deleted the test/packed-gather-cache-no-core-step branch November 21, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — ef48e017 Deployed Nov 20, 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. release-critical Admitted to CI at once (AST-030 DEC-30). Counts only when a writer applies it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant