Skip to content

test(flame): fix dev-watch paths on macOS and cli deploy-flags timeout - #490

Merged
gitfromwildan merged 1 commit into
mainfrom
test/flame-flaky-tests
Nov 6, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
test/flame-flaky-tests

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

Summary

Fixes two failing tests in packages/flame. Test code only; no runtime changes.

  • dev-watch.test.ts: 3 tests failed on macOS. /tmp there is a symlink to /private/tmp, and resolvePackages / resolveWorkspacePackages return real paths on purpose. The fixture now creates its temp dir under realpathSync(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 by spawnSync after 60s, so the describe timeout is now 2 * SPAWN_TIMEOUT + 10_000. A vitest timeout now means the CLI really hung, not that the machine was busy.

Test plan

  • pnpm exec vitest run in packages/flame: 867/867 passed, 3 runs in a row (before: the cli test failed 3 of 4 full runs)

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

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Nov 6, 2026 8:15am UTC

@gitfromwildan gitfromwildan self-assigned this Nov 6, 2026

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

✅ 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.ts fixture realpath: the fixture root is now created under realpathSync(tmpdir()). The expected pkgDir now matches the real paths that resolvePackages / resolveWorkspacePackages return when tmpdir sits behind a symlink, as it does on macOS. On Linux this changes nothing.
  • cli.test.ts deploy-flags timeout: the spawn timeout is now a named SPAWN_TIMEOUT, and the deploy flags suite timeout is set to 2 * SPAWN_TIMEOUT + 10_000. The test that spawns twice can no longer hit Vitest's 5s default under load, and the spawnSync kill still fires first if the CLI really hangs. Passing options as the second argument to describe is 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.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 414876b into main Nov 6, 2026
15 checks passed
@gitfromwildan
gitfromwildan deleted the test/flame-flaky-tests branch November 6, 2026 08:18
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