-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added cache memory exceed check #24
Conversation
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.
ππΌ ππΌ πΊπΌ
Very nice! Thanks for this contribution!
Nit: remove the TODO
comments on line 54 with this change
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.
Nit: file isn't formatted. Run go fmt ./...
to resolved the "goimports" linting error.
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.
Look at that! The failing test tripped this check correctly:
gitrepofilepath_test.go:25: unexpected err: minimum free disk space: 100 exceeds actual available disk space: 23865319424
--- FAIL: TestOpenAndFetch (0.00s)
--- FAIL: TestOpenAndFetch/Puts_repos_into_cache_in_sequential_order (0.00s)
Which is coming from:
pizza/pkg/cache/gitrepofilepath_test.go
Line 23 in 51ed9ca
c, err := NewGitRepoLRUCache(tt.cacheDir, 100) |
This should be 1
instead of 100
since the github runners typically only have like 20gbs of disk on them.
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.
Looks great!!!!! ππΌ ππΌ very well done!!
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.
Nice!
Description
What type of PR is this? (check all applicable)
Added tests?
Added to documentation?
fixes #22