From b1fa7b8473aad926014b2192a14a18aa26f5bb47 Mon Sep 17 00:00:00 2001 From: gadcl Date: Sun, 12 Jul 2020 16:50:33 +0300 Subject: [PATCH] enable warm-up compilation on gamma test --- bootstrap/gamma/deploy_native_test.go | 5 ++--- config/system_factory_presets.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bootstrap/gamma/deploy_native_test.go b/bootstrap/gamma/deploy_native_test.go index c95e1b456..e19472671 100644 --- a/bootstrap/gamma/deploy_native_test.go +++ b/bootstrap/gamma/deploy_native_test.go @@ -58,9 +58,8 @@ func TestNonLeaderDeploysNativeContract(t *testing.T) { if testing.Short() { t.Skip("Skipping compilation of contracts in short mode") } - - t.Run("Benchmark", testDeployNativeContractWithConfig("")) - t.Run("LeanHelix", testDeployNativeContractWithConfig(fmt.Sprintf(`{"active-consensus-algo":%d}`, consensus.CONSENSUS_ALGO_TYPE_LEAN_HELIX))) + t.Run("Benchmark", testDeployNativeContractWithConfig(fmt.Sprintf(`{"processor-perform-warm-up-compilation":%t}`, true))) + t.Run("LeanHelix", testDeployNativeContractWithConfig(fmt.Sprintf(`{"active-consensus-algo":%d, "processor-perform-warm-up-compilation":%t}`, consensus.CONSENSUS_ALGO_TYPE_LEAN_HELIX, true))) } func TestDeployNativeContractFailsWhenUsingSystemContractName(t *testing.T) { diff --git a/config/system_factory_presets.go b/config/system_factory_presets.go index d89398b17..73f5b3ce1 100644 --- a/config/system_factory_presets.go +++ b/config/system_factory_presets.go @@ -292,7 +292,7 @@ func TemplateForGamma( // Around plugins the problem usually is a version mismatch for the warmup compilation for orbs-contract-sdk // The reason being the race detector is instrumenting the code of the package thus causing it to not be the same binary result // As the version of the package within the compiled plugin therefore the warmup compilation fails. - cfg.SetBool(PROCESSOR_PERFORM_WARM_UP_COMPILATION, true) + cfg.SetBool(PROCESSOR_PERFORM_WARM_UP_COMPILATION, false) return cfg }