Repository navigation
Description
Summary
WalletActivityTests::createWalletProgress in test_qbit-qt fails intermittently when one of its 30-second WaitUntil calls runs out. It fails on changes that do not touch Qt or the wallet, in the same jobs that hit #404.
Observed
src/qt/test/walletactivitytests.cpp:41:WAIT_TIMEOUT_MS{30'000}bounds everyWaitUntilin the file. Two of them fail:- line 277, waiting for the progress dialog and the creation-stage latch: rows
during-encryption-close,during-encryption-escape(twice),before-load-notification-escapeandbefore-created-signal-escape; - line 309, waiting for
finishedafter the latch is released: rowbefore-database-escape(twice).
- line 277, waiting for the progress dialog and the creation-stage latch: rows
- Five failed Full Validation jobs between 2026-11-05 and 2026-11-11:
- job
130845314117, "CentOS, depends, gui", push run at993521799e; - job
127402269608, "ASan + LSan + UBSan + integer", PR run42069902738; - job
128609661924, "no IPC, i686, DEBUG", PR run42418629231(attempt 2); - job
130039473035, "CentOS, depends, gui", PR run42875970950; - job
130072861207, "no IPC, i686, DEBUG", PR run42885435356.
- job
- Each row creates an encrypted descriptor wallet, which is a series of synchronous SQLite commits.
Likely cause: slow fdatasync on the Linux runners
This is the cause of #404, and by inference of this failure:
AppTeststeardown makes 30fdatasynccalls on the GUI thread (counted withstrace): 15 rewrites of theQSettingsfile and 15 writes of its lock file.- A local Release build at
a7a70660adtakes 169 ms for that teardown. With 200 ms injected into every sync (strace -f -o /dev/null -e trace=fsync,fdatasync -e inject=fsync,fdatasync:delay_enter=200000 test_qbit-qt) it takes 6143 ms. - The failed CI jobs report 30 to 69 s for the same teardown, which is 1 to 2.3 s per
fdatasync. That includes the CentOS job, which is not a sanitizer build. - In the ASan unit-test log of job
130034859213, 12.6 s pass betweenUsing wallet …andLoading wallet…for a new, empty SQLite wallet database.
I have not run createWalletProgress itself under injected sync delay.
Impact
The same as #404: a required job goes red without a product defect, and in the i686 DEBUG job the failure stops ctest before the functional suite runs.
Suggested fix
Raise WAIT_TIMEOUT_MS to a bound that only catches a hang (several minutes). The waits return as soon as their condition holds, so passing runs take no longer. Fix it together with #404, and confirm with the strace injection above that both tests pass at 1 to 2 s per sync.
Found while triaging failed CI jobs on 1.x.x (2026-11-13). Code references are to 1.x.x at a7a70660ad.
Activity
test: keep two Qt wallet test time bounds within slow CI disks (#434)
kiwidream commentedon Nov 16, 2026
Fixed on
1.x.xby #434, merged as 9b8705d.WAIT_TIMEOUT_MSis now five minutes. Closing by hand because1.x.xis not the default branch.