Skip to content

feat(clock): add TimerSkippingRealExecutionClock - #55

Draft
janrnc wants to merge 2 commits into
gdgvda:masterfrom
janrnc:feat/timer-skipping-real-execution-clock
Draft

feat(clock): add TimerSkippingRealExecutionClock#55
janrnc wants to merge 2 commits into
gdgvda:masterfrom
janrnc:feat/timer-skipping-real-execution-clock

Conversation

@janrnc

@janrnc janrnc commented Jul 16, 2026

Copy link
Copy Markdown
Member
  • Adds TimerSkippingRealExecutionClock, a manual clock that skips idle time like the existing instant-execution clock, but lets triggered jobs run for real in their own goroutines.
  • While any job is executing, the virtual clock flows 1:1 with the wall clock so jobs observe real time passing and any activation that comes due fires naturally; while idle, it freezes and jumps straight to the next activation or the requested target.
  • AdvanceTo/AdvanceBy return once the clock reaches the requested instant (paying the real execution time of any job windows crossed along the way); WaitForIdle blocks until all triggered jobs have completed and the clock has frozen again.

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.98214% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.34%. Comparing base (c4e762c) to head (bef33aa).

Files with missing lines Patch % Lines
timer_skipping_real_execution_clock.go 95.98% 6 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
+ Coverage   95.18%   95.34%   +0.15%     
==========================================
  Files          18       19       +1     
  Lines         893     1117     +224     
==========================================
+ Hits          850     1065     +215     
- Misses         30       36       +6     
- Partials       13       16       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@janrnc
janrnc force-pushed the feat/timer-skipping-real-execution-clock branch from d5bfd79 to 2e20be2 Compare July 16, 2026 21:16
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.

1 participant