Skip to content

Compare OT-2 API versions numerically - #1236

Closed
hazlamshamin wants to merge 1 commit into
PyLabRobot:mainfrom
hazlamshamin:fix/ot2-api-version-comparison
Closed

Compare OT-2 API versions numerically#1236
hazlamshamin wants to merge 1 commit into
PyLabRobot:mainfrom
hazlamshamin:fix/ot2-api-version-comparison

Conversation

@hazlamshamin

Copy link
Copy Markdown
Contributor

Summary

OT-2 robot server versions can have multi-digit major components. The previous text comparison treated version 26.6.0 as older than 7.1.0. Fixed-trash disposal then entered the tip-rack path and raised an assertion.

  • Compare dot-separated numeric components before selecting the fixed-trash route.
  • Cover a version below the boundary, the 7.1.0 boundary, and robot version 26.6.0.

Verification

  • Focused Opentrons backend tests: 24 passed.
  • Ruff lint and format checks passed.
  • Focused MyPy check passed.
  • Physical OT-2 with robot API 26.6.0: fixed-trash disposal completed for the P300 and P20 pipettes. A combined two-transfer LabYard run completed once and did not replay after reconstruction.

Robot server versions can have multi-digit major components. A text
comparison treats 26.6.0 as older than 7.1.0. Fixed-trash disposal then
enters the tip-rack path and fails.

Compare numeric components and cover the threshold and the current robot
version.
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.

1 participant