mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
Merge bitcoin/bitcoin#31701: test: Bump sync_mempools timeout in p2p_1p1c_network.py
fa80a7dac4
test: Bump sync_mempools timeout in p2p_1p1c_network.py (MarcoFalke)1111b0ac19
ci: Add missing --combinedlogslen to test-each-commit task (MarcoFalke) Pull request description: This should address the two issues that happened in https://github.com/bitcoin/bitcoin/actions/runs/12885576442/job/35924329657?pr=25832#step:6:7601: * The combined log isn't printed on a test failure. * The timeout is too strict for the GHA virtual machines. For reference, the output was: ``` ... 149/315 - rpc_blockchain.py --v2transport passed, Duration: 10 s 150/315 - p2p_addrfetch.py passed, Duration: 1 s 151/315 - p2p_1p1c_network.py failed, Duration: 31 s stdout: 2025-01-21T12:05:49.465000Z TestFramework (INFO): PRNG seed is: 6581340712385622842 2025-01-21T12:05:49.466000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20250121_120233/p2p_1p1c_network_207 2025-01-21T12:05:52.408000Z TestFramework (INFO): Fill mempools with large transactions to raise mempool minimum feerates 2025-01-21T12:05:52.408000Z TestFramework (INFO): Fill the mempool until eviction is triggered and the mempoolminfee rises 2025-01-21T12:05:59.692000Z TestFramework (INFO): Pre-send some transactions to nodes 2025-01-21T12:06:00.203000Z TestFramework (INFO): Submit full packages to node0 2025-01-21T12:06:00.220000Z TestFramework (INFO): Wait for mempools to sync 2025-01-21T12:06:20.384000Z TestFramework (ERROR): Assertion failed Traceback (most recent call last): File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 135, in main self.run_test() File "/home/runner/work/bitcoin/bitcoin/build/test/functional/p2p_1p1c_network.py", line 153, in run_test self.sync_mempools(timeout=20) File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 803, in sync_mempools raise AssertionError("Mempool sync timed out after {}s:{}".format( AssertionError: Mempool sync timed out after 20s: ... ACKs for top commit: l0rinc: utACKfa80a7dac4
glozow: ACKfa80a7dac4
Tree-SHA512: b326b7906b184fb47abc50d0d7ec91a6c90d324997f2abc40f156f588090e8d89bd8486bb8950cac604e77b1b336142a47b53ad463b2670d81222814eeb313d4
This commit is contained in:
commit
a9edec9419
2 changed files with 3 additions and 3 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2023 The Bitcoin Core developers
|
||||
# Copyright (c) 2023-present The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
|
@ -72,7 +72,7 @@ jobs:
|
|||
run: |
|
||||
# Run tests on commits after the last merge commit and before the PR head commit
|
||||
# Use clang++, because it is a bit faster and uses less memory than g++
|
||||
git rebase --exec "echo Running test-one-commit on \$( git log -1 ) && CC=clang CXX=clang++ cmake -B build -DWERROR=ON -DWITH_ZMQ=ON -DBUILD_GUI=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWITH_BDB=ON -DWITH_USDT=ON -DCMAKE_CXX_FLAGS='-Wno-error=unused-member-function' && cmake --build build -j $(nproc) && ctest --output-on-failure --stop-on-failure --test-dir build -j $(nproc) && ./build/test/functional/test_runner.py -j $(( $(nproc) * 2 ))" ${{ env.TEST_BASE }}
|
||||
git rebase --exec "echo Running test-one-commit on \$( git log -1 ) && CC=clang CXX=clang++ cmake -B build -DWERROR=ON -DWITH_ZMQ=ON -DBUILD_GUI=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWITH_BDB=ON -DWITH_USDT=ON -DCMAKE_CXX_FLAGS='-Wno-error=unused-member-function' && cmake --build build -j $(nproc) && ctest --output-on-failure --stop-on-failure --test-dir build -j $(nproc) && ./build/test/functional/test_runner.py -j $(( $(nproc) * 2 )) --combinedlogslen=99999999" ${{ env.TEST_BASE }}
|
||||
|
||||
macos-native-arm64:
|
||||
name: ${{ matrix.job-name }}
|
||||
|
|
|
@ -150,7 +150,7 @@ class PackageRelayTest(BitcoinTestFramework):
|
|||
assert_equal(submitpackage_result["package_msg"], "success")
|
||||
|
||||
self.log.info("Wait for mempools to sync")
|
||||
self.sync_mempools(timeout=20)
|
||||
self.sync_mempools()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Reference in a new issue