-
Notifications
You must be signed in to change notification settings - Fork 175
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): Refactor ProtocolRunner per protocol type #12343
Merged
Merged
Changes from 30 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2410782
WIP: created an abstract interface for ProtocolRunner. started JsonRu…
TamarZanzouri 290e860
WIP create_protocol_runner
TamarZanzouri 842a99e
test json_runner and finished logic for json_runner
TamarZanzouri f5b5325
WIP python and legacy runner
TamarZanzouri 7de1dae
python and legacy runner implementation
TamarZanzouri 8f30fa7
create_simulating_runner.py
TamarZanzouri c73922c
fixed robot server dependencies.py
TamarZanzouri 33c260a
MaintenanceRunner
TamarZanzouri b727804
wip robot-server
TamarZanzouri 5ecd3cb
changed create_simulating_runner to monkeypatch
TamarZanzouri 037f322
removed set_run_started_at and fixed test failing on started_at
TamarZanzouri d54c1ec
rollback depends for protocol_analyzer.py and moved runner creation i…
TamarZanzouri af5aaac
reorganize prtocol_runner tests and text fixes
TamarZanzouri 3a870b0
removed task_queue from maintenance runner
TamarZanzouri 4009a37
Merge branch 'edge' into RSS-200-refactor-protocol-runner
TamarZanzouri 50978e3
linting
TamarZanzouri 20d3c3f
fixed failing test in actions router
TamarZanzouri 08524fd
fixed maintenance test with task runner
TamarZanzouri da0fdba
Update api/src/opentrons/protocol_runner/protocol_runner.py
TamarZanzouri b38aaf7
pr feedback
TamarZanzouri 14e2fa0
changed ProtocolRunResult to RunnerRunResult
TamarZanzouri 5aa7899
added linting ignore
TamarZanzouri f36be33
fixed g-code testing
TamarZanzouri a81df1d
g-code testing fix
TamarZanzouri b647315
linting
TamarZanzouri e802d65
linting
TamarZanzouri 923e00c
added pe.play for run live commands
TamarZanzouri e1e9ddd
added tavern test for posting protocol commands
TamarZanzouri 88cae89
addressed PR comments, fixed live runner bug, updated tests
sanni-t 742e292
updated tests, fixed linter errors
sanni-t 93be36f
Merge branch 'edge' into RSS-200-refactor-protocol-runner
sanni-t 56a1b2f
correct docstring
sanni-t b272e10
Apply suggestions from code review
sanni-t 433ca47
fix runner smoke tests and linter errors, some renaming from PR review
sanni-t b6e7385
update runner typing & type naming, renamed set_task_queue_wait() to …
sanni-t 5789c41
address all remaining review comments
sanni-t File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
"""Protocol run control and management. | ||
|
||
The main export of this module is the ProtocolRunner class. See | ||
The main export of this module is the AbstractRunner class. See | ||
protocol_runner.py for more details. | ||
""" | ||
from .protocol_runner import ProtocolRunner, ProtocolRunResult | ||
from .protocol_runner import ( | ||
AbstractRunner, | ||
RunResult, | ||
create_protocol_runner, | ||
JsonRunner, | ||
PythonAndLegacyRunner, | ||
LiveRunner, | ||
RunnerType, | ||
) | ||
from .create_simulating_runner import create_simulating_runner | ||
|
||
__all__ = [ | ||
"ProtocolRunner", | ||
"ProtocolRunResult", | ||
"AbstractRunner", | ||
"RunResult", | ||
"create_simulating_runner", | ||
"create_protocol_runner", | ||
"JsonRunner", | ||
"PythonAndLegacyRunner", | ||
"LiveRunner", | ||
"RunnerType", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,8 @@ def read( | |
) | ||
|
||
|
||
# TODO (spp, 2023-04-05): Remove 'legacy' wording since this is the context we are using | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
# for all python protocols. | ||
class LegacyContextCreator: | ||
"""Interface to construct Protocol API v2 contexts.""" | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See if accepting a
protocol_type
makes more sense here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a TODO to address later.