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

Optimize CI builds / Speed up integration tests #1689

Closed
4 tasks done
jonastheis opened this issue Sep 16, 2021 · 1 comment · Fixed by #1696
Closed
4 tasks done

Optimize CI builds / Speed up integration tests #1689

jonastheis opened this issue Sep 16, 2021 · 1 comment · Fixed by #1696
Assignees

Comments

@jonastheis
Copy link
Contributor

jonastheis commented Sep 16, 2021

  • Execute "Pull additional images" only when they are really needed
    • drand is only needed for dRNG integration test
    • pumba and iproute is only needed for partitions with autopeering
  • for building GoShimmer image and executing the tester image: leverage build cache per branch so that subsequent builds on the same branch can reuse Docker build cache and Go build cache (not redownload all modules and no rebuilding of image layers)
  • evaluate whether alpine or slim image can be used for tester and whether building an image is better instead of just using one in the docker compose file
  • enable cache for unit tests
@jonastheis
Copy link
Contributor Author

Some more resources to study:

Since we use the Go cache within the Docker image with --mount=type=cache,target=/root/.cache/go-build I'm not entirely sure whether we also need to mount the Go paths: https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds

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

Successfully merging a pull request may close this issue.

1 participant