From 2bafab8b22833a58de5b48e2c0d0d01f157d8799 Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 7 Aug 2023 11:21:26 +0200 Subject: [PATCH 1/2] Adds check against failure to deploy codex contracts --- DistTestCore/Marketplace/CodexContractsStarter.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DistTestCore/Marketplace/CodexContractsStarter.cs b/DistTestCore/Marketplace/CodexContractsStarter.cs index 7a45016a..c41df534 100644 --- a/DistTestCore/Marketplace/CodexContractsStarter.cs +++ b/DistTestCore/Marketplace/CodexContractsStarter.cs @@ -91,8 +91,13 @@ namespace DistTestCore.Marketplace { debug(line); if (line.Contains(RequiredCompiledString)) SeenCompileString = true; + if (line.Contains(ReadyString)) + { + if (!SeenCompileString) throw new Exception("CodexContracts deployment failed. " + + "Solidity files not compiled before process exited."); - if (SeenCompileString && line.Contains(ReadyString)) Found = true; + Found = true; + } } } } From 9840c50e9f067d0fb1d0261b40549db65fd37fd7 Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 7 Aug 2023 14:33:04 +0200 Subject: [PATCH 2/2] Rolls back node version in contracts container. --- DistTestCore/Marketplace/CodexContractsContainerRecipe.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DistTestCore/Marketplace/CodexContractsContainerRecipe.cs b/DistTestCore/Marketplace/CodexContractsContainerRecipe.cs index 51e62d59..d4bc5d1d 100644 --- a/DistTestCore/Marketplace/CodexContractsContainerRecipe.cs +++ b/DistTestCore/Marketplace/CodexContractsContainerRecipe.cs @@ -11,7 +11,7 @@ namespace DistTestCore.Marketplace public CodexContractsContainerRecipe() { - Image = "codexstorage/dist-tests-codex-contracts-eth:sha-b4e4897"; + Image = "codexstorage/dist-tests-codex-contracts-eth:sha-9a83699"; } protected override void Initialize(StartupConfig startupConfig)