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

Revise package revision caching strategy #4094

Merged
merged 4 commits into from
Nov 30, 2023

Conversation

johnbelamaric
Copy link
Contributor

This maintains a separate, lower level cache for the git package revisions. This is somewhat hokey - but I expect the entire "cache" repository type to go away completely with #3630, so this is just trying to optimizing things in the short term.

This makes it so that each "refresh" now only loads changed packages - except for those in main, where it loads all packages if main has changed.

Since loading is now much faster, rather than trying to maintain the cache through mutations, we just refresh the cache after any mutating call.

Signed-off-by: John Belamaric <jbelamaric@google.com>
Signed-off-by: John Belamaric <jbelamaric@google.com>
Signed-off-by: John Belamaric <jbelamaric@google.com>
This also updates the test output which previously reflected incorrect
output which is fixed by this PR.

Signed-off-by: John Belamaric <jbelamaric@google.com>
@johnbelamaric
Copy link
Contributor Author

FYI, I also ran through the Nephio R1 e2e test suite with this build:

TEST SUMMARY
------------
001.sh: PASS in 540 seconds
002.sh: PASS in 1307 seconds
003.sh: PASS in 53 seconds
004.sh: PASS in 432 seconds
005.sh: PASS in 388 seconds
006.sh: PASS in 413 seconds
007.sh: PASS in 484 seconds
008.sh: PASS in 289 seconds
009.sh: PASS in 30 seconds

------------

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.

2 participants