From b12f60994fdd54cb4d8e18e444c207e319f9d6a6 Mon Sep 17 00:00:00 2001 From: ludamad Date: Wed, 24 Apr 2024 23:15:20 -0500 Subject: [PATCH] chore(ci): prevent haywire logs (#5966) Note: code in json sorta sucks, I couldn't comment why this is used. There is a bad interaction between earthly x github actions x jest summary reporter. As far as I can see, it's this combination and not any piece alone (something something ansi codes, but not entirely sure). This seems like simplest fix. Without this, it was causing a lot of duplicated lines. But this particularly interacted with the poor rendering performance of github actions logs. The other piece is that its rendering is just slow in chrome for 10,000K+ lines. use raw logs, or another browser like safari --- yarn-project/accounts/package.json | 8 ++++++++ yarn-project/archiver/package.json | 8 ++++++++ yarn-project/aztec-faucet/package.json | 8 ++++++++ yarn-project/aztec-node/package.json | 8 ++++++++ yarn-project/aztec.js/package.json | 8 ++++++++ yarn-project/aztec/package.json | 8 ++++++++ yarn-project/builder/package.json | 8 ++++++++ yarn-project/circuit-types/package.json | 8 ++++++++ yarn-project/circuits.js/package.json | 10 +++++++++- yarn-project/end-to-end/jest.integration.config.json | 1 + yarn-project/end-to-end/package.json | 1 + yarn-project/entrypoints/package.json | 8 ++++++++ yarn-project/ethereum/package.json | 8 ++++++++ yarn-project/foundation/package.json | 8 ++++++++ yarn-project/key-store/package.json | 8 ++++++++ yarn-project/kv-store/package.json | 8 ++++++++ yarn-project/merkle-tree/package.json | 8 ++++++++ yarn-project/noir-contracts.js/package.json | 8 ++++++++ yarn-project/noir-protocol-circuits-types/package.json | 10 +++++++++- yarn-project/p2p-bootstrap/package.json | 8 ++++++++ yarn-project/p2p/package.json | 8 ++++++++ yarn-project/package.common.json | 1 + yarn-project/protocol-contracts/package.json | 8 ++++++++ yarn-project/prover-client/package.json | 8 ++++++++ yarn-project/pxe/package.json | 8 ++++++++ yarn-project/scripts/package.json | 8 ++++++++ yarn-project/sequencer-client/package.json | 10 +++++++++- yarn-project/simulator/package.json | 8 ++++++++ yarn-project/types/package.json | 8 ++++++++ yarn-project/world-state/package.json | 8 ++++++++ 30 files changed, 222 insertions(+), 3 deletions(-) diff --git a/yarn-project/accounts/package.json b/yarn-project/accounts/package.json index b78eb273ca5..2b3cde6cec1 100644 --- a/yarn-project/accounts/package.json +++ b/yarn-project/accounts/package.json @@ -50,6 +50,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/archiver/package.json b/yarn-project/archiver/package.json index e1de8022869..1eff7e25ea0 100644 --- a/yarn-project/archiver/package.json +++ b/yarn-project/archiver/package.json @@ -39,6 +39,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/aztec-faucet/package.json b/yarn-project/aztec-faucet/package.json index 28accc5b543..957b2203b87 100644 --- a/yarn-project/aztec-faucet/package.json +++ b/yarn-project/aztec-faucet/package.json @@ -36,6 +36,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/aztec-node/package.json b/yarn-project/aztec-node/package.json index 36f1026b451..43c4c4e7ad5 100644 --- a/yarn-project/aztec-node/package.json +++ b/yarn-project/aztec-node/package.json @@ -37,6 +37,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/aztec.js/package.json b/yarn-project/aztec.js/package.json index d4f1ad2ed96..96748862412 100644 --- a/yarn-project/aztec.js/package.json +++ b/yarn-project/aztec.js/package.json @@ -54,6 +54,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/aztec/package.json b/yarn-project/aztec/package.json index 5d3874c5a85..d9f79c69f3b 100644 --- a/yarn-project/aztec/package.json +++ b/yarn-project/aztec/package.json @@ -78,6 +78,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "engines": { diff --git a/yarn-project/builder/package.json b/yarn-project/builder/package.json index cac014a948c..cb01a3034bc 100644 --- a/yarn-project/builder/package.json +++ b/yarn-project/builder/package.json @@ -46,6 +46,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/circuit-types/package.json b/yarn-project/circuit-types/package.json index d0a245f9f42..8779c385af2 100644 --- a/yarn-project/circuit-types/package.json +++ b/yarn-project/circuit-types/package.json @@ -41,6 +41,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/circuits.js/package.json b/yarn-project/circuits.js/package.json index e3ef5ffd921..07c5759f8a2 100644 --- a/yarn-project/circuits.js/package.json +++ b/yarn-project/circuits.js/package.json @@ -78,6 +78,14 @@ "^(\\.{1,2}/.*)\\.[cm]?js$": "$1" }, "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", - "rootDir": "./src" + "rootDir": "./src", + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] + ] } } diff --git a/yarn-project/end-to-end/jest.integration.config.json b/yarn-project/end-to-end/jest.integration.config.json index c29166140a6..84d61df320c 100644 --- a/yarn-project/end-to-end/jest.integration.config.json +++ b/yarn-project/end-to-end/jest.integration.config.json @@ -6,6 +6,7 @@ "moduleNameMapper": { "^(\\.{1,2}/.*)\\.js$": "$1" }, + "reporters": [["default", {"summaryThreshold": 9999}]], "testRegex": "./src/.*\\.test\\.ts$", "rootDir": "./src" } diff --git a/yarn-project/end-to-end/package.json b/yarn-project/end-to-end/package.json index 3ff8401dd77..524ecfedde8 100644 --- a/yarn-project/end-to-end/package.json +++ b/yarn-project/end-to-end/package.json @@ -110,6 +110,7 @@ "@swc/jest" ] }, + "reporters": [["default", {"summaryThreshold": 9999}]], "moduleNameMapper": { "^(\\.{1,2}/.*)\\.[cm]?js$": "$1" }, diff --git a/yarn-project/entrypoints/package.json b/yarn-project/entrypoints/package.json index 3ee6b4bbe95..63470f19789 100644 --- a/yarn-project/entrypoints/package.json +++ b/yarn-project/entrypoints/package.json @@ -40,6 +40,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/ethereum/package.json b/yarn-project/ethereum/package.json index f844712e9ef..efd72f2d3da 100644 --- a/yarn-project/ethereum/package.json +++ b/yarn-project/ethereum/package.json @@ -56,6 +56,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "engines": { diff --git a/yarn-project/foundation/package.json b/yarn-project/foundation/package.json index df881ec593c..a4b504dfb1e 100644 --- a/yarn-project/foundation/package.json +++ b/yarn-project/foundation/package.json @@ -67,6 +67,14 @@ "rootDir": "./src", "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/key-store/package.json b/yarn-project/key-store/package.json index 27830c38bae..79ce75204c3 100644 --- a/yarn-project/key-store/package.json +++ b/yarn-project/key-store/package.json @@ -34,6 +34,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/kv-store/package.json b/yarn-project/kv-store/package.json index d22d0190c7d..0fcb06fd0e3 100644 --- a/yarn-project/kv-store/package.json +++ b/yarn-project/kv-store/package.json @@ -33,6 +33,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/merkle-tree/package.json b/yarn-project/merkle-tree/package.json index 70f816d62b5..8d19e74c5a5 100644 --- a/yarn-project/merkle-tree/package.json +++ b/yarn-project/merkle-tree/package.json @@ -36,6 +36,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/noir-contracts.js/package.json b/yarn-project/noir-contracts.js/package.json index 811ab20a72b..138a1771247 100644 --- a/yarn-project/noir-contracts.js/package.json +++ b/yarn-project/noir-contracts.js/package.json @@ -34,6 +34,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/noir-protocol-circuits-types/package.json b/yarn-project/noir-protocol-circuits-types/package.json index 01acd5cc549..c8bcbff9171 100644 --- a/yarn-project/noir-protocol-circuits-types/package.json +++ b/yarn-project/noir-protocol-circuits-types/package.json @@ -34,7 +34,15 @@ "^.+\\.tsx?$": [ "@swc/jest" ] - } + }, + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] + ] }, "dependencies": { "@aztec/builder": "workspace:^", diff --git a/yarn-project/p2p-bootstrap/package.json b/yarn-project/p2p-bootstrap/package.json index c715d62a522..d4a718755ad 100644 --- a/yarn-project/p2p-bootstrap/package.json +++ b/yarn-project/p2p-bootstrap/package.json @@ -56,6 +56,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "engines": { diff --git a/yarn-project/p2p/package.json b/yarn-project/p2p/package.json index 8ba5ec40883..8ec12b13a0e 100644 --- a/yarn-project/p2p/package.json +++ b/yarn-project/p2p/package.json @@ -36,6 +36,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/package.common.json b/yarn-project/package.common.json index 3baad97350e..80b56a8d697 100644 --- a/yarn-project/package.common.json +++ b/yarn-project/package.common.json @@ -24,6 +24,7 @@ "moduleNameMapper": { "^(\\.{1,2}/.*)\\.[cm]?js$": "$1" }, + "reporters": [["default", {"summaryThreshold": 9999}]], "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", "rootDir": "./src" } diff --git a/yarn-project/protocol-contracts/package.json b/yarn-project/protocol-contracts/package.json index d0d254c2dee..d05a83250fd 100644 --- a/yarn-project/protocol-contracts/package.json +++ b/yarn-project/protocol-contracts/package.json @@ -45,6 +45,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/prover-client/package.json b/yarn-project/prover-client/package.json index 989fd4ff340..132403cbb7f 100644 --- a/yarn-project/prover-client/package.json +++ b/yarn-project/prover-client/package.json @@ -39,6 +39,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/pxe/package.json b/yarn-project/pxe/package.json index 03c104943be..a7c36b728b7 100644 --- a/yarn-project/pxe/package.json +++ b/yarn-project/pxe/package.json @@ -37,6 +37,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/scripts/package.json b/yarn-project/scripts/package.json index 94e2988785e..e7a327778e6 100644 --- a/yarn-project/scripts/package.json +++ b/yarn-project/scripts/package.json @@ -64,6 +64,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "engines": { diff --git a/yarn-project/sequencer-client/package.json b/yarn-project/sequencer-client/package.json index 47336f4a507..a8479023370 100644 --- a/yarn-project/sequencer-client/package.json +++ b/yarn-project/sequencer-client/package.json @@ -85,6 +85,14 @@ "^(\\.{1,2}/.*)\\.[cm]?js$": "$1" }, "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", - "rootDir": "./src" + "rootDir": "./src", + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] + ] } } diff --git a/yarn-project/simulator/package.json b/yarn-project/simulator/package.json index 1c13ca0a631..b7fd60c5c29 100644 --- a/yarn-project/simulator/package.json +++ b/yarn-project/simulator/package.json @@ -34,6 +34,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/types/package.json b/yarn-project/types/package.json index 9832f31fb76..4abfe1f9a65 100644 --- a/yarn-project/types/package.json +++ b/yarn-project/types/package.json @@ -39,6 +39,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": { diff --git a/yarn-project/world-state/package.json b/yarn-project/world-state/package.json index 2cae20bf522..5e3dd632a20 100644 --- a/yarn-project/world-state/package.json +++ b/yarn-project/world-state/package.json @@ -34,6 +34,14 @@ }, "extensionsToTreatAsEsm": [ ".ts" + ], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] ] }, "dependencies": {