-
Notifications
You must be signed in to change notification settings - Fork 1.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
dealpublisher: Fully validate deals before publishing #7234
Conversation
a12fdf3
to
6c6c5e3
Compare
This validation seems to be pretty fast, on my mainnet miner:
|
Codecov Report
@@ Coverage Diff @@
## master #7234 +/- ##
==========================================
+ Coverage 39.09% 39.10% +0.01%
==========================================
Files 614 614
Lines 64895 64923 +28
==========================================
+ Hits 25369 25391 +22
- Misses 35127 35132 +5
- Partials 4399 4400 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should do the thing, test would be good to see
@@ -315,6 +318,13 @@ func (p *DealPublisher) publishReady(ready []*pendingDeal) { | |||
// validateDeal checks that the deal proposal start epoch hasn't already |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update comment (it's doing more now)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI - @BigLep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test and holding the standard for ourselves and others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It would be ideal if this also had an integration test setting up a batch of two deals one failing because of client insufficent funds and asserting that only the good deal made it through. Idk how difficult that is to do though.
dc78e04
to
62a2f25
Compare
The test still isn't exactly non-flaky, after a bunch of runs it hit:
|
62a2f25
to
22ce0ec
Compare
d55f551
to
8093f52
Compare
8093f52
to
42135ec
Compare
@magik6k - I don’t know if it’s directly related to the tests we added for DealPublisher, but I see we are experiencing some flaky tests for this in our CI: https://app.circleci.com/insights/github/filecoin-project/lotus/workflows/ci/tests?branch=master&reporting-window=last-30-days. |
Also @Stebalien created an issue with has logs related to this: #7252 |
The last commit should resolve it. |
Should fix #7206