From db9f0634259e24d96cd9ec4f3adf6404b4690ee9 Mon Sep 17 00:00:00 2001 From: Andy Scott Date: Tue, 26 Feb 2019 16:08:30 -0800 Subject: [PATCH 1/2] Ignore JMH in reproducibility tests --- .bazelignore | 0 test_reproducibility.sh | 1 + 2 files changed, 1 insertion(+) create mode 100644 .bazelignore diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 000000000..e69de29bb diff --git a/test_reproducibility.sh b/test_reproducibility.sh index 5d866dbd4..73d058929 100755 --- a/test_reproducibility.sh +++ b/test_reproducibility.sh @@ -16,6 +16,7 @@ non_deploy_jar_md5_sum() { } test_build_is_identical() { + printf "\\n/test/jmh\\n" >> .bazelignore bazel build test/... non_deploy_jar_md5_sum > hash1 bazel clean From 9ada1e7614e6cbf380104b3af21e709844435141 Mon Sep 17 00:00:00 2001 From: Andy Scott Date: Tue, 26 Feb 2019 16:12:59 -0800 Subject: [PATCH 2/2] Restore file after test --- test_reproducibility.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_reproducibility.sh b/test_reproducibility.sh index 73d058929..1a5986e5a 100755 --- a/test_reproducibility.sh +++ b/test_reproducibility.sh @@ -16,6 +16,8 @@ non_deploy_jar_md5_sum() { } test_build_is_identical() { + cp .bazelignore .bazelignore.bak + trap 'mv .bazelignore.bak .bazelignore' EXIT printf "\\n/test/jmh\\n" >> .bazelignore bazel build test/... non_deploy_jar_md5_sum > hash1