feat: time-skipping test support and delayed-callback scheduler#779
Open
xepozz wants to merge 1 commit into
Open
feat: time-skipping test support and delayed-callback scheduler#779xepozz wants to merge 1 commit into
xepozz wants to merge 1 commit into
Conversation
xepozz
force-pushed
the
feature/testing-fw-timeskip
branch
from
July 21, 2026 06:15
586c7c5 to
814a763
Compare
- TimeLockingInterceptor + TimeSkippingWorkflowTestCase: timer-only workflows and ActivityMocker now work under time-skipping (composer test:func-timeskip). Closes #743, #745. - DelayedCallbackScheduler ($this->delayedCallbacks): fire signal/query/cancel at simulated-time offsets; signalAfter() / readyWhen(). Addresses #529. - Lock-counter ownership guard in WorkflowTestCase::tearDown; test-side address via TemporalServer::address().
xepozz
force-pushed
the
feature/testing-fw-timeskip
branch
from
July 21, 2026 06:16
814a763 to
a557c2e
Compare
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.
What was changed
Time-skipping test support + a client-side delayed-callback scheduler.
TimeLockingInterceptor+TimeSkippingWorkflowTestCase: timer-only workflows and ActivityMocker now work under time-skipping (composer test:func-timeskip).DelayedCallbackScheduler($this->delayedCallbacks): fire signal/query/cancel at simulated-time offsets;signalAfter()/readyWhen().WorkflowTestCase::tearDown(a leaked lock no longer poisons the suite); test-side address viaTemporalServer::address().Why?
Timer-driven workflows were untestable under time-skipping and ActivityMocker + long timers hit spurious activity timeouts.
Checklist
Closes [Bug] WorkflowTestCase / TestService: time skipping starts locked by default, no auto-unlock around getResult() — timer-only workflows hang in tests #743
closes [Bug] ActivityMocker is incompatible with time-skipping — virtual clock skips through start-to-close timeout before mocked response arrives #745
closes [Feature Request] registerDelayedCallback for tests #529
How was this tested:
New Unit/Functional/Functional-TimeSkipping suites, all green + a negative repro for #745.
Yes — testing-suite page on docs.temporal.io.