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

Test installation on some larger projects #10

Closed
5 of 7 tasks
cgewecke opened this issue Jun 11, 2017 · 7 comments
Closed
5 of 7 tasks

Test installation on some larger projects #10

cgewecke opened this issue Jun 11, 2017 · 7 comments

Comments

@cgewecke
Copy link
Member

cgewecke commented Jun 11, 2017

And possibly PR these in? If useful?

@cgewecke
Copy link
Member Author

cgewecke commented Jun 27, 2017

In principle, tool will run on melonport. Report looks like this. Truffle / Solidity-Parser are having a problem with some stub contracts they have, but otherwise everything works.

Chronobank - which had tests failing under coverage because there was no events filtering also works. They're pushing lots of code to a development branch right now though . . .

@cgewecke
Copy link
Member Author

Numerai report looks like this

They had a couple issues worth pursuing. This line in their contracts throws a solidity-parser error while instrumenting (but not when compiling with Truffle). Putting the return statement on the same line as the function call resolved it but this may be an SP regression bug. The fork we use is several commits ahead of the published version Truffle uses.

And some of their minting tests fail non-deterministically under coverage - these fire events. This appears to be a timing related bug (so, basically bad news).

@cgewecke
Copy link
Member Author

cgewecke commented Jul 4, 2017

Bancor @ commit 6e0f2d2 : Lots of tests but not running clear ATM . . . . holding off on this.

@cgewecke
Copy link
Member Author

cgewecke commented Jul 11, 2017

Aragon has a lot of hardcoded gas values - I tried replacing those with much higher sends, and also tried funding accounts with tons of gas. But it still exits with out of gas when deploying the contracts. Just don't know what to do . . . . Possibly revisit. FWIW everything seems to instrument and compile correctly.

UPDATE
Works: Issue was hardcoded gas values in the migrations. Tests run clean and generate this report.

@cgewecke
Copy link
Member Author

0xProject solved by @maurelian.

@maurelian
Copy link

Changes made for 0x:

  • switching to master branch to use this change
  • modified this to this because account balances were running out
  • the migrations had some flow specific to the development branch, so changed the settings to match the coverage network settings required by solidity-coverage. Remember to keep that branch though, or solcover will create one or something.
  • changed the testCommand to just truffle test

@cgewecke
Copy link
Member Author

Closing - no longer really doing this kind of validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants