mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-02 17:56:16 +00:00
Merge bitcoin/bitcoin#34687: ci: Set TEST_RUNNER_PORT_MIN in test-each after cirrus runner switch
fa18be2f2ba19d5d35cb8a04fd4e1a7c4fc441ce test: Fix typo (MarcoFalke) fac932698f6539e9ac4a13df51194bcb60d5d933 ci: Set TEST_RUNNER_PORT_MIN in test-each after cirrus runner switch (MarcoFalke) Pull request description: This is needed after the recent switch to cirrus runners in the task in commit c8c9c1e61759f689615a304254fed33cda7f895e. Otherwise, the CI will fail: ``` node1 stderr Error: Unable to bind to 127.0.0.1:12321 on this computer. Bitcoin Core is probably already running. ``` (https://github.com/bitcoin/bitcoin/actions/runs/22398358349/job/64837827234?pr=31723#step:9:2605) Also, include a random second commit, so that the CI task is run in this pull. ACKs for top commit: l0rinc: ACK fa18be2f2ba19d5d35cb8a04fd4e1a7c4fc441ce willcl-ark: ACK fa18be2f2ba19d5d35cb8a04fd4e1a7c4fc441ce Tree-SHA512: 6b63f645bf62d3e951ca155cddf3dc562b7ce675ccae4f9179e2202679685b5c147844eb350bd219b173fe2bb976376d0caa073d3e827a48c13aa015f4745b2c
This commit is contained in:
commit
3a8b4e89f6
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -59,6 +59,8 @@ jobs:
|
|||||||
name: 'test ancestor commits'
|
name: 'test ancestor commits'
|
||||||
needs: runners
|
needs: runners
|
||||||
runs-on: ${{ needs.runners.outputs.provider == 'cirrus' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md' || 'ubuntu-24.04' }}
|
runs-on: ${{ needs.runners.outputs.provider == 'cirrus' && 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md' || 'ubuntu-24.04' }}
|
||||||
|
env:
|
||||||
|
TEST_RUNNER_PORT_MIN: "14000" # Use a larger port, to avoid colliding with CIRRUS_CACHE_HOST port 12321.
|
||||||
if: github.event_name == 'pull_request' && github.event.pull_request.commits != 1
|
if: github.event_name == 'pull_request' && github.event.pull_request.commits != 1
|
||||||
timeout-minutes: 360 # Use maximum time, see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes.
|
timeout-minutes: 360 # Use maximum time, see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes.
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -426,7 +426,7 @@ BOOST_AUTO_TEST_CASE(stop_active_wait_drains_queue)
|
|||||||
}
|
}
|
||||||
BOOST_CHECK_EQUAL(threadPool.WorkQueueSize(), num_tasks);
|
BOOST_CHECK_EQUAL(threadPool.WorkQueueSize(), num_tasks);
|
||||||
|
|
||||||
// Delay release so Stop() drain all tasks from the calling thread
|
// Delay release so Stop() drains all tasks from the calling thread
|
||||||
std::thread unblocker([&blocker, &threadPool]() {
|
std::thread unblocker([&blocker, &threadPool]() {
|
||||||
while (threadPool.WorkQueueSize() > 0) {
|
while (threadPool.WorkQueueSize() > 0) {
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user