Skip to content

test(node-core): Fix flaky cron instrumentation test#21092

Merged
JPeer264 merged 1 commit into
developfrom
fix/flaky-node-core-cron-test
May 22, 2026
Merged

test(node-core): Fix flaky cron instrumentation test#21092
JPeer264 merged 1 commit into
developfrom
fix/flaky-node-core-cron-test

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Summary

suites/cron/cron/test.ts in node-core-integration-tests was still timing out occasionally on CI (issue #20971). The scenario exits the child process after 5000 ms and the vitest test uses the default timeout, leaving little headroom for two cron ticks (* * * * * *) plus the HTTP envelope round-trips through withMockSentryServer().

Root cause

The sibling test in node-integration-tests had the same flake symptom previously (#20652 / #20663) and was already adjusted to a 15_000 ms process-exit timeout and a 30_000 ms vitest test timeout. The node-core-integration-tests version still carried the original tight budgets (5000 ms / vitest default), so it remained susceptible to the same timing pressure.

This change mirrors the working sibling pattern verbatim — no assertions are altered, no coverage is loosened, only the wall-clock budget grows.

Fixes #20971

@github-actions github-actions Bot requested a review from a team as a code owner May 21, 2026 11:11
@github-actions github-actions Bot requested review from andreiborza and mydea and removed request for a team May 21, 2026 11:11
Copy link
Copy Markdown
Member

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a big fan of increasing timeouts, but let's see if it works

@JPeer264 JPeer264 force-pushed the fix/flaky-node-core-cron-test branch from 33ed21a to 2a786b0 Compare May 22, 2026 14:36
@JPeer264 JPeer264 enabled auto-merge (squash) May 22, 2026 14:36
@JPeer264 JPeer264 merged commit ba8dd0c into develop May 22, 2026
47 checks passed
@JPeer264 JPeer264 deleted the fix/flaky-node-core-cron-test branch May 22, 2026 14:46
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.

[Flaky CI]: Node (18) Node-Core Integration Tests - suites/cron/cron/test.ts > cron instrumentation

1 participant