Repository navigation
4.4.2
The public API is the same as in 4.4.1. This release fixes one edge case in
retry jitter, and the property tests and CI now check the concurrency code
much more thoroughly.
🐛 Fixes
- Jittered retry delays now stay within
RetryPolicy.maximumDelay. A
jitter policy whose factor was just below the cutoff could produce a wait about a
millisecond over the documented maximum, because the cutoff
is rounded to aDouble. The result is now clamped, so every delay a retry
policy produces stays between zero andRetryPolicy.maximumDelay.
🧪 Testing
- Stall detection: The concurrency property tests fail with a shrunk
example if they stall from a lost wakeup, instead of hanging the run. - Branch coverage: The tests check that generated cases reach the
interesting paths: concurrent pipelines, overlapping transforms,
cancellation during reads, and ring buffer growth. - More concurrency code is tested: Property tests now cover the
coordinator state machine and the compact-map passthrough paths. - Under ThreadSanitizer, stall limits are a minute instead of 5 seconds,
so slow task switches aren't reported as hangs. - hegel-swift (test-only) is updated to 0.51.8. The property tests now use its
built-in stall detection, reach checks and test-case scaling instead of
local helpers.
🛠 CI
- Nightly workflow: Every night, the property tests run on macOS and Linux
with new random inputs and ten times the test cases, and the full test suite
runs under ThreadSanitizer. Pushes and pull requests still run the property
tests on fixed inputs.hegel.tomladds the randomizednightlyprofile. CONTRIBUTING.mdexplains how to run the nightly and ThreadSanitizer runs
locally.