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

Cache swift-format #1887

Merged
merged 3 commits into from
May 23, 2024
Merged

Cache swift-format #1887

merged 3 commits into from
May 23, 2024

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented May 23, 2024

Motivation:

The CI takes ~7 minutes to run, the longest job is the formatting check which spends most of its time compiling swift-format.

Modifications:

  • Cache the swift-format build directory

Result:

Faster CI

@glbrntt glbrntt marked this pull request as ready for review May 23, 2024 12:31
Motivation:

The CI takes ~7 minutes to run, the longest job is the formatting check
which spends most of its time compiling swift-format.

Modifications:

- Cache the swift-format build directory

Result:

Faster CI
@glbrntt glbrntt marked this pull request as draft May 23, 2024 12:32
@glbrntt glbrntt marked this pull request as ready for review May 23, 2024 12:59
@glbrntt glbrntt requested a review from gjcairo May 23, 2024 12:59
@glbrntt glbrntt added v2 A change for v2 semver/none No version change required. and removed v2 A change for v2 labels May 23, 2024
@glbrntt glbrntt enabled auto-merge (squash) May 23, 2024 12:59
Comment on lines +105 to +108
! -path './FuzzTesting/.build/*' \
! -path './Performance/QPSBenchmark/.build/*' \
! -path './Performance/Benchmarks/.build/*' \
! -path './scripts/.swift-format-source/*' \
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is now necessary because the soundness check first runs the license check and then would check out and build swift-format, meaning that it'd check the headers of swift-format. This wasn't an issue because of the ordering.

@glbrntt glbrntt merged commit 73a34ff into grpc:main May 23, 2024
14 checks passed
@glbrntt glbrntt deleted the cache-swift-format branch May 23, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version change required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants