From 9dc5c32354b05c45c22ec92eb4cc4fe72f795882 Mon Sep 17 00:00:00 2001 From: Petar Radovic Date: Thu, 9 Apr 2026 19:43:33 +0200 Subject: [PATCH] clear debug stuff --- .github/workflows/ci.yml | 40 -------------------- bedrock/scripts/run_logos_blockchain_node.sh | 7 ---- 2 files changed, 47 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fb307ce..bbfa53b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -182,52 +182,12 @@ jobs: - name: Install nextest run: cargo install --locked cargo-nextest - - name: Start container log capture - run: | - mkdir -p /tmp/container-logs - ( - seen="" - while true; do - for c in $(docker ps -q 2>/dev/null); do - case " $seen " in - *" $c "*) ;; - *) - name=$(docker inspect -f '{{.Name}}' "$c" 2>/dev/null | sed 's|^/||') - docker logs -f "$c" >"/tmp/container-logs/${name}.log" 2>&1 & - seen="$seen $c" - ;; - esac - done - sleep 1 - done - ) & - echo $! > /tmp/log-watcher.pid - - name: Run tests env: RISC0_DEV_MODE: "1" RUST_LOG: "info" run: cargo nextest run -p integration_tests indexer -- --skip tps_test - - name: Dump captured container logs on failure - if: failure() - run: | - kill "$(cat /tmp/log-watcher.pid)" 2>/dev/null || true - # Filter out noisy gossipsub/overwatch lines that bloat the log without helping debug. - NOISE='gossipsub|libp2p_gossipsub|overwatch::overwatch::(handle|runner)|services::state::handle' - for f in /tmp/container-logs/*.log; do - [ -e "$f" ] || continue - echo "=== $f (lines: $(wc -l < $f)) ===" - echo "--- proposed-block events with removals (denoised) ---" - grep -v -E "$NOISE" "$f" \ - | grep -B 200 -A 5 -E '\([1-9][0-9]* removed\)' \ - | tail -3000 || true - echo "--- mempool/tx/inscribe activity (denoised) ---" - grep -v -E "$NOISE" "$f" \ - | grep -i -E 'mempool|inscrib|verif|reject|invalid|gas|validate|removed' \ - | tail -1000 || true - done - valid-proof-test: runs-on: ubuntu-latest timeout-minutes: 60 diff --git a/bedrock/scripts/run_logos_blockchain_node.sh b/bedrock/scripts/run_logos_blockchain_node.sh index 94486ad6..1d326f22 100755 --- a/bedrock/scripts/run_logos_blockchain_node.sh +++ b/bedrock/scripts/run_logos_blockchain_node.sh @@ -26,11 +26,4 @@ sed -i '/slot_activation_coeff:/,+4 s/denominator: [0-9]\+/denominator: 2/' /dep # to the indexer much sooner. sed -i 's/security_param: [0-9]\+/security_param: 10/' /deployment-settings.yaml -# Verify the patches took effect (printed to container stdout for debugging). -echo "=== slot_activation_coeff after sed ===" -sed -n '/slot_activation_coeff:/,+4 p' /deployment-settings.yaml -echo "=== security_param after sed ===" -grep 'security_param' /deployment-settings.yaml -echo "=======================================" - exec /usr/bin/logos-blockchain-node /config.yaml --deployment /deployment-settings.yaml