Skip to content

Conversation

Groxx
Copy link
Member

@Groxx Groxx commented Nov 1, 2024

Fixing the flakiness that led to #1375.

The races in these tests were due to t.Log calls occurring after the test finishes,
because the workflow (and test suite and tests and...) does not wait for goroutines to shut down.

It's an annoying enough issue that I tackled it with gusto in cadence-workflow/cadence#6067
and it's probably worth porting over here too.
Though the underlying "shut down and do not wait" behavior is still extremely dangerous and needs to be fixed some day.

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@163f1a9). Learn more about missing BASE report.
Report is 1 commits behind head on master.

Additional details and impacted files

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 163f1a9...46ec857. Read the comment docs.

@Groxx Groxx merged commit f21e350 into cadence-workflow:master Nov 1, 2024
13 checks passed
@Groxx Groxx deleted the unskip branch November 1, 2024 00:58
mrombout pushed a commit to softsense/cadence-client that referenced this pull request Feb 26, 2025
Fixing the flakiness that led to cadence-workflow#1375.

The races in these tests were due to `t.Log` calls occurring after the test finishes,
because the workflow (and test suite and tests and...) does not wait for goroutines to shut down.

It's an annoying enough issue that I tackled it with gusto in cadence-workflow/cadence#6067
and it's probably worth porting over here too.
Though the underlying "shut down and do not wait" behavior is still extremely dangerous and needs to be fixed some day.
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