Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Huh! Failed at the 113th commit: https://github.com/bitcoin/bitcoin/actions/runs/23785411040/job/69307375322?pr=34963 in the opportunistic test. So the issue was only delayed (not removed) by reusing the sockets that are under time-wait state. |
27c73eb to
db46a60
Compare
|
Adding a 1s delay between commits and setting tcp_tw_reuse passes the ancestor commits job: https://github.com/bitcoin/bitcoin/actions/runs/23841150308/job/69496837047?pr=34963 |
db46a60 to
d5576b4
Compare
d5576b4 to
39d1f68
Compare
af00538 to
3980e41
Compare
3980e41 to
1c9ce37
Compare
1c9ce37 to
e2ac6bc
Compare
|
It passed just by removing failfast without adding any delay: https://github.com/bitcoin/bitcoin/actions/runs/23947029708/job/69845405978?pr=34963 |
|
The test ancestor commits job passed again: https://github.com/bitcoin/bitcoin/actions/runs/23957112786/job/69878067205?pr=34963 But the windows cross built failed with a timeout while shutting down node in wallet_tx_doublespend.py: https://github.com/bitcoin/bitcoin/actions/runs/23957112786/job/69878469247?pr=34963 |
|
Hmm, the ancestors job failed at 110th commit: https://github.com/bitcoin/bitcoin/actions/runs/23971625771/job/69922000528?pr=34963 |
ce5f8de to
083a715
Compare
|
So the latest patch that kills all dangling subprocesses in this CI job has passed twice for 2-3 commits. I will try once with ~125 commits but even if it doesn't pass, I believe it's still a good addition to kill any dangling processes in the CI. |
083a715 to
767f77b
Compare
|
I guess this can be done for all CI jobs as well, later? |
|
The ancestors job failed on the 10th commit: https://github.com/bitcoin/bitcoin/actions/runs/23976785999/job/69935013495?pr=34963 |
This patch kills any and all dangling descendant processes started by the test runner in the test ancestor commits CI job only because this job uses the --failfast option to run tests that might leave dangling subprocesses that were not killed intentionally in the CI because the original implementation killed the test runner as well, which was not desirable.
767f77b to
eba1842
Compare
| 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. | ||
| CI_FAILFAST_TEST_LEAVE_DANGLING: 0 |
There was a problem hiding this comment.
i don't understand this change. Why is this set to 0?
It should either be left as-is, or set to 1, see also:
.github/workflows/ci.yml: CI_FAILFAST_TEST_LEAVE_DANGLING: 1 # GHA does not care about dangling processes and setting this variable avoids killing the CI script itself on error
There was a problem hiding this comment.
I set it to 0 because otherwise 1 would be inherited in this job, which I didn't want because I want to kill all dangling sub-processes except the CI script itself.
setting this variable avoids killing the CI script itself on error
The implementation in this PR should not kill the CI script unlike the older implementation.
There was a problem hiding this comment.
The idea for this PR came from this comment: #34726 (comment)
2026-03-18T02:28:12.5942751Z WARNING! There is already a bitcoind process running on this system. Tests may fail unexpectedly due to resource contention!
I don't know why this happened but it seemed reasonable to kill any dangling process.
There was a problem hiding this comment.
Sure, I understand what the code change does, but I don't understand why the change is needed and what this will even change. IIUC it will only stylistically change the CI log on GHA, but I am not even sure about that.
I don't think the code should be changed, when there is no reason, nor a description of the observed behavior change.
There was a problem hiding this comment.
I don't know why this happened but it seemed reasonable to kill any dangling process.
I disagree, because I fail to see how killing dangling processes after a failure will affect anything that happens before a passing run. There is no connection, and if there was one, it is the burden of the pull request author to explain it.
There was a problem hiding this comment.
Fair point.
I will close this PR in this case.
Relates to #34731
This patch kills any and all dangling descendant processes started
by the test runner in the test ancestor commits CI job only because
this job uses the --failfast option to run tests that might leave
dangling subprocesses that were not killed intentionally
in the CI because the original implementation killed the test
runner as well, which was not desirable.