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

refactor(api): Ensure we handle state updates even for failed commands #16461

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

SyntaxColoring
Copy link
Contributor

Overview

This goes towards EXEC-639 in general.

LabwareStore, and most parts of PipetteStore, are now handling Protocol Engine state updates according to EXEC-639. However, in some places, they are only doing that when a command succeeds. They ought to also do it when the command fails with a defined error.

I don't think that has caused any problems so far, but it seems like something that would trip us up as we continue adding more defined errors and as we continue with EXEC-639.

So this PR tries to set a pattern for consistently handling both the success and failure cases.

Test Plan and Hands on Testing

Existing automated unit tests.

Review requests

None.

Risk assessment

Low.

@SyntaxColoring SyntaxColoring requested a review from a team October 10, 2024 20:30
@SyntaxColoring SyntaxColoring requested a review from a team as a code owner October 10, 2024 20:30
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's a very good pattern, thanks!

@SyntaxColoring SyntaxColoring merged commit ae463ff into edge Oct 11, 2024
27 checks passed
@SyntaxColoring SyntaxColoring deleted the state_update_on_failed_commands branch October 11, 2024 14:31
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.

2 participants