Skip to content
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

runtime: Remove status redefinitions from operations #702

Merged

Conversation

wking
Copy link
Contributor

@wking wking commented Feb 28, 2017

These states are already defined in the "State" section. There's no need to redefine them in the operation sections.

Operation-level redefinitions are dicy anyway, because they imply something testable about the immediately-after-this-operation time, and it's not possible to run race-free tests of that time (e.g. the process could die for other reasons between the successful create call and the state call you made to look for a created status).

@crosbymichael
Copy link
Member

plz rebase

These states are already defined in the "State" section.  There's no
need to redefine them in the operation sections.

Operation-level redefinitions are dicy anyway, because they imply
something testable about the immediately-after-this-operation time,
and it's not possible to run race-free tests of that time (e.g. the
process could die for other reasons between the successful 'create'
call and the 'state' call you made to look for a 'created' status).

Signed-off-by: W. Trevor King <wking@tremily.us>
@wking wking force-pushed the remove-operation-status-redefinition branch from bb429f4 to 2d8d50c Compare May 9, 2017 23:40
@wking
Copy link
Contributor Author

wking commented May 9, 2017

plz rebase

Rebased onto master with bb429f42d8d50c, resolving trivial conflicts with #707.

@crosbymichael
Copy link
Member

crosbymichael commented May 10, 2017

LGTM

Approved with PullApprove

1 similar comment
@tianon
Copy link
Member

tianon commented May 10, 2017

LGTM

Approved with PullApprove

@tianon tianon merged commit 7a75267 into opencontainers:master May 10, 2017
@wking wking deleted the remove-operation-status-redefinition branch May 10, 2017 23:51
@vbatts vbatts mentioned this pull request Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants