Skip to content

test: the 30-second waits in WalletActivityTests::createWalletProgress time out on slow CI jobs #428

Closed

Description

@kiwidream

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 every WaitUntil in 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-escape and before-created-signal-escape;
    • line 309, waiting for finished after the latch is released: row before-database-escape (twice).
  • Five failed Full Validation jobs between 2026-11-05 and 2026-11-11:
    • job 130845314117, "CentOS, depends, gui", push run at 993521799e;
    • job 127402269608, "ASan + LSan + UBSan + integer", PR run 42069902738;
    • job 128609661924, "no IPC, i686, DEBUG", PR run 42418629231 (attempt 2);
    • job 130039473035, "CentOS, depends, gui", PR run 42875970950;
    • job 130072861207, "no IPC, i686, DEBUG", PR run 42885435356.
  • 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:

  • AppTests teardown makes 30 fdatasync calls on the GUI thread (counted with strace): 15 rewrites of the QSettings file and 15 writes of its lock file.
  • A local Release build at a7a70660ad takes 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 between Using wallet … and Loading 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.

Related: #404, #338, #344.

Found while triaging failed CI jobs on 1.x.x (2026-11-13). Code references are to 1.x.x at a7a70660ad.

Activity

  1. added
    bug
    on Nov 13, 2026
  2. added a commit that references this issue on Nov 16, 2026
    9b8705d
  3. kiwidream commented on Nov 16, 2026

    @kiwidream
    MemberAuthor

    Fixed on 1.x.x by #434, merged as 9b8705d. WAIT_TIMEOUT_MS is now five minutes. Closing by hand because 1.x.x is not the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions