chore(test): fix test flakiness due to tchannel span assertion - #1077
chore(test): fix test flakiness due to tchannel span assertion#1077shijiesheng wants to merge 2 commits into
Conversation
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
…gher grpc Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
a9066bc to
140193a
Compare
CI failed: 4 test failures occurred during the unit test suite execution under both sticky-on and sticky-off Docker service configurations.OverviewUnit test execution failed in both the FailuresUnit Test Failures (confidence: high)
Summary
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsAdds awaitSpans helper methods to resolve tchannel span assertion flakiness in StartWorkflowTest and WorkflowClientInternalTest. Consider removing the unused awaitFinishedSpansCount helper. 💡 Quality: Unused helper awaitFinishedSpansCount added but never called📄 src/test/java/com/uber/cadence/internal/sync/WorkflowClientInternalTest.java:547-558 The newly added private static helper 🤖 Prompt for agentsTip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
merged into this #1079 |
What changed?
Why?
TChannel can activate span but has race conditions on the callback. This would cause span assertions assuming it's synchronos.
How did you test it?
Unit Test
Potential risks
no, it's pure test changes
Release notes
Documentation Changes