Repository navigation
test(flame): fix dev-watch paths on macOS and cli deploy-flags timeout - #490
Merged
Merged
Conversation
- dev-watch: create the fixture under realpath(tmpdir()). On macOS /tmp is a symlink to /private/tmp and the resolver returns realpaths, so expected paths never matched. - cli: the deploy-flags tests spawn the CLI up to twice, each killed by spawnSync after 60s, but ran under vitest's 5s default and timed out when the full suite loaded the machine. The describe timeout now outlasts the worst-case spawn time.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
I reviewed the initial commit, which fixes two flame test failures. Only test code changed (mode: standard).
dev-watch.test.tsfixture realpath: the fixture root is now created underrealpathSync(tmpdir()). The expectedpkgDirnow matches the real paths thatresolvePackages/resolveWorkspacePackagesreturn when tmpdir sits behind a symlink, as it does on macOS. On Linux this changes nothing.cli.test.tsdeploy-flags timeout: the spawn timeout is now a namedSPAWN_TIMEOUT, and thedeploy flagssuite timeout is set to2 * SPAWN_TIMEOUT + 10_000. The test that spawns twice can no longer hit Vitest's 5s default under load, and thespawnSynckill still fires first if the CLI really hangs. Passing options as the second argument todescribeis the supported Vitest signature.
Assessment: READY. There are no DRY, refactor or correctness concerns. Both fixes deal with the root cause instead of hiding it.
claude-opus-5-5 | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Fixes two failing tests in
packages/flame. Test code only; no runtime changes.dev-watch.test.ts: 3 tests failed on macOS./tmpthere is a symlink to/private/tmp, andresolvePackages/resolveWorkspacePackagesreturn real paths on purpose. The fixture now creates its temp dir underrealpathSync(tmpdir()).cli.test.ts› deploy flags: "does not warn when --ci comes with --docker…" timed out at vitest's 5s default when the whole suite ran, since it spawns the CLI twice in a row. Each spawn is already killed byspawnSyncafter 60s, so thedescribetimeout is now2 * SPAWN_TIMEOUT + 10_000. A vitest timeout now means the CLI really hung, not that the machine was busy.Test plan
pnpm exec vitest runinpackages/flame: 867/867 passed, 3 runs in a row (before: the cli test failed 3 of 4 full runs)