From 8ddb100c70cb18b84503a56604d698a14f6c5426 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Mon, 25 Dec 2023 16:31:32 +1100 Subject: [PATCH] =?UTF-8?q?feat(ci):=20when=20building=20and=20testing=20t?= =?UTF-8?q?he=20package,=20randomize=20the=20runner=E2=80=99s=20timezone?= =?UTF-8?q?=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 3268d4fc..b33571db 100644 --- a/.github/workflows/_build.yaml +++ b/.github/workflows/_build.yaml @@ -52,6 +52,12 @@ jobs: python: ['3.10', '3.11'] 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@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 with: