Skip to content
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

Merged
merged 5 commits into from
May 4, 2018

Conversation

dimroc
Copy link
Contributor

@dimroc dimroc commented May 4, 2018

No description provided.

@dimroc dimroc force-pushed the chores/runlog-integration-test branch from 7073533 to d780c74 Compare May 4, 2018 12:39
@@ -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) {
Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@dimroc dimroc force-pushed the chores/runlog-integration-test branch from d780c74 to 59a1659 Compare May 4, 2018 12:45
@codecov
Copy link

codecov bot commented May 4, 2018

Codecov Report

Merging #276 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #276   +/-   ##
=======================================
  Coverage   83.63%   83.63%           
=======================================
  Files          45       45           
  Lines        3635     3635           
=======================================
  Hits         3040     3040           
  Misses        378      378           
  Partials      217      217
Impacted Files Coverage Δ
services/application.go 95.34% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4bb4a4f...7562fc8. Read the comment docs.

@dimroc dimroc changed the title WIP Update ci/ethereum_test to check echo_server/RunLog Update ci/ethereum_test to check echo_server/RunLog May 4, 2018
j16r
j16r previously approved these changes May 4, 2018
cd ../../

## Check job counts
jobs=`cldev -j j | jq length`
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why in another window ?

Copy link
Contributor Author

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.

@dimroc dimroc force-pushed the chores/runlog-integration-test branch 2 times, most recently from e1f8b8b to c0b8a35 Compare May 4, 2018 15:06
@dimroc dimroc force-pushed the chores/runlog-integration-test branch from c0b8a35 to 7562fc8 Compare May 4, 2018 15:23
@se3000 se3000 merged commit 4a1faf6 into master May 4, 2018
@dimroc dimroc deleted the chores/runlog-integration-test branch May 14, 2018 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants