Repository navigation
3.x.x: remove Config::block_only_ack_timeout, share the mature-CTV-fanout fixture, and stop the load tests rebuilding the server's dependencies (#579, #580) - #617
Conversation
…nout fixture, and stop the load tests rebuilding the server's dependencies (#579, #580) #580: after #574 the block-only acknowledgement bound always equalled share_commit_timeout, so the field and config::block_only_ack_timeout are gone and persist_block_only reads share_commit_timeout. Production behaviour is unchanged. The 13 fixtures that set the field (60 s next to a 15 s share deadline) drop it. Tests that shortened the block-only bound now shorten share_commit_timeout instead. Tests that relied on the longer bound: - commit_reconcile_block_only_confirmed_after_the_share_deadline_is_accepted only covered a bound longer than the share deadline. It is now ..._confirmed_before_its_bound_is_accepted, with a 10 s share deadline and without the late-confirmation assertion. The gated list is renamed to match. - The held-before-COMMIT case in commit_reconcile_candidate_bearing_append_is_never_refused keeps its < 1 s ceiling, which now bounds the 5 s grace. - block_only_work_block_never_takes_the_credited_share_path runs on an offline ledger whose probe fails at the pool's 30 s acquire timeout. It now sets a 60 s share deadline so that failure is still its answer. The docs that named the field now name the share deadline. #579: seed_candidate and one parameterised mature_fanouts(f, observed) move into tests/support/compact_runtime_e2e/ctv_fanout.rs. refresh_liveness and ctv_fanout_bookkeeping both use it. load_smoke, real_node and soak_smoke build the server as #554's faults test does: qbit-prism-load is selected beside it, and the CARGO_PKG_* and CARGO_MANIFEST_* variables that cargo test sets are removed, because ring's build script tracks them. The nested build no longer recompiles ring, rustls, sqlx and the server library on every run, and the next cargo invocation no longer recompiles them back. Closes #579, closes #580. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…are deadline The share deadline in commit_reconcile_block_only_enqueue_behind_the_order_lock_is_not_cut_off is now 10 s, so the 1.5 s checkpoint no longer falls past it. The comment and failure message now say what the checkpoint still proves: the proof is not answered while its enqueue waits behind ORDER_LOCK. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review ledger (#579, #580, load-test server build)There's no production behaviour change here, so under the current policy this PR got a proportionate check rather than a full deep review: one Review findings
The review also checked the following and found them sound:
Mutant evidenceEach mutant was applied to
Local runs (private PostgreSQL 16, fsync on, required-integration mode, nothing skipped)
One full parallel lib run under host load had a lock-timeout flake in two CIAll checks are green on head 8e7f934: 21 passed and 9 skipped. The first head, 9328bdf, failed only in |
Closes #579, closes #580.
A cleanup with no production behaviour change. It covers three things.
#580: remove
Config::block_only_ack_timeoutSince #574 the field always equalled
share_commit_timeout.persist_block_onlynow readsshare_commit_timeoutdirectly, and the field andconfig::block_only_ack_timeoutare removed. A restored 60 s floor would now have to go intopersist_block_onlyitself, whereb574_ack_capand thecommit_reconcile_block_only_*tests catch it (see the mutants below).share_commit_timeoutinstead:commit_reconcile_tests(5 cases)miner_submit_acquire_testsreadiness_rpcb574_ack_capcommit_reconcile_block_only_confirmed_after_the_share_deadline_is_acceptedcovered only that gap. It is now…_confirmed_before_its_bound_is_accepted: a 10 s share deadline, still not answered at 1.5 s, accepted once its candidate is driven, and without the late-confirmation assertion, which can no longer fire. The gated list is renamed to match.commit_reconcile_candidate_bearing_append_is_never_refused: the held-before-COMMIT case keeps its< 1 sceiling. The ceiling now separates the answer from the 5 s grace instead of from a 1 s block-only bound.block_only_work_block_never_takes_the_credited_share_pathruns on the miner-test fixture's offline ledger. There the duplicate probe fails at the pool's 30 s acquire timeout, which used to fall inside the 60 s block-only bound. The test now sets a 60 s share deadline, so the answer is stillledger-confirmation-failedand the runtime is unchanged at about 30 s.prism-native-metrics.mdand its metadata (the generator's--checkpasses)prism-rust-migration.mdprism-ha-reference-architecture.md, which also stops saying that block-carrying share appends wait for the block-only bound. They have followed the share deadline and grace since 3.x.x: cap a captured block proof's acknowledgement wait at the share-commit timeout (follow-up to #562) #574.#579: share the mature-CTV-fanout fixture
seed_candidateand one parameterisedmature_fanouts(f, observed)move intotests/support/compact_runtime_e2e/ctv_fanout.rs, which is a new file with one additivemodline.refresh_livenessandctv_fanout_bookkeepingnow both use it, which removes about 250 duplicated lines. The gated list does not change.The load tests no longer rebuild the server's dependencies
load_smoke,real_nodeandsoak_smokebuild the server binary from inside the test.cargo testsetsCARGO_PKG_NAME,CARGO_MANIFEST_DIRand similar variables for the test process, andring's build script tracks them. So every nested build recompiled ring, rustls, sqlx and the server library. The nextcargoinvocation then recompiled them back.The nested build now matches the test binary's own build:
qbit-prism-loadis selected beside the server, and those variables are removed. #554's fault test does the same.real_node11.9 s,load_smoke13.2 scargo testbuild to recompile backPer-PR CI: no tests added, about 24 s saved (roughly 12 s on each of the two shards that run
load_smokeandreal_node), plus the recompile in whatever step follows on those shards.soak_smokeis nightly-only.Verification
Run against a private PostgreSQL 16 (fsync on,
PRISM_TEST_REQUIRE_INTEGRATION=1, no gated test skipped):cargo fmt --checkandcargo clippy -p qbit-prism-server -p qbit-prism-load --all-targets -D warningsqbit-prism-server --lib: 590 passed; the 2 ignored are pre-existing.load_smoke,real_nodeandsoak_smoke --ignored, each run twiceMutants in
persist_block_only:bound = start + max(share_commit_timeout, 60 s)(the restored floor):b574_ack_capfails 2:a_captured_proof_is_answered_at_the_cap…and…whose_probe_outlasts_the_cap….commit_reconcile_testsfails 3:…still_pending_at_its_bound_is_unknown,…enqueue_past_the_bound_is_unknownand…poll_errors_are_retried_then_unknown.bound = startfails the renamed…confirmed_before_its_bound_is_acceptedwith "a block-only proof was answered before its candidate's disposition".🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.