-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
@@ -74,10 +81,9 @@ | |||
|
|||
public static String loadJSONFromCommit(String filename, String shacommit) throws IOException { | |||
String json = ""; | |||
if (!SystemProperties.getDefault().githubTestsLoadLocal()) | |||
json = getFromUrl("https://raw.githubusercontent.com/ethereum/tests/" + shacommit + "/" + filename); | |||
json = getFromUrl("https://raw.githubusercontent.com/ethereum/tests/" + shacommit + "/" + filename); |
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.
This change makes it impossible to read tests from local folder
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'd suggest to have a 3rd option like GitHubTests.useDiskCache
@mkalinin how about such approach? |
The incentive behind storing it in the config is to avoid frequent updates of |
@mkalinin review me, plz |
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.
A couple of cosmetic notes. Otherwise looks good 👍
throw ex | ||
} | ||
} | ||
} |
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.
new line pls
# to determinate commit of Ethereum tests repo https://github.com/ethereum/tests | ||
# which should be checked out in local repo directory | ||
# EthereumJ is tested with files from this commit | ||
GitHubTests.commit=7f638829311dfc1d341c1db85d8a891f57fa4da7 |
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.
new line pls
Cache made with properties file and storing downloaded files. According to log it's used on travis instead of download. We could try this solution. What do you think?