Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: stop bitcoind before exit #202

Merged
merged 9 commits into from
Dec 22, 2023

Conversation

epiccurious
Copy link
Owner

No description provided.

@epiccurious epiccurious self-assigned this Dec 22, 2023
@epiccurious epiccurious linked an issue Dec 22, 2023 that may be closed by this pull request
nodebuilder Outdated
@@ -360,6 +360,9 @@ while [ "${ibd_status}" = true ]; do

if [ "${CI:-false}" = true ] && [ "${size_on_disk_in_mib}" -ge 1 ]; then
echo "Exiting the script for CI runners."
bitcoin_pid="$(cat "${bitcoin_core_data_dir}"/bitcoind.pid)"
bitcoin-cli stop
while ps -p "${bitcoin_pid}"; do sleep 0.1; done &> /dev/null
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to test this

@epiccurious epiccurious merged commit c8644e6 into master Dec 22, 2023
5 checks passed
@epiccurious epiccurious deleted the 201-terminate-orphan-ci-process-bitcoind branch February 1, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terminate orphan CI process bitcoind
1 participant