From 59483be9a0c6081fda225122abc5c51ec1265bf8 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Mon, 25 Dec 2023 16:31:32 +1100 Subject: [PATCH 1/2] =?UTF-8?q?feat(ci):=20when=20building=20and=20testing?= =?UTF-8?q?=20the=20package,=20randomize=20the=20runner=E2=80=99s=20timezo?= =?UTF-8?q?ne=20in=20order=20to=20provoke=20timezone-related=20bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/_build.yaml b/.github/workflows/_build.yaml index f3118e7e..b2ec9810 100644 --- a/.github/workflows/_build.yaml +++ b/.github/workflows/_build.yaml @@ -54,6 +54,12 @@ jobs: python: ['3.10', '3.11', '3.12', '3.13', '3.14'] steps: + # Randomize the runner's timezone in order to provoke related bugs and misbehaviors. + - name: Randomize Runner timezone + run: | + sudo timedatectl set-timezone "$(timedatectl list-timezones | uniq | shuf --head-count 1)" + timedatectl status + - name: Harden Runner uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 with: From b0826c2872115f0887d3b4c69e47883dec1ac98b Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Mon, 29 Jun 2026 22:19:48 +1000 Subject: [PATCH 2/2] chore: only for the artifact --- .github/workflows/_build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/_build.yaml b/.github/workflows/_build.yaml index b2ec9810..40bbbc44 100644 --- a/.github/workflows/_build.yaml +++ b/.github/workflows/_build.yaml @@ -56,6 +56,7 @@ jobs: # Randomize the runner's timezone in order to provoke related bugs and misbehaviors. - name: Randomize Runner timezone + if: matrix.os == env.ARTIFACT_OS run: | sudo timedatectl set-timezone "$(timedatectl list-timezones | uniq | shuf --head-count 1)" timedatectl status