Repository navigation
GTEST/UCS: Increase rwlock test sleep to avoid CI races - #11809
Conversation
Signed-off-by: Thomas Vegas <tvegas@nvidia.com>
Spawn the writer among readers and load payload before seq so a new value is visible only after the writer stores have completed.
|
🤖 CI Triage Agent — TL;DR: The AddressSanitizer/BlueField run failed only in Full analysisSummary: gtest failed with Root cause: At 13:12:34 the test printed Nothing in the PR touches this path: PR #11809 ("GTEST/UCS: Increase rwlock test sleep to avoid CI races") only changes Implicated commit: unknown — not caused by b33231c (PR #11809); the AM path was last touched by 2bafbb0 (Evgeny Leksikov, "UCP/AM/FT: introduce resend flag for first fragment retransmissions", #11452) and b6b8531 (tomerg-nvidia, "UCP/UCT/UCS: Add memory registration flags", #11553) File: test/gtest/ucp/test_ucp_am.cc:542 (assertion), test/gtest/ucp/test_ucp_am.cc:1695-1713 ( Suggested fix:
Related: #11809 (the PR under test; test-only rwlock sleep change, not the cause) |
What?
Fix flacky test, apparently under load the write thread could end-up being running after the normally subsequent reader thread.
Also added optional visibility-based test exercising the memory acquire/release aspect of the read and write lock.