GitHub actions workflow optimization#189
Open
gloskull wants to merge 2 commits into
Open
Conversation
- Split monolithic lint-check-type job into parallel fmt and clippy jobs - Replace manual actions/cache configurations with Swatinem/rust-cache@v2 - Optimize Postgres service healthcheck parameters (interval 2s, timeout 2s) - Use Docker Buildx with GHA caching for docker-build job Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…510762488 GitHub Actions Workflow Optimization and Parallelization
|
resolve conflicts @gloskull |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optimized and parallelized the GitHub Actions CI workflow for the utility-backend service.
Changes implemented:
Split monolithic lint-check-type job into parallel, independent fmt and clippy jobs to allow formatting checks to fail fast without code compilation, maximizing runner concurrency.
Configured Swatinem/rust-cache@v2 across all Rust compile jobs, replacing incomplete manual registry caching to properly cache the Cargo registry, index, git dependencies, and build artifacts.
Decreased Postgres service health-check interval and timeout to 2s in the test job, saving up to 10 seconds of idle wait time at the start.
Upgraded the docker-build job to utilize docker/setup-buildx-action@v3 and docker/build-push-action@v5 with GHA cache backend (type=gha, mode=max) for incremental Docker image builds.
Closes #138