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

Changes the builder steps to use the new ncache.Cache. #1047

Merged
merged 42 commits into from
Sep 27, 2018
Merged

Conversation

coollog
Copy link
Contributor

@coollog coollog commented Sep 26, 2018

Part of #637

  • Changes the builder steps to use the new ncache.Cache.
  • Removes the old cache package. (Had to get rid of it in this one since some of the changes caused compilation errors in the old cache package)
  • Need to: Compare performance against old cache.
  • Next step: Move ncache to cache.

@coollog coollog requested a review from a team September 27, 2018 18:37
try (InputStreamReader stderr =
new InputStreamReader(dockerProcess.getErrorStream(), StandardCharsets.UTF_8)) {
throw new IOException(
"'docker load' command failed with error: " + CharStreams.toString(stderr));
Copy link
Member

Choose a reason for hiding this comment

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

Are you fixing #1013? Perhaps do this in another PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah right, I added this to debug something. I'll remove this from this PR.

Image<Layer> testImage =
Image.builder()
.addLayer(
new Layer() {
Copy link
Member

Choose a reason for hiding this comment

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

If you prefer using a mock, you could do .addLayer(mockLayer) and when(mockLayer.getBlob()).thenReturn(Blobs.from(fileA)).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll change to that to make the code less boiler-platey.

Copy link
Member

@chanseokoh chanseokoh left a comment

Choose a reason for hiding this comment

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

Nothing seems suspicious.

@coollog coollog merged commit c37ed3f into master Sep 27, 2018
@coollog coollog deleted the use-ncache branch September 27, 2018 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants