From 9e0c2e12c29371075e61f2af15aabd1bd8b84091 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 16:46:21 +0000 Subject: [PATCH 1/2] test(safety): accept the DST gap in the next-day resume property Hypothesis found 2026-03-28 00:00 UTC with resume time 02:00: that wall time does not exist in Berlin on the spring-forward day and correctly resolves to 03:00. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VHXsfH6PkT62o9idByAd6e --- tests/safety/test_overrides.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/safety/test_overrides.py b/tests/safety/test_overrides.py index 74e73aa..fd4adb5 100644 --- a/tests/safety/test_overrides.py +++ b/tests/safety/test_overrides.py @@ -128,7 +128,12 @@ def test_next_day_resume_is_strictly_later_and_within_48_hours(now: datetime, ho policy = OverridePolicy(resume_time=datetime(2000, 1, 1, hour).time()) # noqa: DTZ001 resume = overrides.resume_at(policy, now, BERLIN) assert now < resume <= now + timedelta(hours=48) - assert resume.astimezone(BERLIN).hour == hour + local = resume.astimezone(BERLIN) + # On the spring-forward day the wall time in the DST gap does not exist (02:xx in + # Berlin); it resolves to the same instant one hour later on the clock. + wall = datetime(local.year, local.month, local.day, hour, tzinfo=BERLIN) + in_gap = wall.astimezone(UTC).astimezone(BERLIN).hour != hour + assert local.hour == (hour + 1 if in_gap else hour) def test_hold_resume_expire() -> None: From b7290310c0a113b8d28f9bd2f89c170eb799af4d Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 00:23:39 +0000 Subject: [PATCH 2/2] ci: pin the frontend job to ubuntu-24.04 (Playwright 1.56.1 has no Chromium for ubuntu 26.04) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VHXsfH6PkT62o9idByAd6e (cherry picked from commit d9f2dc641aaad83083db8c87902aa98951592cb7) --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f36ba6..7de7733 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,9 @@ jobs: frontend: name: Frontend - runs-on: ubuntu-latest + # Pinned: Playwright 1.56.1 cannot install Chromium on the ubuntu-latest image + # (ubuntu 26.04, "Playwright does not support chromium on ubuntu26.04-x64"). + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v5 with: