Skip to content

Review finding: the Qt shutdown test no longer bounds total teardown time #338

Closed

Description

@kiwidream

Summary

The Qt shutdown test no longer bounds total GUI teardown time.

Severity: low. Found in the 2026-11-04 review of the v1.0.1 change set (all 1.x.x merges since v1.0.0 plus the open PRs that target it), against 1.x.x 21fee6ee8e; area: #164.

Observed

Confidence: confirmed from code.

  • Location: src/qt/test/apptests.cpp:144-160,274 (from 1048a67; the same fix is described in ci: validate maintained source in scheduled heavy workflows #165's thread).
  • Scenario: The old QVERIFY2(m_shutdown_elapsed_ms < 5000, ...) became a watchdog that only checks that the send worker observed cancellation within 5 s. Teardown time after cancellation is now logged but not asserted. A regression that makes wallet-GUI shutdown take, say, 30 s after the worker joins would pass. Only an outright hang is caught, by the ctest timeout.
  • Evidence: diff review only; not run.

Impact

Client stability (GUI shutdown responsiveness). It is test-only, but it weakens one of the few automated shutdown-latency checks, and it shipped inside a fuzz PR without its own issue.

Suggested fix

Keep the cancellation watchdog and add a looser total-teardown bound (for example 30 s), or record the reason the bound was dropped in a GUI issue.

Activity

  1. added
    bug
    on Nov 4, 2026
  2. kiwidream commented on Nov 6, 2026

    @kiwidream
    MemberAuthor

    Fixed on 1.x.x by #344 (merged as b5486bf). AppTests keeps the five-second cancellation watchdog and adds a 30-second bound on synchronous GUI teardown. main gets the fix when 1.x.x is integrated.

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