Skip to content

Make event handling sequential and set the correct timestamp #4644

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

Merged
merged 2 commits into from
Aug 11, 2020

Conversation

gsquared94
Copy link
Contributor

@gsquared94 gsquared94 commented Aug 10, 2020

Related: #4578

Description

Log events are coming out of order and with incorrect timestamps:
image

This fix makes all event handle go through a single goroutine and also updates timestamps to when the events actually occur vs when they are handled.

This results in the correct event order and timestamp:

image

@gsquared94 gsquared94 requested a review from a team as a code owner August 10, 2020 16:10
@codecov
Copy link

codecov bot commented Aug 10, 2020

Codecov Report

Merging #4644 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4644      +/-   ##
==========================================
+ Coverage   73.15%   73.18%   +0.02%     
==========================================
  Files         337      337              
  Lines       13294    13308      +14     
==========================================
+ Hits         9725     9739      +14     
  Misses       2958     2958              
  Partials      611      611              
Impacted Files Coverage Δ
pkg/skaffold/event/event.go 90.90% <100.00%> (+0.28%) ⬆️

Continue to review full report at Codecov.

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

@tejal29 tejal29 merged commit 31075ab into GoogleContainerTools:master Aug 11, 2020
nkubala pushed a commit to nkubala/skaffold that referenced this pull request Aug 20, 2020
Make event handling sequential and set the correct timestamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants