Repository navigation
test: keep two Qt wallet test time bounds within slow CI disks - #434
Merged
Merged
Conversation
AppTests::appTests() asserted that the Qt wallet shutdown teardown returns within 30 s, and WalletActivityTests::createWalletProgress waited at most 30 s for wallet creation to reach its lifecycle latch and to finish. Both fail on loaded CI runners, where one fdatasync takes 1 to 2.3 s, without any product defect. The teardown makes about 30 syncs on the GUI thread for settings writes, and the longest createWalletProgress wait covers about 50 syncs. With 1.5 s injected into every fsync/fdatasync via strace, the teardown took 45 s and eight createWalletProgress rows timed out at the 30 s waits. Raise the teardown bound to three minutes, about 2.6 times the slowest teardown seen in CI (69 s), so it still fires before the QtTest function watchdog and the ctest timeout. Correct its comments: it catches a teardown that returns late, not one that never returns, which the watchdogs catch. Raise WAIT_TIMEOUT_MS to five minutes; those waits return as soon as their condition holds. Add the missing QPointer null check to the progress dialog wait in ordinaryLoadAndShutdown. The five-second bounds that express the cancellation contract are unchanged. Fixes #404 Fixes #428 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 16, 2026
5 of 9 tasks
kiwidream
added a commit
that referenced
this pull request
Nov 17, 2026
…Policy Gate to main (#423, #372, #440) ## Summary This brings two changes that landed on `1.x.x` to `main`, unchanged, and one that is open against `1.x.x`: - **#423:** Full Validation and Core Checks skip their expensive jobs for a pull request whose tree already passed. - **#372:** the signed-commit and `signed-landing` ruleset templates, the `signed-landing` workflow, first-parent release checks, and secret scans that cover merges. - **#440 (open against `1.x.x`, rebased onto it on 17 November):** the Key Policy Gate asks signed approvals only for its own three files, and the mainnet posture test pins the Core Checks gate as whole blocks. Its two commits are here as they are on #440's branch. GitHub runs `signed-landing` (`pull_request_target`) only from `main`'s copy of the workflow. Until `main` holds it, the check reports nothing on any qbit pull request, and `required-checks.json` cannot be applied to `1.x.x`, `1.0.0` and `0.1.x`. This is the step #372 named: bringing the workflow to `main` before the next release. #423 comes first because #372's posture test and documents rely on it. After this, everything under `.github/`, `ci/`, `contrib/` and `doc/` equals `1.x.x` with #440 on top; before #440's two commits, each of the 33 files #423 and #372 touch equals `1.x.x`'s copy. Nothing is left out, and nothing else from `1.x.x` comes over: the three other changes `main` lacks (#431, #432, #434: two test fixes and one in `src/script/sign.cpp`) stay off it. Every pick applied without a conflict. Merging changes no ruleset: an admin applies the templates afterwards, by `doc/development/public-branch-and-rulesets.md`. ## Testing - [ ] Built locally. - [x] Ran focused unit or functional tests for the changed area. - [x] Ran lint or formatting checks relevant to this change. - [ ] Not run. Reason: - Every Python test file under `ci/` (`ci/checks`, `ci/release`, `ci/scanners`), each run as `python3 <file>`: 20 files and 602 tests pass on `main` before; 21 files and 774 tests pass with #423 and #372; with #440's commits on top, 21 files pass again (781 tests). No test that passed before fails. - `.github/workflows/signed-landing.yml` is byte for byte the file the other Qbit-Org repositories run, apart from its two configuration lines (`AS_IS_HEADS: "sync-* subtree-*"`, `AS_IS_LINES: ""`). - The documentation, metadata and lint checks that could run without building the node pass. Not run: the subtree lint, which could not fetch its sources from the machine these checks ran on. One more actionlint finding of a class `main` already has (a YAML alias). - The node was not built and no functional test was run here: neither commit changes anything under `src/` or `test/`. CI runs them. ## Target Branch - [x] This PR targets `main` or a maintainer-requested release branch such as `0.1.x`. ## Risk / Review Notes - [x] Consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed. - [ ] No consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed. Notes: - **CI and release behaviour change on `main`**, as they did on `1.x.x` with #423 and #372: the same-tree skip in Full Validation and Core Checks; a release needs protected, first-parent trusted refs; staging refuses a tag on a pull request's head; the secret scans cover merges. - **The Key Policy Gate's own code changes** (#440): gate code becomes three files, and two of its checks run without approvals. See #440 for the review notes; it should land on `1.x.x` too, so the two branches do not drift. - **Key Policy Gate:** the check is red on this pull request, and that is expected. The gate refuses a change to workflows and files under `ci/` without approvals signed by three mainnet signers. No ruleset requires the gate yet, and the operator decided on 13 November to land the signed-landing workflow before one does, without collecting signatures. - **`signed-landing` starts reporting** on qbit pull requests once this lands. Nothing requires it until `required-checks.json` is applied. - **One sentence goes stale:** `doc/development/public-branch-and-rulesets.md` says the check reports nothing until `main` holds the workflow, "which is after the next release moves `main`". This pull request makes that happen earlier. The sentence is left as it is so that the file stays equal to `1.x.x`'s; it can be reworded on `1.x.x`. ## Docs / Process Impact Choose exactly one: - [x] I updated public docs because this PR changes user-visible behavior, integration guidance, release/process guidance, or expected validation. - [ ] No public docs update needed. Reason: The documents come over with the two changes: `CONTRIBUTING.md`, `doc/development/public-branch-and-rulesets.md`, `doc/development/ci-same-tree-skip.md`, `doc/development/developer-notes.md`, the release process documents and `doc/subtrees/libbitcoinpqc.md`. ## libbitcoinpqc Subtree Checklist (if `src/libbitcoinpqc` changed) Not applicable: `src/libbitcoinpqc` is not changed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Squashed commits: 1422396 ci: bring the same-tree CI skip and signed landing to main (#423, #372) 2bee83d ci: ask signatures only for the Key Policy Gate's own three files c130f87 test: pin the Core Checks gate's posture check as whole blocks Co-authored-by: Claude Opus 5.5 <[email protected]> Squashed-from: c130f87
kiwidream
added a commit
that referenced
this pull request
Nov 17, 2026
…Policy Gate to main (#423, #372, #440) (#441) ## Summary This brings two changes that landed on `1.x.x` to `main`, unchanged, and one that is open against `1.x.x`: - **#423:** Full Validation and Core Checks skip their expensive jobs for a pull request whose tree already passed. - **#372:** the signed-commit and `signed-landing` ruleset templates, the `signed-landing` workflow, first-parent release checks, and secret scans that cover merges. - **#440 (open against `1.x.x`, rebased onto it on 17 November):** the Key Policy Gate asks signed approvals only for its own three files, and the mainnet posture test pins the Core Checks gate as whole blocks. Its two commits are here as they are on #440's branch. GitHub runs `signed-landing` (`pull_request_target`) only from `main`'s copy of the workflow. Until `main` holds it, the check reports nothing on any qbit pull request, and `required-checks.json` cannot be applied to `1.x.x`, `1.0.0` and `0.1.x`. This is the step #372 named: bringing the workflow to `main` before the next release. #423 comes first because #372's posture test and documents rely on it. After this, everything under `.github/`, `ci/`, `contrib/` and `doc/` equals `1.x.x` with #440 on top; before #440's two commits, each of the 33 files #423 and #372 touch equals `1.x.x`'s copy. Nothing is left out, and nothing else from `1.x.x` comes over: the three other changes `main` lacks (#431, #432, #434: two test fixes and one in `src/script/sign.cpp`) stay off it. Every pick applied without a conflict. Merging changes no ruleset: an admin applies the templates afterwards, by `doc/development/public-branch-and-rulesets.md`. ## Testing - [ ] Built locally. - [x] Ran focused unit or functional tests for the changed area. - [x] Ran lint or formatting checks relevant to this change. - [ ] Not run. Reason: - Every Python test file under `ci/` (`ci/checks`, `ci/release`, `ci/scanners`), each run as `python3 <file>`: 20 files and 602 tests pass on `main` before; 21 files and 774 tests pass with #423 and #372; with #440's commits on top, 21 files pass again (781 tests). No test that passed before fails. - `.github/workflows/signed-landing.yml` is byte for byte the file the other Qbit-Org repositories run, apart from its two configuration lines (`AS_IS_HEADS: "sync-* subtree-*"`, `AS_IS_LINES: ""`). - The documentation, metadata and lint checks that could run without building the node pass. Not run: the subtree lint, which could not fetch its sources from the machine these checks ran on. One more actionlint finding of a class `main` already has (a YAML alias). - The node was not built and no functional test was run here: neither commit changes anything under `src/` or `test/`. CI runs them. ## Target Branch - [x] This PR targets `main` or a maintainer-requested release branch such as `0.1.x`. ## Risk / Review Notes - [x] Consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed. - [ ] No consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed. Notes: - **CI and release behaviour change on `main`**, as they did on `1.x.x` with #423 and #372: the same-tree skip in Full Validation and Core Checks; a release needs protected, first-parent trusted refs; staging refuses a tag on a pull request's head; the secret scans cover merges. - **The Key Policy Gate's own code changes** (#440): gate code becomes three files, and two of its checks run without approvals. See #440 for the review notes; it should land on `1.x.x` too, so the two branches do not drift. - **Key Policy Gate:** the check is red on this pull request, and that is expected. The gate refuses a change to workflows and files under `ci/` without approvals signed by three mainnet signers. No ruleset requires the gate yet, and the operator decided on 13 November to land the signed-landing workflow before one does, without collecting signatures. - **`signed-landing` starts reporting** on qbit pull requests once this lands. Nothing requires it until `required-checks.json` is applied. - **One sentence goes stale:** `doc/development/public-branch-and-rulesets.md` says the check reports nothing until `main` holds the workflow, "which is after the next release moves `main`". This pull request makes that happen earlier. The sentence is left as it is so that the file stays equal to `1.x.x`'s; it can be reworded on `1.x.x`. ## Docs / Process Impact Choose exactly one: - [x] I updated public docs because this PR changes user-visible behavior, integration guidance, release/process guidance, or expected validation. - [ ] No public docs update needed. Reason: The documents come over with the two changes: `CONTRIBUTING.md`, `doc/development/public-branch-and-rulesets.md`, `doc/development/ci-same-tree-skip.md`, `doc/development/developer-notes.md`, the release process documents and `doc/subtrees/libbitcoinpqc.md`. ## libbitcoinpqc Subtree Checklist (if `src/libbitcoinpqc` changed) Not applicable: `src/libbitcoinpqc` is not changed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Squashed commits: 1422396 ci: bring the same-tree CI skip and signed landing to main (#423, #372) 2bee83d ci: ask signatures only for the Key Policy Gate's own three files c130f87 test: pin the Core Checks gate's posture check as whole blocks Squashed-from: c130f87 Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two
test_qbit-qttests fail on loaded CI runners without a product defect:AppTests::appTests(): "Qt wallet shutdown teardown exceeded thirty seconds" (test: the 30-second teardown bound in AppTests fails on slow CI jobs #404), 20 failed jobs.WalletActivityTests::createWalletProgress: a 30-secondWaitUntilruns out (test: the 30-second waits in WalletActivityTests::createWalletProgress time out on slow CI jobs #428), 5 failed jobs.Fixes #404 and #428.
Cause
A single
fdatasynctakes 1 to 2.3 s on the Linux runners when they are busy.AppTeststeardown makes about 30 syncs on the GUI thread for settings writes. A local Release build takes 0.17 s for it; the failed CI jobs printed 32 to 69 s.createWalletProgressrow creates an encrypted descriptor wallet. Its longest wait covers about 50 syncs.Fix
Test-only.
apptests.cppgoes from 30 s to three minutes, about 2.6 times the slowest teardown seen in CI. Its comments now say what it catches: a teardown that returns late. A teardown that never returns does not reach the check; the QtTest function watchdog and the ctest timeout catch that.WAIT_TIMEOUT_MSinwalletactivitytests.cppgoes from 30 s to five minutes. Every wait there expects its condition to become true and returns as soon as it does, so passing runs take no longer.ordinaryLoadAndShutdowngets the sameQPointernull check as the other dialog waits.apptests.cpp, the timing log line and every ordering assertion.Evidence
Local runs on Linux, Release build,
QT_QPA_PLATFORM=minimal. The slow-disk runs inject a delay into everyfsync/fdatasyncwithstrace -f -o /dev/null -e trace=fsync,fdatasync -e inject=fsync,fdatasync:delay_enter=1500000and run only the two affected suites through a localtest_main.cppedit that is not part of this change.1.x.x(a7a70660ad)AppTestsWalletActivityTestscreateWalletProgressrows fail at the line 277 or line 309 waitWAIT_TIMEOUT_MSis the same)test_qbit-qtstraceruns do not show whether a row would exceedQTEST_FUNCTION_TIMEOUT(600 s under ctest, 300 s when the binary is run directly). At a uniform 1.5 s per sync acreateWalletProgressrow took about 395 s. In the failed CI jobs the wholeWalletActivityTestsclass took at most 553 s, so CI latency is far from uniform, but that watchdog is the next limit if the disks get slower.CI: Full Validation passed on this change before it was squashed for landing.
Review notes
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.