Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/sri-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 90
env:
BITCOIN_CORE_VERSION: 31.0rc4
BITCOIN_CORE_PLATFORM: x86_64-linux-gnu
BITCOIN_CORE_REPO: https://github.com/Sjors/bitcoin.git
BITCOIN_CORE_REF: 2025/11/ipc-memusage
RUSTC_WRAPPER: sccache
SCCACHE_GHA_ENABLED: 'true'
SCENARIO_ROOT: ${{ github.workspace }}/sri-integration-test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ target/
# Agents
AGENTS.md
.claude
plots
16 changes: 16 additions & 0 deletions ci/test/04_run_stratum_v2_scenario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ show_logs()
)
}

has_memory_load_log()
{
local log_file
for log_file in "${LOG_DIR}/sv2-tp.log" "${DATADIR}/regtest/sv2-debug.log"; do
if [[ -f "${log_file}" ]] && grep -Eq "Template memory footprint [0-9.]+ MiB" "${log_file}"; then
return 0
fi
done
return 1
}

cleanup()
{
set +e
Expand Down Expand Up @@ -306,6 +317,11 @@ run_phase()

grep -q "Connected to bitcoin-node via IPC" "${LOG_DIR}/sv2-tp.log"

if ! has_memory_load_log; then
echo "SRI integration test did not observe a getMemoryLoad() memory footprint log entry" >&2
exit 1
fi

echo "SRI integration test completed successfully at regtest height ${count}"
}

Expand Down
1 change: 1 addition & 0 deletions ci/test/stratum_v2_sv2-tp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ ipcconnect=unix
debug=sv2
loglevel=sv2:trace
printtoconsole=1
memoryinterval=1
Loading
Loading