Skip to content

test(cli): build dist-client once instead of in every test file - #202

Merged
adityankale190895 merged 2 commits into
DiffCI:mainfrom
FredApps:fix/cli-tests-build-client-once
Nov 18, 2026
Merged

adityankale190895 merged 2 commits into
DiffCI:mainfrom
FredApps:fix/cli-tests-build-client-once

Conversation

@FredApps

@FredApps FredApps commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #192

Changed behavior

This changes only tests. check-plan-cli, plan-cli, mcp and cli-help tests now call a shared buildClient() helper in tests/helpers/build-client.ts instead of each running tsc -p tsconfig.client.json into dist-client.

The helper takes a directory lock (dist-client/.test-build-lock) so only one test file builds at a time, and writes a stamp (dist-client/.test-build-stamp) so later files skip the build when src, package.json and the tsconfig files are unchanged. A test file no longer rewrites dist-client while another test file is running it, which is what caused the intermittent SyntaxError in the issue.

Validation

Conflicts: the build-client.test.ts manifest entry now sits one line away from #199's, and #240's helper entry moved away from this PR's, so #199, #202 and #240 merge in any order.

@FredApps

Copy link
Copy Markdown
Contributor Author

Cross-review (FredApps, head 61f1204). Not an approval.

Checked

Fixed: nothing needed.

Open

…ffCI#199

The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict.

Signed-off-by: FredApps <[email protected]>
FredApps added a commit to FredApps/core that referenced this pull request Nov 18, 2026
…ffCI#202

The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict.

Signed-off-by: FredApps <[email protected]>
FredApps added a commit to FredApps/core that referenced this pull request Nov 18, 2026
@FredApps
FredApps marked this pull request as ready for review November 18, 2026 01:08
adityankale190895 pushed a commit that referenced this pull request Nov 18, 2026
…fix (#240)

* test(cli): match the verify usage line that lists --staged and --paths

Fixes #193

Signed-off-by: FredApps <[email protected]>

* test(cli): find the npm-cli.js npm runs, not one under its global prefix

Fixes #196

Signed-off-by: FredApps <[email protected]>

* ci: re-run checks after the Windows Rust temp-dir flake

Refs #193

Signed-off-by: FredApps <[email protected]>

* chore: move the release-files.json entry so it merges cleanly with #202

The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict.

Signed-off-by: FredApps <[email protected]>

---------

Signed-off-by: FredApps <[email protected]>
@adityankale190895
adityankale190895 merged commit 0a2ccf4 into DiffCI:main Nov 18, 2026
13 checks passed
adityankale190895 pushed a commit that referenced this pull request Nov 18, 2026
…ld settings (#229)

* fix(rust): treat quoted keys and inline tables in Cargo config as build settings

* chore: DCO remediation for 886653d

I, FredApps <[email protected]>, hereby add my Signed-off-by to this commit: 886653d

Signed-off-by: FredApps <[email protected]>

* ci: re-run checks after the Merge gate smoke dist-client race (#192, fixed by #202)

Signed-off-by: FredApps <[email protected]>

---------

Signed-off-by: FredApps <[email protected]>
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.

CLI tests: parallel test files rebuild dist-client while others run it

2 participants