Skip to content

Caching/CAS option improvements #66887

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

Merged

Conversation

cachemeifyoucan
Copy link
Contributor

Update CAS/Caching options and form proper driver options.

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

@cachemeifyoucan cachemeifyoucan force-pushed the eng/PR-cas-option-updates branch from 645cbc3 to c5d08d5 Compare June 23, 2023 21:13
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci Please clean smoke test

@cachemeifyoucan cachemeifyoucan force-pushed the eng/PR-cas-option-updates branch from c5d08d5 to d73b13b Compare June 23, 2023 21:17
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci Please clean smoke test

Using the same CASOption from clang to communicate CAS configurations so
it is easier to exchange CAS configuration between them.
When the CASOptions are the same, SwiftDependencyScanningService can be
shared with multiple swift driver invocation for scanning.
Rename `-enable-cas` to `-compile-cache-job` to align with clang option
names and promote that to a new driver only flag.

Few other additions to driver flag for caching behaviors:
* `-compile-cache-remarks`: now cache hit/miss remarks are guarded behind
  this flag
* `-compile-cache-skip`: skip replaying from the cache. Useful as a
  debugging tool to do the compilation using CAS inputs even the output
  is a hit from the cache.
@cachemeifyoucan cachemeifyoucan force-pushed the eng/PR-cas-option-updates branch from d73b13b to 284eb2a Compare June 26, 2023 17:34
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

@cachemeifyoucan cachemeifyoucan merged commit a6714bc into swiftlang:main Jun 26, 2023
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.

3 participants