-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix/GitHub tests #1087
Fix/GitHub tests #1087
Conversation
| 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 👍
ethereumj-core/build.gradle
Outdated
| 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 No newline at end of file |
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?