Repository navigation
test(deploy): allow a CI clock step in the UUIDv7 time check - #397
Conversation
The check refused an id stamped 0.8 s after the time read just after it: the runner's clock stepped back between the two reads (CI run 44887353778). The id is still required within a minute of now, and at most a second ahead. Signed-off-by: samuel mbabhazi <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What
The installer test checks that a generated UUIDv7 holds the current time. It now allows the id to be up to one second ahead of the time read after it. It still requires the id within a minute of now.
Why
CI run 44887353778 failed on an unrelated PR (#395): the id was stamped 08:58:47.922, while the runner logged the failure at 08:58:47.105. The runner's clock stepped back between the two reads.
new_uuid7was right; the test was too strict for a clock that NTP can step.How it was tested
deploy/control-plane/install_test.shpasses locally. shellcheck reports no issue.Security considerations
Test only. The installer is unchanged.
Summary by CodeRabbit