Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add
ContributeAndFinalized
replicate statuses #408Add
ContributeAndFinalized
replicate statuses #408Changes from 4 commits
8afa774
b73dd19
0fa95b0
27d6b82
2c4b5f8
13117c8
c461795
258f8ae
62b1bd3
b585b98
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Are we sure as
REVEALING
is not part of this list ?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.
As far as I understand this part, this list should return all "non-uncompletable statuses", which is not the case right now. Also, it is used only for tests in iexec-core.
Let's rework the tests in iexec-core so that we can remove this method.
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.
Honestly, I would go for the consistency in a first step and to go for the cleanup in a second one.
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.
Are you sure about your "non-uncompletable" ?
For me it is the list of states allowing to go to
COMPLETING
state which areREVEALED
(worker part of the consensus)CONTRIBUTE_AND_FINALIZE_DONE
(worker has revealed and has uploaded its results)RESULT_UPLOAD
something as the worker is part of the consensus and if this worker fails, to upload, another one could do it (to check if it is really supported)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.
Please have a look at the only use of this method to understand what I mean:
https://github.com/iExecBlockchainComputing/iexec-core/blob/1e6d93d197b0346c4b46a62278d5b7286e56dd0f/src/test/java/com/iexec/core/replicate/ReplicateListenersTests.java#L164-L175
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.
After some discussions, we've decided to remove
CONTRIBUTE_AND_FINALIZE_ONGOING
from this list.Please see b585b98.
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.
I am not sure about keeping
CONTRIBUTE_AND_FINALIZE_DONE
here as theREVEALED
state is not present in this list.When
CONTRIBUTE_AND_FINALIZE_DONE
, result has beenCONTRIBUTED
andPROVED
(akaREVEALED
) on chain. I am not sure the task can be failed in this case.I would rather comment this and ask a question to our experts when they are back.
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.
I do agree with your argument. Thanks for pointing it out!
Please see 258f8ae.