-
-
Notifications
You must be signed in to change notification settings - Fork 93
Ability to display two different checks #217
Comments
Hi @ajsantander. Thanks for opening. Some initial thoughts...
Will look into this...it's possible Codechecks already supports it. In the most recent Synthetix runs it seems like the diff is still not being reported. Recent PRs here using Travis show the expected output, so it doesn't seem to be a problem with the Codechecks service as a whole or anything. However, will need to figure out how to get it working correctly with CircleCI...
That's a good idea. Would have to add some logic here but this should be simple to implement. Will open as a separate issue. |
@cgewecke any progress with this? Pls let us know how we can help. |
@ajsantander Apologies, I should be able to look into this and other issues at buidler-gas-reporter in the next couple days... Thanks for pinging. |
There's support for this now in eth-gas-reporter 0.2.18 / buidler-gas-reporter 0.1.4. (At synthetix you'll need to upgrade buidler-gas-reporter since you're using a beta)
An example with two reports, one failing a threshold setting looks like: If you have a chance, could you double-check that the Codechecks api token, Please just lmk about any problems you run into, will leave this open for now... |
Another note: ganache-core 625 reports that there's a difference between forked and non-forked gas costs for SSTORE which looks like a bug. |
Thanks Chris 🙏 Yep, the secret is in CircleCI. |
Thanks @cgewecke |
@cgewecke FYI, This is where we're implementing this Synthetixio/synthetix#805 |
@ajsantander Ok awesome! Will close here and keep an eye out over there. Thanks! |
We're using gas reports currently in Synthetix, e.g. https://github.com/Synthetixio/synthetix/pull/728/checks?check_run_id=1125774785
As you can see in that PR, we're working with forks. Basically, what we're trying to do is to run a bunch of production tests on top of a fork of mainnet.
I would like to be able to have two different gas reports, one for unit tests (as shown in the link above), and a different one for production tests. Right now, we're outputting 2 files,
test-gas-used.log
, andtest-gas-used-prod.log
, but we're not sure how to get this to an actual report.Also, while I'm here, is there a way to cause the CI to fail given a diff in gas usage above a certain threshold?
The text was updated successfully, but these errors were encountered: