Consensys / Tokens

Ethereum Token Contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install Solidity-Coverage

maurelian opened this issue · comments

This issue now has a funding of 0.055 ETH (36.12 USD) attached to it.

  • If you would like to work on this issue you can claim it here.
  • If you've completed this issue and want to claim the bounty you can do so here
  • Questions? Get help on the Gitcoin Slack
  • $9792.11 more Funded OSS Work Available at: https://gitcoin.co/explorer

I'll tackle this along with #100

@romanjesus can you submit a claim via the blockchain? more info at gitcoinco/gitcoinco#4

@romanjesus does the documentation i wrote up on gitcoinco/gitcoinco#4 help?

@romanjesus still interested?

@stojce is interested in this

@owocki thanks for writing that up. It did help! @stojce feel free to grab it, I didn't claim this issue on gitcoin and I probably won't be able to get to it soon!

@stojce @maurelian Also looked at this and FWIW solidity-coverage seems to be taking too long to execute the code verification loop at HumanStandardTokenFactory. Coverage at the point of failure looks like this:

screen shot 2017-12-20 at 4 39 13 pm

and I believe Web3 is timing out on the .call after ~60 seconds because it hasn't received a response. Truffle prints: Error: Could not connect to your Ethereum client.

The coverage tool relies on event injection / logging events to a file, and this loop fires > ten thousand events. It might be reasonable to allow SC to fail that test? The measurement is still basically accurate.

Opening this as a bug over there and @stojce if you'd like any help getting this to work feel free to ping me on Gitter.

(I help maintain solidity-coverage and am not chasing this bounty).

Hmmm... is there anyway to exempt/ignore a contract from SC? That's a pretty ludicrous test, and IIRC it requires probably more gas than several blocks would allow.

Yes you can exclude by using skipFiles option in the config:

skipFiles: ['HumanStandardTokenFactory']

You're ok not covering any of that code? One other thing: SC is on the Byzantium testrpc and there were a couple errors triggered by the change from invalid opcode to revert. Maybe the truffle version should be bumped to latest (so the rpcs match) and this line could search for the new word.

You're ok not covering any of that code?

Yeah... I don't think anyone is using that factory in practice, so for now I think that would be reasonable.

happy new year folks. checking in here after the holiday... @cgewecke let me know if youre intersted in this bounty. if not, im going to start tweeting about it to promote it being open

@owocki Ok I'll take it unless someone else already took it.

coolio. want to claim it on gitcoin?

The funding of 0.055 ETH (47.88 USD) attached has been claimed by @oojr.

@oojr, please leave a comment to let the funder (@owocki) and the other parties involved your implementation plan. If you don't leave a comment, the funder may expire your claim at their discretion.

@owocki I thought I claimed this, went to gitcoin and it seemed unclaimed?

@cgewecke thanks for the comments. per the convo on gitcoin slack, this has been fixed

@oojr looks like its been claimed now per https://gitcoin.co/funding/details?url=https://github.com/ConsenSys/Tokens/issues/103

Hi @oojr, I joined @owocki at Gitcoin last week. Checking in to see - are you running with this one?

@vs77bb I have an initial pull request for this will commit soon 👍

@oojr Sounds great!

@oojr Any update on this one? cc @owocki

@vs77bb @cgewecke I was able to get pass HumanStandardTokenFactory executing, but I don't think I have the right soldity-coverage, truffle combination in terms of package versions, so the test don't pass when running coverage

@oojr Yes - there's a resolution in this comment above. The error checking needs to look for the word revert because ganache-cli returns a new message since the Byzantium fork.

@vs77bb @cgewecke I think the test will have to be rewritten, solidity coverage is not compatible, I can add the package but it will have problems

hi all. i just killed the bounty for this issue for some gitcoin-internal migration reasons but wanted to let you know that, regardless of the issue description on gitcoin.co.. im good to pay out this bounty if/when the time is right. just @ me back then if it gets picked back up

Thanks @owocki, this will actually be resolved with this PR: #116

So, keep the bounty, don't spend it all in one place.