fix(test): fix flaky platform/fabric/services/endorser - #1639
Conversation
|
Hey @mbrandenburger 👋 thanks for the PR! This comment updates automatically as you push changes -- think of it as your PR's live scoreboard! PR Checks✅ DCO Sign-off -- All commits have valid sign-offs. Nice work! ❌ GPG Signature -- Heads up! The following commits don't have a verified GPG signature:
You'll need to sign your commits with GPG (e.g. ✅ Merge Conflicts -- No merge conflicts detected. Smooth sailing! ❌ Issue Link -- This PR is not linked to any issue. Please reference an issue using a closing keyword (e.g. ⏳ All checks must pass before this PR can be reviewed. You've got this! |
fcf492e to
0faec6a
Compare
SaidAltury-ibm
left a comment
There was a problem hiding this comment.
LGTM thank you @mbrandenburger
|
Tick the box to add this pull request to the merge queue (same as
|
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
0faec6a to
2205221
Compare
TestParallelCollectEndorsementsOnProposalView_TimesOutOnSilentPartywas flaky becauseparallelCollectEndorsementsOnProposalView.Callarmed its aggregate deadline with the same duration thatcollectEndorsementpasses toReceiveWithTimeout, so both fired at once andselectpicked between them at random — one path reports"time out reached on session", the other"timeout waiting for endorsement", and only the first matched the assertion.The aggregate deadline now runs a fixed grace period longer than the per-party timeout, so a silent party is consistently reported by the error that names it, leaving the aggregate deadline as the backstop for the session-setup and send steps that nothing else bounds.
Along the way this fixes a real bug in the same loop: the
AppendProposalResponseerror path wrappeda.err, which is alwaysnilthere, soWrapfreturnednilandCallhanded the caller(nil, nil)instead of the append failure. Adds tests for the aggregate deadline and for the swallowed append error, and extracts the fake wiring the parallel-endorsement tests share into a fixture.