Skip to content

Inject Clock into ProcessLauncher and Runner for testable time - #16

Merged
csjones merged 1 commit into
mainfrom
CI-TIMING-FIXES
Aug 28, 2026
Merged

csjones merged 1 commit into
mainfrom
CI-TIMING-FIXES

Conversation

@csjones

@csjones csjones commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Tests that judged how long a real wait took were asserting the build machine was not busy, not the code, and that turned the shared branch red on 2026-08-27. Shipped code now uses the standard library Clock (defaulting to ContinuousClock); tests supply a TestClock so time can be advanced by hand. The swift-clocks dependency and its two transitive packages are test-only, pinned in the committed lockfile, and do not ship with the binary.

Tests that judged how long a real wait took were asserting the build machine was not busy, not the code, and that turned the shared branch red on 2026-08-27. Shipped code now uses the standard library Clock (defaulting to ContinuousClock); tests supply a TestClock so time can be advanced by hand. The swift-clocks dependency and its two transitive packages are test-only, pinned in the committed lockfile, and do not ship with the binary.
@csjones
csjones merged commit 06759fe into main Aug 28, 2026
2 checks passed
@csjones
csjones deleted the CI-TIMING-FIXES branch August 28, 2026 07:36
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