Repository navigation
Conversation
Copying the whole repository first changed the layer on every commit, so every push to devel reinstalled all dependencies. Copying DESCRIPTION alone keeps the dependency layers cached until DESCRIPTION changes.
pak took over 5 hours to resolve the dependencies in the devel image and chose outdated container binaries (#1028). install.packages() keeps the highest version across repositories.
Contributor
Author
|
Tested on a branch (devel + this PR, image built but not pushed): run 45170120607 passed in 45 min. Dependencies installed in 7 min (pak had taken 5.5 h, see #1028), with current versions (miaViz 1.21.21, miaTime 1.3.6, BiocBook 1.11.7, ggtree 4.3.2), and the book rendered in 32 min, past the |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1028. The Dockerfile copied the whole repository before installing the dependencies, so every push reinstalled everything. DESCRIPTION is now copied alone first and the repository after the dependencies, so the dependency layers stay cached until DESCRIPTION changes.
The dependencies are now installed with
BiocManager::install()instead ofdevtools::install(). In the devel image, pak took over 5 hours to resolve them and then chose outdated container binaries, such as miaViz 1.21.1 withoutplotHeatmap()(details in #1028).install.packages()keeps the highest version across repositories.If the
type=localbuildx cache starts being evicted from the 10 GB Actions cache, switching totype=ghawould be the next step.