Skip to content

test(opencode): use sync telemetry runner process - #321

Merged
nicko-ai merged 1 commit into
devfrom
codex/windows-unit-exit-after-tests
Jul 1, 2026
Merged

test(opencode): use sync telemetry runner process#321
nicko-ai merged 1 commit into
devfrom
codex/windows-unit-exit-after-tests

Conversation

@nicko-ai

@nicko-ai nicko-ai commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Issue for this PR

Fixes #298

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Makes the compiled telemetry test harness use synchronous child processes for its generated builder and runner helpers.

The release-candidate Windows unit job completed all tests with zero failures, but the Bun test process stayed alive until the CI step timeout killed it. This removes the async child-process stream lifetime from the parent telemetry tests while keeping the same assertions.

How did you verify your code works?

  • bun test --timeout 30000 test/telemetry/telemetry.test.ts test/telemetry/command.test.ts
  • bun typecheck
  • bun turbo typecheck through the pre-push hook
  • git diff --check

Windows CI is the required proof that the post-success process exits cleanly.

Screenshots / recordings

Not applicable. This fixes test-harness process cleanup.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Fixes #298

Root cause: Windows unit CI completed tests successfully but the Bun test process stayed alive after the async telemetry runner subprocess path, timing out the step after success.

Use spawnSync for the generated telemetry builder and runner helpers so child stdout/stderr handles are closed before assertions continue.

Verification: bun test --timeout 30000 test/telemetry/telemetry.test.ts test/telemetry/command.test.ts; bun typecheck; git diff --check.
@nicko-ai

nicko-ai commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 7aa0d8f962

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@nicko-ai
nicko-ai merged commit 979b300 into dev Jul 1, 2026
18 of 19 checks passed
@nicko-ai
nicko-ai deleted the codex/windows-unit-exit-after-tests branch July 2, 2026 17:06
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.

Windows unit job can hang without a timeout

1 participant