-
Notifications
You must be signed in to change notification settings - Fork 323
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
HTTP cache size limit environment variables #11530
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
d3eb7fa
wip
GregoryTravis 3b3848c
Merge branch 'develop' into wip/gmt/11410-cache-env
GregoryTravis 8064cfb
make EHRC static
GregoryTravis 65d6141
Merge branch 'develop' into wip/gmt/11410-cache-env
GregoryTravis 12c3733
EHRC singleton
GregoryTravis 8f7c0ab
wip
GregoryTravis 54cad98
wip
GregoryTravis eac9637
Merge branch 'develop' into wip/gmt/11410-cache-env
GregoryTravis c071438
tests pass
GregoryTravis 232c88b
use enso project root
GregoryTravis c744a58
docs, rename
GregoryTravis ad57bd7
docs, test for changing disk space
GregoryTravis 5742258
doc
GregoryTravis 859459a
doc
GregoryTravis 875aa1f
prevent raising test disk space
GregoryTravis 36b3867
upper bound test
GregoryTravis e5dc3a5
wip
GregoryTravis 878d992
wip
GregoryTravis 55379f4
Merge branch 'develop' into wip/gmt/11410-cache-env
GregoryTravis 6a896f0
Merge branch 'develop' into wip/gmt/11410-cache-env
GregoryTravis 0d9da62
wip
GregoryTravis d62ffa9
wip
GregoryTravis 0321544
one passes
GregoryTravis a1be3e6
17
GregoryTravis 31a8f02
double lambda
GregoryTravis 4a87a25
fix now
GregoryTravis 0e44c66
more
GregoryTravis edc18cb
green
GregoryTravis 3b079f9
do not have to set both env vars
GregoryTravis 3d2fcf9
download not limited check checks that fetch throws
GregoryTravis 141d6a2
file_deleter, fetch_n
GregoryTravis 46634f5
deleter fix
GregoryTravis 8500533
wip
GregoryTravis 6d420a2
fmt
GregoryTravis 8a25469
include existing files in calc
GregoryTravis 7137cbf
fmt
GregoryTravis e31c107
Merge branch 'develop' into wip/gmt/11410-cache-env
GregoryTravis f794059
doc
GregoryTravis 476a04c
fmt
GregoryTravis c1da246
Merge branch 'develop' into wip/gmt/11410-cache-env
GregoryTravis e559a06
90% test, move a test
GregoryTravis 08be111
review
GregoryTravis 115e7c7
review
GregoryTravis 6d679dc
review
GregoryTravis 4e347e9
create cache on first use
GregoryTravis c5ab512
default instead of exception for bad env vars
GregoryTravis d2d7b29
fmt
GregoryTravis 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
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
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
15 changes: 15 additions & 0 deletions
15
std-bits/base/src/main/java/org/enso/base/cache/DiskSpaceGetter.java
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.enso.base.cache; | ||
|
||
import java.io.File; | ||
import org.enso.base.CurrentEnsoProject; | ||
|
||
public class DiskSpaceGetter extends Mockable<Long> { | ||
@Override | ||
public Long computeValue() { | ||
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. I'd probably add 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. Done |
||
return getRootPath().getUsableSpace(); | ||
} | ||
|
||
private static File getRootPath() { | ||
return new File(CurrentEnsoProject.get().getRootPath()); | ||
} | ||
} |
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
Oops, something went wrong.
Oops, something went wrong.
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.
It feels a bit redundant, since we can just call
invokeMethod
twice on Java side, right?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 did this because
invokeMember
didn't work here; I get:Perhaps because it's a builtin Enso type?
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.
Oh, I see. Well in such case such workaround seems justified.