Navigation Menu

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

[MRG] Add caching of already built repositories #511

Merged
merged 1 commit into from Dec 22, 2018

Conversation

betatim
Copy link
Member

@betatim betatim commented Dec 17, 2018

This PR is a revival of #461

@betatim betatim changed the title Add caching of already built repositories [WIP] Add caching of already built repositories Dec 17, 2018
@betatim betatim changed the title [WIP] Add caching of already built repositories [MRG] Add caching of already built repositories Dec 17, 2018
@betatim
Copy link
Member Author

betatim commented Dec 17, 2018

Should we try again with this @yuvipanda? :)

return True
return False

def _build_image(self, checkout_path):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this can be folded into the build function

Copy link
Member Author

Choose a reason for hiding this comment

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

I liked the separation because build() does a bunch of things before&after building, and _build_image() just builds the image. :-/ It is an attempt to make the functions a bit shorter. Happy to move it.

Copy link
Member Author

Choose a reason for hiding this comment

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

bump

Copy link
Member Author

Choose a reason for hiding this comment

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

Private conversation with @yuvipanda just now: we put everything back in one method and he is happy with that.

Maybe look at splitting at a later point.

Copy link
Collaborator

@yuvipanda yuvipanda left a comment

Choose a reason for hiding this comment

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

Minor comment. I like the mocking!

@betatim betatim force-pushed the cached-builds-take2 branch 4 times, most recently from 031ce51 to 35fc757 Compare December 21, 2018 10:09
Add tests for image caching

Adjust tests and main app for cached builds

Remove obsolete command-line handling

Remove print statement from test

Fix subdirectory handling

Put back exception instead of sys.exit()
@yuvipanda yuvipanda merged commit 18e9d2f into jupyterhub:master Dec 22, 2018
@betatim betatim deleted the cached-builds-take2 branch December 22, 2018 06:54
markmo pushed a commit to markmo/repo2docker that referenced this pull request Jan 22, 2021
[MRG] Add caching of already built repositories
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.

None yet

2 participants