From 8b24de94abe97feb5daeb935dd5d68b678be7f07 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 29 Oct 2024 15:32:43 +0100 Subject: [PATCH] wip tracking download fails --- Framework/KubernetesWorkflow/LogHandler.cs | 6 ++++++ Framework/Logging/BaseLog.cs | 2 +- .../CodexPlugin/CodexContainerRecipe.cs | 19 ++++++++++--------- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Framework/KubernetesWorkflow/LogHandler.cs b/Framework/KubernetesWorkflow/LogHandler.cs index f185ba1..1b7c61e 100644 --- a/Framework/KubernetesWorkflow/LogHandler.cs +++ b/Framework/KubernetesWorkflow/LogHandler.cs @@ -1,4 +1,5 @@ using Logging; +using Utils; namespace KubernetesWorkflow { @@ -40,6 +41,11 @@ namespace KubernetesWorkflow protected override void ProcessLine(string line) { + foreach (var replacement in BaseLog.replacements) + { + line = replacement.Apply(line); + } + LogFile.WriteRaw(line); } } diff --git a/Framework/Logging/BaseLog.cs b/Framework/Logging/BaseLog.cs index afae122..3ad8f05 100644 --- a/Framework/Logging/BaseLog.cs +++ b/Framework/Logging/BaseLog.cs @@ -16,7 +16,7 @@ namespace Logging public static bool EnableDebugLogging { get; set; } = false; private readonly NumberSource subfileNumberSource = new NumberSource(0); - private readonly List replacements = new List(); + public static List replacements = new List(); private LogFile? logFile; public BaseLog() diff --git a/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs b/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs index b7c86f6..52c4413 100644 --- a/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs +++ b/ProjectPlugins/CodexPlugin/CodexContainerRecipe.cs @@ -8,17 +8,18 @@ namespace CodexPlugin public class CodexContainerRecipe : ContainerRecipeFactory { private const string DefaultDockerImage = - //"codexstorage/nim-codex:0.1.7-dist-tests"; // => 20/20: 17 seconds 10/10: 3 seconds - //"codexstorage/nim-codex:sha-2a25460-dist-tests"; // PR => 20/20: 17 seconds - //"thatbenbierens/nim-codex:blockexcpr1"; // PR with revert of "Fixes issue where only wants of type block are stored in peerContext" => 20/20: 17 seconds - //"thatbenbierens/nim-codex:blockexprecreate"; // v0.1.7 with patch => 20/20: 19 seconds - //"thatbenbierens/nim-codex:blockexprecreate016"; // v0.1.6 with patch => 20/20: 19 seconds 10/10: 2 seconds - "thatbenbierens/nim-codex:blockexchprtinker7"; - //"thatbenbierens/nim-codex:blkexc9"; // wow-fast + //"codexstorage/nim-codex:0.1.7-dist-tests"; // => 20/20: 17 seconds 10/10: 3 seconds + //"codexstorage/nim-codex:sha-2a25460-dist-tests"; // PR => 20/20: 17 seconds + //"thatbenbierens/nim-codex:blockexcpr1"; // PR with revert of "Fixes issue where only wants of type block are stored in peerContext" => 20/20: 17 seconds + //"thatbenbierens/nim-codex:blockexprecreate"; // v0.1.7 with patch => 20/20: 19 seconds + //"thatbenbierens/nim-codex:blockexprecreate016"; // v0.1.6 with patch => 20/20: 19 seconds 10/10: 2 seconds + //"thatbenbierens/nim-codex:blockexchprtinker7"; + //"thatbenbierens/nim-codex:blkexc9"; // wow-fast + "thatbenbierens/nim-codex:asyncprofile5break"; // asynced trees. - blocks are stored, blocks are resolved - store-stream does not continue. node too busy??? + //blocks are stored, blocks are resolved + //store-stream does not continue. node too busy??? public const string ApiPortTag = "codex_api_port"; public const string ListenPortTag = "codex_listen_port";