-
Notifications
You must be signed in to change notification settings - Fork 367
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
Draft for dependencies cache reuse within same deploy #2769
Conversation
✅ Deploy Preview for devspace-docs canceled.Built without sensitive environment variables
|
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.
There may be an existing data structure to use for tracking which dependencies have been resolved.
There's not currently an easy way to e2e test changes to dependency resolution. I'll bring it up for discussion and see if we want to add something to support it.
@@ -31,6 +31,7 @@ type ResolverInterface interface { | |||
// Resolver implements the resolver interface | |||
type resolver struct { | |||
DependencyGraph *graph.Graph |
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.
I think you may be able to use the DependencyGraph to avoid re-downloading / re-pulling dependencies.
@@ -130,7 +131,7 @@ func (r *resolver) resolveRecursive(ctx devspacecontext.Context, basePath, paren | |||
continue | |||
} | |||
|
|||
dependencyConfigPath, err := util.DownloadDependency(ctx.Context(), basePath, dependencyConfig.Source, ctx.Log()) | |||
dependencyConfigPath, err := util.DownloadDependency(ctx.Context(), basePath, dependencyConfig.Source, ctx.Log(), r.DownloadedIds) |
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.
You might be able to skip this by doing a check similar to this line.
Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Fabian Kramm <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Luca Di Maio <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Luca Di Maio <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
This is a mitigation for devspace-sh#2448 (comment) Signed-off-by: Matthias Riegler <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: xcming <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Fabian Kramm <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: André S. Hansen <[email protected]>
Test is currently failing due to devspace-sh#2415, so this is a temporary measure to allow unrelated PRs to be approved Signed-off-by: Russell Centanni <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.4) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.8 to 1.15.4. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.14.8...v1.15.4) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Maarten Deprez <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
…od, to fix endless wait on container startup with multiple containers and startContainer enabled Signed-off-by: Maarten Deprez <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Maarten Deprez <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
…mand Signed-off-by: Russell Centanni <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Limiardi Eka Sancerio <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
Signed-off-by: Maarten Deprez <[email protected]> Signed-off-by: André S. Hansen <[email protected]>
What issue type does this pull request address?
/kind enhancement
What does this pull request do? Which issues does it resolve?
resolves #2768
Please provide a short message that should be published in the DevSpace release notes
Fixed an issue where DevSpace ...
What else do we need to know?
This is an incomplete PR, my limited understanding of the go language discouraged me to continue as i could not see a pretty way forward to properly preserve the download history. I am also very uncertain how you would want it solved for your codebase.
So either take this an inspiration for what i would like, or maybe give some pointers on how I could move forward.