-
Notifications
You must be signed in to change notification settings - Fork 116
Switch analyzer and restorer phases #207
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
Switch analyzer and restorer phases #207
Conversation
28b8b2c to
fbd6b13
Compare
ekcasey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I do think we need to handle the no-op cache case in analyzer before we can merge. restorer can be skipped when there is no cache but analyzer should always run and a platform should be able to use the lifecycle w/o supporting providing a cache.
* Analyzer restores metadata for cache and app layers in /layers: * Restores metadata and sha for all cache=true layers. * Restores metadata and sha for all launch=true layers. * Does not restore metadata for cache=false and build=true layers. * Restorer attempts to restore all cache layers in /layers. * Restores data for all cache=true layers that are in the cache. * Removes metadata for all cache=true layers that are not in cache. * Leaves all cache=false metadata as they are. * Remove obsolete analyzer testdata. * Remove unused classifiyCache. Signed-off-by: Lukas Berger <[email protected]>
* If not cache flag is specified warn and use empty cache metadata. * Change info log messages to debug. * Remove duplicate test case from analyzer. * Remove misleading tests from restorer. Signed-off-by: Lukas Berger <[email protected]>
fbd6b13 to
d61bdae
Compare
|
EDIT: retracted b/c of sha comparison |
Since the |
|
@lukasberger good point. The previous case was different b/c there was no sha to compare. I retract my concern. |
In restorer, change error to warning so that restorer can clean up any accidentally-restored metadata. Signed-off-by: Lukas Berger <[email protected]>
The function pulls in unnecessary dependencies. Signed-off-by: Lukas Berger <[email protected]>
Signed-off-by: Lukas Berger <[email protected]>
Part 2 of the implementation of buildpacks/rfcs#21.