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

feat(api): Make gripper errors nonfatal #16320

Merged
merged 9 commits into from
Sep 30, 2024
Merged

Conversation

SyntaxColoring
Copy link
Contributor

@SyntaxColoring SyntaxColoring commented Sep 20, 2024

Overview

Closes EXEC-714.

Test Plan and Hands on Testing

  • Physically try various ways of interfering with a gripper movement, and make sure they all cause the run to enter recovery mode now.
    • Missing labware at source
    • Obstacle at destination causing stall/collision
    • Gripper removed from jaw in transit

Changelog

Catch some exceptions in the gripper part of MoveLabwareImplementation and turn them into a new defined error, errorType: "gripperMovement".

Review requests

See comments below.

Risk assessment

Medium.

Comment on lines +180 to +182
# todo(mm, 2024-09-26): This currently raises a lower-level 2015 FailedGripperPickupError.
# Convert this to a higher-level 3001 LabwareDroppedError or 3002 LabwareNotPickedUpError,
# depending on what waypoint we're at, to propagate a more specific error code to users.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alternatively, we could consolidate 3001 and 3002.

class Aspirate(BaseCommand[AspirateParams, AspirateResult, ErrorOccurrence]):
class Aspirate(BaseCommand[AspirateParams, AspirateResult, OverpressureError]):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unrelated fix, just making sure OverpressureError shows up in these commands' OpenAPI specs.

@SyntaxColoring SyntaxColoring requested a review from a team September 26, 2024 22:18
@SyntaxColoring SyntaxColoring marked this pull request as ready for review September 26, 2024 22:18
@SyntaxColoring SyntaxColoring requested a review from a team as a code owner September 26, 2024 22:18
@SyntaxColoring SyntaxColoring requested a review from a team as a code owner September 26, 2024 22:19
Copy link
Contributor

@TamarZanzouri TamarZanzouri left a comment

Choose a reason for hiding this comment

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

LGTM! thank you!

@SyntaxColoring
Copy link
Contributor Author

The failing snapshot test is an edge change, unrelated to this PR.

@SyntaxColoring SyntaxColoring merged commit 61aa51f into edge Sep 30, 2024
28 of 29 checks passed
@SyntaxColoring SyntaxColoring deleted the grip_error_recovery branch September 30, 2024 16:58
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