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

Speed up the pre-merge checks. #1738

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Speed up the pre-merge checks. #1738

merged 1 commit into from
Nov 22, 2023

Conversation

sengi
Copy link
Contributor

@sengi sengi commented May 30, 2023

This takes the push/test cycle from around 2 minutes to under 20 seconds. Should make it a lot less painful to clean up the remaining modules in here.

  • Run the pre-merge checks in parallel.
  • Run terraform-docs in parallel.
  • Use Ubuntu instead of macOS runners. Reduces expected admission delay from ~20s to <5s.
  • Cache Terraform binaries so we don't download them every time. (Can't test the caching from a non-default branch, because GitHub weirdness — but should work once merged.)
  • Update Ruby libraries to latest versions.

alphagov/govuk-saas-config#177 updates the repo config to match.

The pending test pre-merge check on this PR is the defunct one that we're replacing.

@sengi sengi force-pushed the sengi/faster-tests branch 10 times, most recently from 35b7a84 to e2134c9 Compare November 20, 2023 21:51
@sengi sengi marked this pull request as ready for review November 20, 2023 21:54
sengi added a commit to alphagov/govuk-saas-config that referenced this pull request Nov 20, 2023
@sengi sengi force-pushed the sengi/faster-tests branch 2 times, most recently from 1db302f to 4efe5c9 Compare November 20, 2023 22:15
This takes the push/test cycle from around 2 minutes to under 20
seconds. Should make it a lot less painful to clean up the remaining
modules in here.

- Run the pre-merge checks in parallel.
- Run terraform-docs in parallel.
- Use Ubuntu instead of macOS runners. Reduces expected admission delay
  from ~20s to <5s.
- Cache Terraform binaries so we don't download them every time.
- Update Ruby libraries to latest versions.

alphagov/govuk-saas-config#177 updates the repo config to match.
@sengi sengi merged commit be27330 into main Nov 22, 2023
4 checks passed
@sengi sengi deleted the sengi/faster-tests branch November 22, 2023 16:19
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.

2 participants