-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
feat(ct): rm DeploymentSummary.sol files #12388
feat(ct): rm DeploymentSummary.sol files #12388
Conversation
@smartcontracts PTAL |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #12388 +/- ##
===========================================
- Coverage 64.32% 64.14% -0.19%
===========================================
Files 52 52
Lines 4348 4348
===========================================
- Hits 2797 2789 -8
- Misses 1376 1385 +9
+ Partials 175 174 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
@jsvisa appreciate you taking this one on! So the main issue with this current approach is that compilation will fail unless you generate the summaries locally which isn't ideal. I would prefer to have a dummy summary or something in place that would make it possible to compile the contracts without actually generating the full summaries. Second issue is that generating the summaries in CI takes a long time so we'd prefer not to do that since it will slow CI down quite a bit. Ideally we don't need to change CI at all - just replace the summaries here with interfaces or something, not really sure, but basically just something to avoid needing to store these massive files in the repository. |
@smartcontracts thanks for the guides, but I'm not familiar with kontrol, I'll try to find a proper way to generate those files with a simple way, without the heavy |
I think you could make it work as follows. For
For
|
May I ask is that means for the ci or other non-kontrol related tasks, we just echo those dummy code into the four files before btw, I was also thinking of use remappings to distinguish the dummy or real one, eg: [profile.ci]
fuzz = { runs = 512 }
reamppings = [
'test/kontrol/proofs/utils/DeploymentSummary.sol=test/kontrol/proofs/utils/DummySummary.sol',
'test/kontrol/proofs/utils/DeploymentSummaryFaultProofs.sol=test/kontrol/proofs/utils/DummySummaryFaultProofs.sol',
] but seems for the local file remapping is not working. |
73f85b0
to
179ad7a
Compare
@smartcontracts please take another look, thanks. |
/ping |
Hi, sorry for the delay here. I think it would be much easier to commit the dummy files rather than generating them with a script. If we have to generate them with a script then it’s an extra thing for someone to think about every time they want to write a new task or job that compiles the contracts. If we commit the files then it will “just work” while getting rid of the existing files. |
@smartcontracts I see I got your points, so we can directly replace the 4 files with the dummy files. But then when we're running the kontrol tests, it will rewrite those dummy files, so run git check-out to drop the changes |
Yep this is fine. We can make git ignore the file so that it won't be tracked. |
But if git ignored those files, then they will not exist in the git worktree, I'm afraid we can't pass the tests. |
We can use |
Signed-off-by: jsvisa <delweng@gmail.com>
436c336
to
88f3153
Compare
Heyo @jsvisa was this closed on purpose? |
sorry seems by mistake |
Thank you! |
f6ca236
Signed-off-by: jsvisa <delweng@gmail.com>
Description
close #12270
Tests
Additional context
Metadata