Skip to content

Commit

Permalink
Merge pull request #1593 from orbs-network/fix_logs
Browse files Browse the repository at this point in the history
enable warm-up compilation on gamma test
  • Loading branch information
gadcl authored Jul 12, 2020
2 parents f9e7f58 + b1fa7b8 commit 6c8d44a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions bootstrap/gamma/deploy_native_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion config/system_factory_presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 6c8d44a

Please sign in to comment.