test(harness): stabilize runtime cold-start test#3727
Merged
Conversation
Generated-By: PostHog Code Task-Id: f5d6c417-32e8-4a2b-bfdc-98f33b60c450
|
😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details. |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
pauldambra
marked this pull request as ready for review
July 22, 2026 20:34
There was a problem hiding this comment.
Diff matches description exactly — only adds a 15s timeout option to one existing test, no logic changes, purely test-file scope.
- 👍 on the PR from chatgpt-codex-connector[bot].
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| size | ✓ | 0L, 0F substantive, 72L/1F incl. docs/generated/snapshots — within ceiling |
| tier | ✓ | T0 auto-approve: T0-deterministic (72L, 1F, single-area, test) |
| stamphog 2.0.0b3 | .stamphog/policy.yml @ aebec27 · reviewed head 77b8a47 |
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.
Problem
The harness runtime integration test performs a cold import and full native Pi runtime initialization. Under concurrent CI load, that valid setup can exceed Vitest's default five-second timeout and fail unrelated pull requests.
Why: The test needs enough time to exercise the real runtime consistently in CI without weakening timeout coverage across the rest of the harness suite.
Changes
Give only the cold-start runtime test a 15-second timeout. All other harness tests retain Vitest's default timeout.
How did you test this?
pnpm exec biome check --write packages/harness/src/runtime.test.tspnpm --filter @posthog/shared buildpnpm --filter @posthog/harness test(661 tests passed)pnpm --filter @posthog/harness typecheckgit diff --checkAutomatic notifications
Created with PostHog Code