Skip to content

test(server): Speed up reinitializeMissingDependency via shortened poll - #1524

Merged
matz3 merged 1 commit into
mainfrom
improve-test-reinitializeMissingDependency
Aug 14, 2026
Merged

test(server): Speed up reinitializeMissingDependency via shortened poll#1524
matz3 merged 1 commit into
mainfrom
improve-test-reinitializeMissingDependency

Conversation

@matz3

@matz3 matz3 commented Aug 14, 2026

Copy link
Copy Markdown
Member

The test sat through the real 30 s slow-recovery interval, taking 35 s+. Expose the interval through a test-only internals handle on the Supervisor (NODE_ENV-gated, undefined in production) so the test can shorten it to 500 ms.

Rework the fast-budget drain to count re-resolve failures instead of detecting a quiet window, since a slow interval near the fast cadence no longer distinguishes the two phases by timing. The test now runs in ~6 s and still drives the genuine end-to-end recovery path.

The test sat through the real 30 s slow-recovery interval, taking 35 s+. Expose
the interval through a test-only __internals__ handle on the Supervisor
(NODE_ENV-gated, undefined in production) so the test can shorten it to 500 ms.

Rework the fast-budget drain to count re-resolve failures instead of detecting a
quiet window, since a slow interval near the fast cadence no longer distinguishes
the two phases by timing. The test now runs in ~6 s and still drives the genuine
end-to-end recovery path.
@matz3
matz3 requested a review from a team August 14, 2026 14:13
@matz3

matz3 commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

There is still a flaky test for ProjectDefinitionWatcher, which suffers from a similar issue on Windows like in #1513. I will follow-up on that next week.

@matz3
matz3 merged commit bce3c5e into main Aug 14, 2026
131 of 133 checks passed
@matz3
matz3 deleted the improve-test-reinitializeMissingDependency branch August 14, 2026 16:48
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.

2 participants