Skip to content

feat(testing): add skip-time virtual clock#523

Open
yaythomas wants to merge 1 commit into
feat/per-execution-workerfrom
feat/skip-time-clock
Open

feat(testing): add skip-time virtual clock#523
yaythomas wants to merge 1 commit into
feat/per-execution-workerfrom
feat/skip-time-clock

Conversation

@yaythomas

Copy link
Copy Markdown
Contributor

Description of changes:

  • Add Clock protocol with RealClock and SkipClock implementations
  • Give each ExecutionWorker its own clock via the registry factory
  • Drive wait and step-retry timers off the clock so modeled delays complete instantly under skip while history keeps real durations
  • Default DurableFunctionTestRunner to skip_time=True; pass skip_time=False for real wall-clock timing
  • Remove the DURABLE_EXECUTION_TIME_SCALE env-var scaling

Issue #, if available:
closes #437

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@yaythomas yaythomas force-pushed the feat/per-execution-worker branch from 5c208f2 to 355edf1 Compare July 9, 2026 08:49
@yaythomas yaythomas force-pushed the feat/skip-time-clock branch from 346a870 to 2e9ba2b Compare July 9, 2026 08:56
@yaythomas yaythomas force-pushed the feat/per-execution-worker branch 2 times, most recently from 9829546 to 71962f1 Compare July 9, 2026 14:50
@yaythomas yaythomas force-pushed the feat/skip-time-clock branch 2 times, most recently from d2f04f2 to c494657 Compare July 9, 2026 15:27
@yaythomas yaythomas force-pushed the feat/per-execution-worker branch from 71962f1 to 11103e3 Compare July 10, 2026 00:32
- Add Clock protocol with RealClock and SkipClock implementations
- Give each ExecutionWorker its own clock via the registry factory
- Drive wait and step-retry timers off the clock so modeled delays
  complete instantly under skip while history keeps real durations
- Default DurableFunctionTestRunner to skip_time=True; pass
  skip_time=False for real wall-clock timing
- Remove the DURABLE_EXECUTION_TIME_SCALE env-var scaling
@yaythomas yaythomas force-pushed the feat/skip-time-clock branch from c494657 to c1b3e66 Compare July 10, 2026 09:18

@zhongkechen zhongkechen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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