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

chore: Test caching to speed up test action #1812

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

dpaasman00
Copy link
Contributor

@dpaasman00 dpaasman00 commented Aug 20, 2024

Proposed Change

Trying to speed up CI after running into issues with the release and needing to wait on CI. Unfortunately the only real bottle neck is downloading dependencies, so for a single CI run there's not much that can be done. By default, the setup-go action will cache the root go.sum but with this change we're going to also cache nested go.sum files. With some rough testing I found this does speed up CI.

These are the results of some rough testing. In general I think caching the nested go.sum files does improve CI speed but it can definitely vary and this probably isn't definitive (such as windows tests taking longer with nested caching vs just the root).
image

Checklist
  • Changes are tested
  • CI has passed

@dpaasman00 dpaasman00 marked this pull request as ready for review August 28, 2024 14:54
@dpaasman00 dpaasman00 requested review from andykellr, antonblock and jsirianni and removed request for andykellr August 28, 2024 14:54
Copy link
Member

@jsirianni jsirianni left a comment

Choose a reason for hiding this comment

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

Excellent 👍

@dpaasman00 dpaasman00 merged commit 0c9e4ba into release/v1.59.0 Aug 28, 2024
15 checks passed
@dpaasman00 dpaasman00 deleted the chore/ci-test-cache branch August 28, 2024 15:42
BinaryFissionGames pushed a commit that referenced this pull request Sep 3, 2024
* test caching to speed up test action

* test removing cache

* add cache dependency path for all go.sum

* test w/o recursive go.sum match

* Revert "test w/o recursive go.sum match"

This reverts commit b2bf7a8.
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 this pull request may close these issues.

4 participants