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

chore(gcode): reduce time of gcode-testing #8683

Merged
merged 3 commits into from
Nov 9, 2021

Conversation

amitlissack
Copy link
Contributor

@amitlissack amitlissack commented Nov 9, 2021

Overview

The gcode protocol tests take many minutes to complete. The reasons:

  • 1 minute hold times in thermocycler temperature set commands.
  • 5 second hold times in execute cycle steps for thermocycler.
  • 2 degree per second temperature rate for tempdeck and thermocycler

This is a PR into the emulation refactor phase 2 branch. The changes in that branch will require updating the master files in S3. Seemed like a good opportunity to do some optimizations.

Changelog

  • change hold times to 1 second from 1 minute
  • change execute cycle steps to hold for 1 second down from 5 seconds.
  • 50 degree per second ramp rate

Review requests

Risk assessment

None

@amitlissack amitlissack force-pushed the emulation-refactor-phase-2 branch from 3198269 to c58e5eb Compare November 9, 2021 18:30
@codecov
Copy link

codecov bot commented Nov 9, 2021

Codecov Report

Merging #8683 (e18e9ed) into emulation-refactor-phase-2 (c58e5eb) will increase coverage by 0.68%.
The diff coverage is n/a.

Impacted file tree graph

@@                      Coverage Diff                       @@
##           emulation-refactor-phase-2    #8683      +/-   ##
==============================================================
+ Coverage                       75.34%   76.03%   +0.68%     
==============================================================
  Files                            1830     1295     -535     
  Lines                           48566    39504    -9062     
  Branches                         4706     2792    -1914     
==============================================================
- Hits                            36594    30036    -6558     
+ Misses                          11172     9067    -2105     
+ Partials                          800      401     -399     
Flag Coverage Δ
g-code-testing 97.28% <ø> (ø)

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

Impacted Files Coverage Δ
.../src/opentrons/hardware_control/emulation/proxy.py 91.76% <0.00%> (-2.36%) ⬇️
...obot-server/robot_server/service/labware/router.py 88.73% <0.00%> (-2.08%) ⬇️
...rver/robot_server/service/pipette_offset/router.py 93.54% <0.00%> (-1.05%) ⬇️
...t-server/robot_server/service/tip_length/router.py 96.87% <0.00%> (-0.50%) ⬇️
robot-server/robot_server/runs/engine_store.py 95.00% <0.00%> (-0.46%) ⬇️
robot-server/robot_server/system/models.py 100.00% <0.00%> (ø)
robot-server/robot_server/runs/run_models.py 100.00% <0.00%> (ø)
...obot-server/robot_server/service/session/router.py 100.00% <0.00%> (ø)
...bot-server/robot_server/service/protocol/models.py 100.00% <0.00%> (ø)
...t-server/robot_server/service/json_api/response.py 100.00% <0.00%> (ø)
... and 540 more

@amitlissack amitlissack requested a review from a team November 9, 2021 18:37
@amitlissack amitlissack changed the title chore(gcode): Gcode testing faster runs chore(gcode): reduce time of gcode-testing Nov 9, 2021
@amitlissack amitlissack marked this pull request as ready for review November 9, 2021 18:44
@amitlissack amitlissack requested a review from a team as a code owner November 9, 2021 18:44
@amitlissack amitlissack requested review from a team and removed request for a team November 9, 2021 18:46
Copy link
Contributor

@DerekMaggio DerekMaggio left a comment

Choose a reason for hiding this comment

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

Jeez. This is so much better

@amitlissack amitlissack merged commit 1f06b75 into emulation-refactor-phase-2 Nov 9, 2021
@amitlissack amitlissack deleted the gcode_testing-faster-runs branch November 9, 2021 19:40
amitlissack pushed a commit that referenced this pull request Nov 9, 2021
* proxy.

run_emulator

* Linting/Formatting

* emulator

* integration tests pass.

* lint passes.

* gcode parsing.

* gcode parsing uses process for emulator.

* run_emulator_client retries.

* wait for emulator connection method.

* scripts.

* utils

* g-code-testing lint

* refactor(emulation):  integrated with module control (#8586)

* Module control refactors

* new package.

* start module control integration.

* tests for module control integration.

* implement connection listener.

* module server integrated into module control.

* lint

* g-code-testing

* redo docker compose to deal with separate emulator apps.

* usb port.

* expand module emulation settings.

* update docker readme.

* format-js

* lint

* go back to threadings. I don't want to debug windows nonsense.

* fix bug.

* redo gcode testing's emulator setup.

* documentation.

* clean up.

* don't listen for emulators on robot.

* chore(gcode): reduce time of gcode-testing (#8683)

* faster g-code-tests in ci

* reduce hold time.

* use dev folder in s3

* wait.

Co-authored-by: Derek Maggio <[email protected]>
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