-
Notifications
You must be signed in to change notification settings - Fork 368
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
Closed
+61
−42
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
94c4680
Exampel code for dependencies cache reuse within same deploy
Andrioden 8e11a8b
fix: pull for cached dependencies
Andrioden 274ca63
More and edited comments
Andrioden 99c212a
Moved git Pull out of Clone
Andrioden ab4ad96
fix: nil pointer in ensure namespace
FabianKramm 02f6745
tests: add regression tests for nil pointer on invalid kubeconfig
89luca89 d43987c
fix: try to resolve test flaking
89luca89 07c01cd
fix: disable upx for devspace-helper on linux/arm64
xvzf cfa63da
fix: fix typo
c3d0bdf
fix: use string hash instead of whole name
FabianKramm 6826302
added video tutorial series playlist to introduction to DevSpace
mpetason 7f111cc
test: add flake attempts and fail-fast for e2e tests
lizardruss 6f7ad36
chore(deps): bump follow-redirects from 1.15.2 to 1.15.4 in /docs
dependabot[bot] 50f9a3b
chore(deps): bump follow-redirects from 1.14.8 to 1.15.4 in /ui
dependabot[bot] 04ae491
Bugfix: also run persistPaths() for containers
c267eac
bugfix: make a DelayedContainerStarter per container instead of per p…
a563de1
Keep linter happy
ac12588
test: update SSH tests to wait for start_dev before canceling the com…
lizardruss f53f338
fix: use string hash for volumeName
528181a
restart helper: give container process some time to shutdown
f52d3cb
Merge branch 'devspace-sh:main' into main
Andrioden ec81def
Merge branch 'main' into dep-skip
Andrioden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ type ResolverInterface interface { | |
// Resolver implements the resolver interface | ||
type resolver struct { | ||
DependencyGraph *graph.Graph | ||
DownloadedIds []string | ||
|
||
BaseCache localcache.Cache | ||
BaseConfig *latest.Config | ||
|
@@ -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 commentThe 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. |
||
if err != nil { | ||
return err | ||
} | ||
|
This file contains 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
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.
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.