Skip to content
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

Check cached artifacts in parallel #1821

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Mar 18, 2019

Fixes #1819

Signed-off-by: David Gageot david@gageot.net

@codecov-io
Copy link

codecov-io commented Mar 18, 2019

Codecov Report

Merging #1821 into master will decrease coverage by 0.09%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1821     +/-   ##
=========================================
- Coverage   45.55%   45.45%   -0.1%     
=========================================
  Files         143      143             
  Lines        6687     6679      -8     
=========================================
- Hits         3046     3036     -10     
- Misses       3335     3337      +2     
  Partials      306      306
Impacted Files Coverage Δ
pkg/skaffold/build/cache/retrieve.go 86.82% <75%> (-2.23%) ⬇️

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 5b54d97...6051a51. Read the comment docs.

@dgageot dgageot force-pushed the cache-parallel branch 2 times, most recently from 30a23ec to 840d464 Compare March 18, 2019 16:06

lock.Lock()
defer lock.Unlock()
case d := <-detailsErrs[i]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a chance we could ever get here before detailsErrs[i] has been saved?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the array is initialised in the previous loop, in the main go routine.

Signed-off-by: David Gageot <david@gageot.net>
@dgageot dgageot merged commit 49c0c9e into GoogleContainerTools:master Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants