-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update ci/ethereum_test to check echo_server/RunLog #276
Conversation
7073533
to
d780c74
Compare
@@ -2,11 +2,11 @@ let LinkToken = artifacts.require("../node_modules/smartcontractkit/chainlink/so | |||
let RunLog = artifacts.require("./RunLog.sol"); | |||
let devnetAddress = "0x9CA9d2D5E04012C9Ed24C0e513C9bfAa4A2dD77f"; | |||
|
|||
module.exports = async function(deployer) { | |||
await LinkToken.deployed().then(async function(linkInstance) { | |||
module.exports = function(deployer) { |
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.
Apparently truffle migrations don't support async
at the top export level, but they do inside then(async....
:
trufflesuite/truffle#501
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.
Maybe still return result of LinkToken.deployed? Not sure about Truffle's internals, but in tests it waits for returned promises to finish.
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 tried that to no avail and felt this was the most confident solution.
d780c74
to
59a1659
Compare
Codecov Report
@@ Coverage Diff @@
## master #276 +/- ##
=======================================
Coverage 83.63% 83.63%
=======================================
Files 45 45
Lines 3635 3635
=======================================
Hits 3040 3040
Misses 378 378
Partials 217 217
Continue to review full report at Codecov.
|
internal/ci/ethereum_test
Outdated
cd ../../ | ||
|
||
## Check job counts | ||
jobs=`cldev -j j | jq length` |
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.
Should we document the jq
requirement somewhere?
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'm indifferent. I do think this script assumes a lot of things are installed so how do we draw the line between jq
and other dependencies (yarn, curl, node)? It's preinstalled on the CI servers because it's prevalent in the ops world. Are you just saying something like?
## jq is used to parse json: https://stedolan.github.io/jq/
7. Wait for log to show up in echo server | ||
2. `yarn install` | ||
3. `node echo.js` | ||
4. `./node_modules/.bin/truffle migrate` in another window |
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.
Why in another window
?
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.
node echo.js
locks up the current window.
e1f8b8b
to
c0b8a35
Compare
c0b8a35
to
7562fc8
Compare
No description provided.