From 3f33761e70ae1af57714c29ffda924592f34ec89 Mon Sep 17 00:00:00 2001 From: DavePearce Date: Tue, 26 Nov 2024 15:02:41 +1300 Subject: [PATCH] Disable tests which still use too much resource This disable remaining tests which actually still use too much resource for `go-corset`. Potentially, we should be considering some kind of graceful exit when this happens. Situations where it gets stuck: (1) Actually reading the trace file. --- .../java/net/consensys/linea/replaytests/LeosNewRanges.java | 4 ++++ .../net/consensys/linea/testing/ExecutionEnvironment.java | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arithmetization/src/test/java/net/consensys/linea/replaytests/LeosNewRanges.java b/arithmetization/src/test/java/net/consensys/linea/replaytests/LeosNewRanges.java index 14e7b17d29..45a80cf2dd 100644 --- a/arithmetization/src/test/java/net/consensys/linea/replaytests/LeosNewRanges.java +++ b/arithmetization/src/test/java/net/consensys/linea/replaytests/LeosNewRanges.java @@ -17,6 +17,7 @@ import static net.consensys.linea.replaytests.ReplayTestTools.replay; import static net.consensys.linea.testing.ReplayExecutionEnvironment.LINEA_MAINNET; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; @@ -47,6 +48,7 @@ void leos_new_ranges_2362189_2362291() { replay(LINEA_MAINNET, "2362189-2362291.json.gz"); } + @Disabled("Out-Of-Memory") @Test void leos_new_ranges_5002125_5002158() { replay(LINEA_MAINNET, "5002125-5002158.json.gz"); @@ -72,6 +74,7 @@ void leos_new_ranges_5006988_5007039() { replay(LINEA_MAINNET, "5006988-5007039.json.gz"); } + @Disabled("Out-Of-Memory") @Test void leos_new_ranges_5012236_5012275() { replay(LINEA_MAINNET, "5012236-5012275.json.gz"); @@ -82,6 +85,7 @@ void leos_new_ranges_5025817_5025859() { replay(LINEA_MAINNET, "5025817-5025859.json.gz"); } + @Disabled("Out-Of-Memory") @Test void leos_new_ranges_5037583_5037608() { replay(LINEA_MAINNET, "5037583-5037608.json.gz"); diff --git a/testing/src/main/java/net/consensys/linea/testing/ExecutionEnvironment.java b/testing/src/main/java/net/consensys/linea/testing/ExecutionEnvironment.java index 5179092ab6..9bce8fd39a 100644 --- a/testing/src/main/java/net/consensys/linea/testing/ExecutionEnvironment.java +++ b/testing/src/main/java/net/consensys/linea/testing/ExecutionEnvironment.java @@ -75,7 +75,6 @@ public static void checkTracer( } catch (IOException e) { throw new RuntimeException(e); } finally { - /* if (traceFilePath != null && traceValidated) { if (System.getenv("PRESERVE_TRACE_FILES") == null) { boolean traceFileDeleted = traceFilePath.toFile().delete(); @@ -84,7 +83,6 @@ public static void checkTracer( log -> log.debug("trace file {} deleted {}", finalTraceFilePath, traceFileDeleted)); } } - */ } }