-
Notifications
You must be signed in to change notification settings - Fork 887
chore: Improve CI builds by improving caching and decomposing steps #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kylecarbs
commented
Mar 22, 2022
•
edited
Loading
edited
- Separates the mock and PostgreSQL database tests.
- Fixes the Go mod cache being separate per-OS.
- Fixes a few race conditions that appeared during testing.
Codecov Report
@@ Coverage Diff @@
## main #528 +/- ##
==========================================
- Coverage 62.54% 60.40% -2.15%
==========================================
Files 191 191
Lines 10856 10864 +8
Branches 85 85
==========================================
- Hits 6790 6562 -228
- Misses 3341 3583 +242
+ Partials 725 719 -6
Continue to review full report at Codecov.
|
select { | ||
case <-timer.C: | ||
p.failActiveJobf("cancelation timed out") | ||
return | ||
case <-ctx.Done(): | ||
timer.Stop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we only want to stop the timer on a context cancel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The timer will automatically stop if it completes, since it's not a ticker!