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

Improve E2E test run time by caching docker dependencies #163

Open
zarazan opened this issue Apr 26, 2023 · 1 comment
Open

Improve E2E test run time by caching docker dependencies #163

zarazan opened this issue Apr 26, 2023 · 1 comment

Comments

@zarazan
Copy link
Contributor

zarazan commented Apr 26, 2023

The github docker cache does not work between PRs and rebuilds dependencies way too often increasing the run time of the E2E test suite. The github cache has been disabled but a slightly more custom solution that maintains a cache of the docker layers that build dependencies would be helpful in decreasing run time.

Option 1: Intermediary docker image

  • Github action that builds and pushes a new "builder" image each time the go.mod file is updated.
  • In the e2e tests we will use that builder image, rather than official go image.

Option 2: Rely on docker-build command to determine which layers needs to be rebuilt

  • Github action that builds and pushes a new full docker image each time a PR is merged into master
  • Download the "main" docker image before running docker-build in the e2e tests
@robert-zaremba
Copy link

Thanks for adding this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants