Skip to content

test(extension): the never-swap test no longer depends on the date - #30

Merged
HackTuah merged 1 commit into
mainfrom
fix/date-dependent-test
Oct 7, 2026
Merged

HackTuah merged 1 commit into
mainfrom
fix/date-dependent-test

Conversation

@HackTuah

@HackTuah HackTuah commented Oct 7, 2026

Copy link
Copy Markdown
Member

The DOM test "a word on the never-swap list stays, on every page, until it is taken off" depended on the date. The language a word shows in is drawn per page per day (slice 18); on 2026-10-07 UTC the draw picks Mandarin, so the test fails on every branch today, main included, and it failed the rc.1 release build (security review finding C-08). This one-line test change loads only the Russian words, so the outcome no longer depends on the day. Pinned to each day of October 2026, the test failed on 18 days before and passes on all after.

It unblocks #28 and #29. The same change is part of the larger fix/sec-background branch.

🤖 Generated with Claude Code

The language a word shows in is drawn per page per day (slice 18), and
"thanks" has three. The test expected Russian, which the draw picks on
some days only; on 2026-10-07 (UTC) it drew Mandarin, which failed CI on
every branch and the rc.1 release build (security review finding C-08).
The test is about the never-swap list, so it now loads only the Russian
words. Pinned to each day of October 2026, it failed on 18 days before
and passes on all after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
@HackTuah
HackTuah requested a review from minitru as a code owner October 7, 2026 02:08
@HackTuah
HackTuah merged commit 0057915 into main Oct 7, 2026
12 checks passed
@HackTuah
HackTuah deleted the fix/date-dependent-test branch October 7, 2026 10:37
HackTuah pushed a commit that referenced this pull request Oct 7, 2026
The language a word shows in is drawn per page per day (slice 18). Three
new tests in this branch expected the Russian word for "thanks", which
the draw picks on some days only; on 2026-10-07 it drew Mandarin, and CI
failed. #30 fixed one such test by hand; this pins the page's clock to
noon on 2026-10-06 for every test page, with time still running on, so
no content test can depend on the day again. Without it, three tests
fail under TZ=UTC today; with it, all pass in four time zones covering 6,
7 and 8 October.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
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