Skip to content

test: Build TOS dates in UTC in lifecycle tests - #5165

Merged
taratatach merged 1 commit into
masterfrom
5148-bug-in-tests
Nov 4, 2026
Merged

taratatach merged 1 commit into
masterfrom
5148-bug-in-tests

Conversation

@taratatach

Copy link
Copy Markdown
Contributor

ParseTOSVersion reads the date of a TOS version as midnight UTC, but
the CheckTOSNotSigned test built its versions from the local date.
On a machine ahead of UTC, right after local midnight, the latest
version is then still in the future and the test gets TOSWarning
instead of TOSBlocked.

Build the dates from the current UTC time so the test passes in any
time zone and at any time of day.

Fixes #5148

@taratatach taratatach self-assigned this Nov 4, 2026
@taratatach
taratatach requested a review from shepilov as a code owner November 4, 2026 11:58
  `ParseTOSVersion` reads the date of a TOS version as midnight UTC, but
  the `CheckTOSNotSigned` test built its versions from the local date.
  On a machine ahead of UTC, right after local midnight, the latest
  version is then still in the future and the test gets `TOSWarning`
  instead of `TOSBlocked`.

  Build the dates from the current UTC time so the test passes in any
  time zone and at any time of day.

Co-Authored-By: AI
@taratatach
taratatach merged commit 30e33a1 into master Nov 4, 2026
4 checks passed
@taratatach
taratatach deleted the 5148-bug-in-tests branch November 4, 2026 19:40
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.

bug: CheckTOSNotSigned test fails after local midnight

2 participants