Skip to content

test(cli): exempt the smoke fixture suite from the target guard - #4856

Closed
yannickmonney wants to merge 1 commit into
mainfrom
fix/cli-smoke-fixture-guard
Closed

yannickmonney wants to merge 1 commit into
mainfrom
fix/cli-smoke-fixture-guard

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

main fails the CLI unit tests: tools/cli/scripts/cli-workflow.test.ts › "every source/compiled command suite uses the shared phase selector" fails on all three operating systems, so the CLI check fails in every merge group (it did for the group of #4849, built on ce50aae63c).

#4855 added tools/cli/tests/smoke-fixture.test.ts. The guard scans tools/cli/tests for suites that mention process.env.TALE_BINARY and requires them to use the shared phase selector; the new suite mentions it inside the preload it writes for its nested smoke run, and drives a binary of its own, as smoke.test.ts does.

Fix

The guard leaves smoke-fixture.test.ts out next to smoke.test.ts, with the reason in a comment.

Verification

  • On main plus an unrelated branch: the guard test fails with Expected to contain: "from './fixtures/command-targets'"; with this change tools/cli/scripts/cli-workflow.test.ts passes, and oxfmt --check is clean.
  • Not run here: tests/smoke-fixture.test.ts asserts on Bun's (pass) lines in stderr, which this machine's Bun prints differently; it passed on all three operating systems in the merge group, where only the guard failed.

The guard that holds every CLI command suite to the shared phase selector
scans tools/cli/tests for suites that mention process.env.TALE_BINARY.
smoke-fixture.test.ts (#4855) mentions it inside the preload it writes for
the nested smoke run, so the guard failed on main and in every merge group
since. Like smoke.test.ts, that suite drives a binary of its own and takes no
part in the selector, so the guard leaves it out too.
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 12, 2026
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Independent review: ACCEPT at exact head 20853bf47f7dd555b960200adece784331510387 (base ce50aae63c). Reviewer: agent #2 Independent Review (TALE-359), run 8baaa48c. I had no part in #4855 or in this PR.

Verified

  • Root cause. Main's CLI workflow fails at ce50aae63c (push run 38254365049, Build on linux, macOS and windows) with (fail) CLI command test targets > every source/compiled command suite uses the shared phase selector. The failing file is smoke-fixture.test.ts, which test(cli): isolate the parent-directory smoke fixture #4855 added.
  • The exemption is right. At ce50aae63c, tools/cli/tests/smoke-fixture.test.ts (82 lines) drives a nested bun run of smoke.test.ts. That run's preload intercepts spawns of process.env.TALE_BINARY, so the suite runs its own binary by design, exactly like smoke.test.ts. The file contains no src/index.ts, so skipping the guard's other assertion for it loses nothing.
  • Fresh execution at this head. In Checks 38256812062, Unit (workspaces) ran turbo @tale/cli#test with a cache MISS and exit 0. The guard test passes, and the suite reports 3183 pass, 0 fail across 181 files (Linux).
  • CI. All 7 CI ready contexts succeeded at this head.

Limits

  • PR scope skipped the CLI workflow's three-OS Build matrix at this head. macOS and Windows execution therefore comes only from the merge queue.
  • Review was API-only; I ran nothing locally.

Coverage

  • Changed behaviour and consumers: PASS. Only the guard changed, and the exempted suite is verified to run its own binary.
  • Security: N/A.
  • UX, a11y, locale, docs, performance, resources and deployment: N/A. Only a test file changed; no runtime or shipped code.
  • CI: PASS, with the scope limit above.
  • Workflow: this restores main's CLI check, which currently fails every merge group, fix(platform): harden chat tools and light sandboxes after review #4849's included.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Superseded by #4857, which fixed the same guard failure by changing the fixture so it no longer mentions process.env.TALE_BINARY. On current main the guard passes without this exemption (main + an unrelated branch: tools/cli/scripts/cli-workflow.test.ts, 16 passed, 0 failed), so the exemption is not needed. Closing so it does not land as a redundant loosening of the guard.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a manual request Oct 12, 2026
@yannickmonney
yannickmonney deleted the fix/cli-smoke-fixture-guard branch October 12, 2026 14:04
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