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,robot-server): Various small refactors #14665

Merged
merged 7 commits into from
Mar 15, 2024

Conversation

SyntaxColoring
Copy link
Contributor

@SyntaxColoring SyntaxColoring commented Mar 14, 2024

Overview

Various small refactors to prepare for PR #14664, which goes towards EXEC-301.

Test Plan

This is sufficiently covered by automated tests.

Changelog

See the commit messages.

Review requests

None in particular. It's probably easiest to review this commit-by-commit.

Risk assessment

Low.

This will help in subsequent work, where we'll rearrange how internal state keeps track of the running command.
Make it agree with the docstring of the subject function, and with the actual behavior.

Also fix an accidentally duplicated command ID.
Without confirming whether this behavior is actually good or correct.
This also matches `GET /runs/{id}/commands` and `GET /maintenance_runs/{id}/commands`.
@SyntaxColoring SyntaxColoring requested review from a team as code owners March 14, 2024 23:34
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.34%. Comparing base (f307641) to head (5f024d9).
Report is 11 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #14665      +/-   ##
==========================================
- Coverage   67.34%   67.34%   -0.01%     
==========================================
  Files        2485     2485              
  Lines       71439    71423      -16     
  Branches     9057     9057              
==========================================
- Hits        48114    48098      -16     
  Misses      21173    21173              
  Partials     2152     2152              
Flag Coverage Δ
g-code-testing 92.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...i/src/opentrons/protocol_engine/protocol_engine.py 100.00% <ø> (ø)
...pi/src/opentrons/protocol_engine/state/commands.py 99.39% <ø> (-0.06%) ⬇️
robot-server/robot_server/commands/router.py 100.00% <ø> (ø)

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.

Looks good to me, good collection of fixes.

@SyntaxColoring SyntaxColoring merged commit c68027d into edge Mar 15, 2024
29 checks passed
@SyntaxColoring SyntaxColoring deleted the nonfatal_errors_refactors branch March 15, 2024 14:36
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