-
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
duplicated build events #3812
Comments
for jib:
|
@balopat I can't reproduce. I used curl as a client to the http api. Can you share how you ran your test? |
hmm, yeah I see this too. just ran
|
I'll try with skaffold dev too then |
I'm giving up. Can't reproduce. |
that's so weird, I repro'd this on my first try...were you trying on OS X? |
@nkubala yes, osx |
I finally managed to reproduce it! |
What happens is that a "build In Progress" event is sent when the cache is checked for a given artifact and then another one is sent if the artifact needs to be built. I'm not sure what we should do exactly to solve that.
|
ah good find! it seems like we should only be sending an "in progress" event if the build is actually started, so my preference would be your first idea. to me it makes more sense that the builder itself sends the success/failure event for the build - your second option would mean the cache itself is sending a "success" event, though functionally I guess it's the same 🤷 it does also feel a little weird that the cache checking is considered part of the "build phase" of skaffold....but that's a different conversation :) |
I'll remove the "build in progress" event that's sent when checking the cache for an artifact. |
Not the cache. Fixes GoogleContainerTools#3812 Signed-off-by: David Gageot <david@gageot.net>
Not the cache. Fixes GoogleContainerTools#3812 Signed-off-by: David Gageot <david@gageot.net>
* Only the builder sends “Build in progress” events. Not the cache. Fixes #3812 Signed-off-by: David Gageot <david@gageot.net> * Fix integration tests Signed-off-by: David Gageot <david@gageot.net>
Not sure why but in the event API, we report two build events for In progress for the microservices example...
The text was updated successfully, but these errors were encountered: