From 97184e0614e3c5f80c09492d28f09124ce9039a3 Mon Sep 17 00:00:00 2001 From: Laurynas Lubys Date: Mon, 25 Apr 2022 13:46:19 +0000 Subject: [PATCH] Disable caching for install_pkgs_reproducibility_test deps download_pkgs is not hermetic as it goes out to the package repository to fetch packages. If the remote apt repository gets updated, the bazel cache can get into a weird state. --- .bazelrc | 7 ++++--- tests/docker/package_managers/BUILD | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index 178245be2..e6d35a099 100644 --- a/.bazelrc +++ b/.bazelrc @@ -57,7 +57,8 @@ test:remote --remote_timeout=3600 test:remote --keep_going # Configuration specific to buildkite CI testing the default workspace -test:buildkite --action_env=PATH -test:buildkite --define=ENV_KEY=my_key # for tests/container:set_env_make_vars_test -test:buildkite --define=ENV_VALUE=my_value # for tests/container:set_env_make_vars_test +test:buildkite --action_env=PATH +test:buildkite --define=ENV_KEY=my_key # for tests/container:set_env_make_vars_test +test:buildkite --define=ENV_VALUE=my_value # for tests/container:set_env_make_vars_test test:buildkite --test_output=errors +test:buildkite --experimental_allow_tags_propagation diff --git a/tests/docker/package_managers/BUILD b/tests/docker/package_managers/BUILD index d658bf481..769e3429d 100644 --- a/tests/docker/package_managers/BUILD +++ b/tests/docker/package_managers/BUILD @@ -131,6 +131,7 @@ install_pkgs( image_tar = "@ubuntu1604//:ubuntu1604_vanilla.tar", installables_tar = ":download_pkg_git.tar", output_image_name = "test_install_pkgs_duplicate", + tags = ["no-cache"], ) install_pkgs( @@ -138,6 +139,7 @@ install_pkgs( image_tar = "@ubuntu1604//:ubuntu1604_vanilla.tar", installables_tar = ":download_pkg_git.tar", output_image_name = "test_install_pkgs_duplicate", + tags = ["no-cache"], ) compare_ids_test(