From c16f55f9412a42f8612ca98d25d7f8b67a263651 Mon Sep 17 00:00:00 2001 From: femi Date: Thu, 19 Mar 2026 00:24:00 +0000 Subject: [PATCH] feat(tracing): conway_fast TraceDispatcher, normalize configs, logfiles ignores --- .../conway_fast/template-config.json | 192 ++++++++++++++++++ cardano_node_tests/utils/logfiles.py | 4 + 2 files changed, 196 insertions(+) create mode 100644 cardano_node_tests/cluster_scripts/conway_fast/template-config.json diff --git a/cardano_node_tests/cluster_scripts/conway_fast/template-config.json b/cardano_node_tests/cluster_scripts/conway_fast/template-config.json new file mode 100644 index 000000000..daa4febb4 --- /dev/null +++ b/cardano_node_tests/cluster_scripts/conway_fast/template-config.json @@ -0,0 +1,192 @@ +{ + "ApplicationName": "cardano-sl", + "ApplicationVersion": 1, + "ByronGenesisFile": "byron/genesis.json", + "LastKnownBlockVersion-Alt": 0, + "LastKnownBlockVersion-Major": 9, + "LastKnownBlockVersion-Minor": 0, + "PBftSignatureThreshold": 1, + "Protocol": "Cardano", + "RequiresNetworkMagic": "RequiresMagic", + "ShelleyGenesisFile": "shelley/genesis.json", + "AlonzoGenesisFile": "shelley/genesis.alonzo.json", + "ConwayGenesisFile": "shelley/genesis.conway.json", + "TraceOptions": { + "Resources": { "severity": "Info" } + }, + "TraceOptionResourceFrequency": 5000, + "UseTraceDispatcher": true, + "TraceBlockFetchClient": false, + "TraceBlockFetchDecisions": false, + "TraceBlockFetchProtocol": false, + "TraceBlockFetchProtocolSerialised": false, + "TraceBlockFetchServer": false, + "TraceChainDb": true, + "TraceChainSyncBlockServer": false, + "TraceChainSyncClient": false, + "TraceChainSyncHeaderServer": false, + "TraceChainSyncProtocol": false, + "TraceDNSResolver": true, + "TraceDNSSubscription": true, + "TraceErrorPolicy": true, + "TraceForge": true, + "TraceHandshake": true, + "TraceIpSubscription": true, + "TraceLocalChainSyncProtocol": false, + "TraceLocalErrorPolicy": true, + "TraceLocalHandshake": false, + "TraceLocalTxSubmissionProtocol": false, + "TraceLocalTxSubmissionServer": false, + "TraceMempool": true, + "TraceMux": true, + "TraceConnectionManager": true, + "TraceConnectionManagerTransitions": true, + "TracePeerSelection": true, + "TracePeerSelectionActions": true, + "TraceDebugPeerSelection": true, + "TraceTxInbound": false, + "TraceTxOutbound": false, + "TraceTxSubmissionProtocol": false, + "TraceInboundGovernor": true, + "TraceServer": true, + "TraceInboundGovernorCounters": true, + "TraceInboundGovernorTransitions": true, + "DebugPeerSelectionInitiator": true, + "DebugPeerSelectionInitiatorResponder": true, + "TracingVerbosity": "NormalVerbosity", + "TurnOnLogMetrics": true, + "TurnOnLogging": true, + "defaultBackends": [ + "KatipBK" + ], + "defaultScribes": [ + [ + "StdoutSK", + "stdout" + ] + ], + "hasEKG": %%EKG_PORT%%, + "hasPrometheus": [ + "127.0.0.1", + %%PROMETHEUS_PORT%% + ], + "minSeverity": "Info", + "options": { + "mapSeverity": { + "cardano.node.ConnectionManager": "Debug", + "cardano.node.ConnectionManagerTransition": "Debug", + "cardano.node.PeerSelection": "Info", + "cardano.node.DebugPeerSelection": "Debug", + "cardano.node.PeerSelectionActions": "Debug", + "cardano.node.Handshake": "Debug", + "cardano.node.Mux": "Info", + "cardano.node.ChainSyncProtocol": "Error", + "cardano.node.InboundGovernor": "Debug", + "cardano.node.resources": "Notice", + "cardano.node.InboundGovernor": "Debug", + "cardano.node.ConnectionManagerTransitions": "Debug" + }, + "mapBackends": { + "cardano.node-metrics": [ + "EKGViewBK" + ], + "cardano.node.BlockFetchDecision.peers": [ + "EKGViewBK" + ], + "cardano.node.ChainDB.metrics": [ + "EKGViewBK" + ], + "cardano.node.Forge.metrics": [ + "EKGViewBK" + ], + "cardano.node.metrics": [ + "EKGViewBK" + ], + "cardano.node.resources": [ + "EKGViewBK" + ] + }, + "mapSubtrace": { + "#ekgview": { + "contents": [ + [ + { + "contents": "cardano.epoch-validation.benchmark", + "tag": "Contains" + }, + [ + { + "contents": ".monoclock.basic.", + "tag": "Contains" + } + ] + ], + [ + { + "contents": "cardano.epoch-validation.benchmark", + "tag": "Contains" + }, + [ + { + "contents": "diff.RTS.cpuNs.timed.", + "tag": "Contains" + } + ] + ], + [ + { + "contents": "#ekgview.#aggregation.cardano.epoch-validation.benchmark", + "tag": "StartsWith" + }, + [ + { + "contents": "diff.RTS.gcNum.timed.", + "tag": "Contains" + } + ] + ] + ], + "subtrace": "FilterTrace" + }, + "benchmark": { + "contents": [ + "GhcRtsStats", + "MonotonicClock" + ], + "subtrace": "ObservableTrace" + }, + "cardano.epoch-validation.utxo-stats": { + "subtrace": "NoTrace" + }, + "cardano.node-metrics": { + "subtrace": "Neutral" + }, + "cardano.node.metrics": { + "subtrace": "Neutral" + } + } + }, + "rotation": { + "rpKeepFilesNum": 10, + "rpLogLimitBytes": 5000000, + "rpMaxAgeHours": 24 + }, + "setupBackends": [ + "KatipBK" + ], + "setupScribes": [ + { + "scFormat": "ScText", + "scKind": "StdoutSK", + "scName": "stdout", + "scRotation": null + } + ], + "TestShelleyHardForkAtEpoch": 0, + "TestAllegraHardForkAtEpoch": 0, + "TestMaryHardForkAtEpoch": 0, + "TestAlonzoHardForkAtEpoch": 0, + "TestBabbageHardForkAtEpoch": 0, + "TestConwayHardForkAtEpoch": 0, + "ExperimentalProtocolsEnabled": true +} diff --git a/cardano_node_tests/utils/logfiles.py b/cardano_node_tests/utils/logfiles.py index ba64682fb..900b15913 100644 --- a/cardano_node_tests/utils/logfiles.py +++ b/cardano_node_tests/utils/logfiles.py @@ -27,8 +27,12 @@ ERRORS_IGNORE_FILE_NAME = ".errors_to_ignore" ERRORS_IGNORED = [ + # Legacy iohk-monitoring format: "cardano.node.ChainDB:Info: ..." r"cardano\.node\.[^:]+:Debug:", r"cardano\.node\.[^:]+:Info:", + # New TraceDispatcher format: "[host:Namespace](Info,11) ..." + r"\]\(Debug,\d+\)", + r"\]\(Info,\d+\)", "db-sync-node:Info:", r"TxSubmitApi\.[^\]]*\]\(Info,", "cardano-tx-submit:Info:",