Skip to content

Faster integration tests#1789

Merged
dgageot merged 2 commits intoGoogleContainerTools:masterfrom
dgageot:faster-integration-tests
Mar 13, 2019
Merged

Faster integration tests#1789
dgageot merged 2 commits intoGoogleContainerTools:masterfrom
dgageot:faster-integration-tests

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Mar 13, 2019

  • Use --cache-from to build the integration tests Docker image.
  • Run make test and make coverage in a single step

@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 13, 2019

Codecov Report

Merging #1789 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1789   +/-   ##
=======================================
  Coverage   46.09%   46.09%           
=======================================
  Files         142      142           
  Lines        6576     6576           
=======================================
  Hits         3031     3031           
  Misses       3242     3242           
  Partials      303      303

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 163f2e8...0efee13. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1789 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1789   +/-   ##
=======================================
  Coverage   46.09%   46.09%           
=======================================
  Files         142      142           
  Lines        6576     6576           
=======================================
  Hits         3031     3031           
  Misses       3242     3242           
  Partials      303      303

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 4aae6af...1f7a2a5. Read the comment docs.

@dgageot dgageot force-pushed the faster-integration-tests branch from 1f7a2a5 to c005190 Compare March 13, 2019 10:21
Copy link
Copy Markdown
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

😍 850 lines, down from 10000!

Makefile Outdated
-e DOCKER_CONFIG=/root/.docker \
-e GOOGLE_APPLICATION_CREDENTIALS=$(GOOGLE_APPLICATION_CREDENTIALS) \
gcr.io/$(GCP_PROJECT)/skaffold-integration
docker push gcr.io/$(GCP_PROJECT)/skaffold-integration
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why do we need this? GCB pushes the images automatically

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to pull this image and it didn't exist. So I'm not sure.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm...yeah you're right - deploy/cloudbuild.yaml only pushes up to the builder target in that dockerfile... why do we need to push this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When you say this, do you mean the builder image or the skaffold-integration image?
In case it's the latter, we need to push it to make sure it can be used by --cache-from two lines up in the script

Copy link
Copy Markdown
Contributor

@balopat balopat Mar 13, 2019

Choose a reason for hiding this comment

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

by this I meant integration.
integration is always different for every different version of skaffold as it is only builder + skaffold binary + a specific CMD? can't we just use --cache-from from the builder image?

Copy link
Copy Markdown
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM - except the docker push - I'm not sure if it's necessary

@dgageot
Copy link
Copy Markdown
Contributor Author

dgageot commented Mar 13, 2019

@balopat Is there a GCB job that pushes this image?

dgageot added 2 commits March 13, 2019 22:20
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@dgageot dgageot force-pushed the faster-integration-tests branch from 908b411 to 0efee13 Compare March 13, 2019 21:20
@dgageot dgageot merged commit 7e5409e into GoogleContainerTools:master Mar 13, 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.

6 participants