From a91e72c3efd64f0d67fd4950ac0e8e3bb84f33a6 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Fri, 12 Nov 2021 02:40:50 +0100 Subject: [PATCH] mobilizon-reshare.git: Disable test_format_event. These tests somehow depend on the system timezone. While we try and make them reproducible, they'll have to be disabled in prod since they prevent the image from building. --- docker/mobilizon-reshare.scm | 5 +++-- scripts/build_docker_image.sh | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/mobilizon-reshare.scm b/docker/mobilizon-reshare.scm index f0d57c5..b34590e 100644 --- a/docker/mobilizon-reshare.scm +++ b/docker/mobilizon-reshare.scm @@ -369,8 +369,9 @@ development, testing, production]}; (when tests? (invoke "python" "-m" "pytest" ;; This test fails because of the unvendoring - ;; of toml from dynaconf. - "-k" "not test_get_settings_failure_invalid_toml"))))))) + ;; of toml from dynaconf and + ;; because they depend on system timezone. + "-k" "not test_get_settings_failure_invalid_toml and not test_format_event"))))))) (native-inputs `(("python-asynctest" ,python-asynctest) ("python-iniconfig" ,python-iniconfig) diff --git a/scripts/build_docker_image.sh b/scripts/build_docker_image.sh index f4bdcd3..24c761b 100755 --- a/scripts/build_docker_image.sh +++ b/scripts/build_docker_image.sh @@ -1,4 +1,6 @@ #!/bin/sh set -eu +guix time-machine -C channels-lock.scm -- build -L . -L ./patches -f guix.scm + guix time-machine -C channels-lock.scm -- system docker-image -L . -L ./patches --root=docker-image.tar.gz docker/image.scm