Fixes #32493
For some reason terminate or kill do not work inside the CI system under valgrind.
So disable the test for now, until a solution is found.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32507.
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
What if instead of excluding the entire test file, we only exclude the specific failing test case?
0diff --git a/test/functional/wallet_reorgsrestore.py b/test/functional/wallet_reorgsrestore.py
1--- a/test/functional/wallet_reorgsrestore.py (revision 8d5a11f34157934d9aecf8d5535ec3c17b13fcf3)
2+++ b/test/functional/wallet_reorgsrestore.py (date 1747319065527)
3@@ -14,6 +14,7 @@
4 """
5
6 from decimal import Decimal
7+import os
8 import shutil
9
10 from test_framework.test_framework import BitcoinTestFramework
11@@ -90,6 +91,12 @@
12 assert_equal(wallet0.gettransaction(descendant_tx_id)['details'][0]['abandoned'], True)
13
14 def test_reorg_handling_during_unclean_shutdown(self):
15+ # FIXME: skip test during CI run for now.
16+ if os.environ.get('TESTS_CI_RUN'):
17+ self.log.info("Skipping wallet reorg handling during shutdown test")
18+ return
19+
20+
21 self.log.info("Test that wallet doesn't crash due to a duplicate block disconnection event after an unclean shutdown")
22 node = self.nodes[0]
23 # Receive coinbase reward on a new wallet
24Index: test/functional/test_runner.py
25IDEA additional info:
26Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
27<+>UTF-8
28===================================================================
29diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py
30--- a/test/functional/test_runner.py (revision 8d5a11f34157934d9aecf8d5535ec3c17b13fcf3)
31+++ b/test/functional/test_runner.py (date 1747318824956)
32@@ -401,6 +401,7 @@
33
34 args, unknown_args = parser.parse_known_args()
35 fail_on_warn = args.ci
36+ os.environ['TESTS_CI_RUN'] = args.ci
37 if not args.ansi:
38 global DEFAULT, BOLD, GREEN, RED
39 DEFAULT = ("", "")
What if instead of excluding the entire test file, we only exclude the specific failing test case?
Your diff would exclude the test case for all CI runs (even CI runs not using valgrind). I think longer term it would be better to just fix it.
What if instead of excluding the entire test file, we only exclude the specific failing test case?
Your diff would exclude the test case for all CI runs (even CI runs not using valgrind).
That would be easy to fix by just providing another environment variable for Valgrind runs. But np, it was just an idea to keep the test running while the issue is being investigated.
I think longer term it would be better to just fix it.
Hard to disagree.