Skip to content

Commit b9abebe

Browse files
committed
ci: abort if bitcoind fails to start
See e.g. https://github.com/bitcoin-core/HWI/actions/runs/16440824447/job/46463441252 ``` work/bitcoin/build/bin/bitcoind: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by work/bitcoin/build/bin/bitcoind) ```` Job lingered for 45 minutes.
1 parent e64d38b commit b9abebe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_device.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ def get_free_port():
9696
cookie_path = os.path.join(self.datadir, "regtest", ".cookie")
9797
while not os.path.exists(cookie_path):
9898
time.sleep(0.5)
99+
# Prevent CI from lingering until timeout:
100+
if self.bitcoind_proc.poll() is not None:
101+
raise f"bitcoind failed with exit code #{self.bitcoind_proc.poll()}"
102+
99103
# Read .cookie file to get user and pass
100104
with open(cookie_path) as f:
101105
self.userpass = f.readline().lstrip().rstrip()

0 commit comments

Comments
 (0)