-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add state to event handler to track logrus
output events
#6272
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6272 +/- ##
=======================================
Coverage 70.86% 70.86%
=======================================
Files 490 490
Lines 22162 22168 +6
=======================================
+ Hits 15704 15710 +6
- Misses 5441 5442 +1
+ Partials 1017 1016 -1
Continue to review full report at Codecov.
|
logrus
output taskslogrus
output events
@@ -319,6 +321,7 @@ func TaskInProgress(task constants.Phase, description string) { | |||
handler.skaffoldLogs = []proto.Event{} | |||
} | |||
|
|||
handler.task = task |
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.
these assignments will run into race condition
…tainerTools#6272) * add state to event handler to track logrus output tasks * linters
Related: #5368
Description
This PR adds a
task
field to theeventHandler
type to track what the current phase of skaffold is. This is used to populate theSkaffoldLogEvent
s that come fromlogrus
output.