Skip to content

test(network): fix race in TestNotifier_VariousFlows/Happy_flow (backport of #4502) - #4503

Merged
stevenvegt merged 2 commits into
V6.2from
V6_2/fix-flaky-notifier-happy-flow
Sep 9, 2026
Merged

test(network): fix race in TestNotifier_VariousFlows/Happy_flow (backport of #4502)#4503
stevenvegt merged 2 commits into
V6.2from
V6_2/fix-flaky-notifier-happy-flow

Conversation

@stevenvegt

Copy link
Copy Markdown
Member

Backport of #4502 to V6.2, clean cherry-pick. Fixes the flaky TestNotifier_VariousFlows/Happy_flow seen on #4487: the subtest now waits for the persisted retry count instead of the in-memory callback counter, since notifyNow writes the retry count only after the callback returns.

The subtest waited until the receiver callback had run twice and then
read the persisted event, expecting two retries. notifyNow increments
and writes the retry count only after the callback returns, so on a
loaded runner the read could land between the second callback and its
write and observe one retry. Same race as fixed for TestNotifier_Notify
in #4274; observed on #4487.

The subtest now waits for the persisted retry count and checks that
the callback ran at least that often.

Assisted-by: AI
(cherry picked from commit 9fddb35)
@qltysh

qltysh Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Qlty


Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

Resolve module path conflicts from the /v6 module rename.

Assisted-by: AI
@stevenvegt
stevenvegt force-pushed the V6_2/fix-flaky-notifier-happy-flow branch from f0d080d to 2e30c74 Compare September 9, 2026 12:49
@stevenvegt
stevenvegt merged commit 89341ae into V6.2 Sep 9, 2026
8 checks passed
@stevenvegt
stevenvegt deleted the V6_2/fix-flaky-notifier-happy-flow branch September 9, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants