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

fix(api): Change the camera device based on system version #14789

Closed
wants to merge 197 commits into from

Conversation

vegano1
Copy link
Contributor

@vegano1 vegano1 commented Apr 3, 2024

Overview

We updated the Linux Kernel recently which has changed the camera device from /dev/video0 to /dev/video2, so lets change it here. This pull request pertains to Opentrons/oe-core#140.

Closes: EXEC-354

Test Plan

  • Make sure we can take a picture via /camera/picture endpoint.

Changelog

  • set the camera device to /dev/video2 when taking a picture

Review requests

Risk assessment

github-actions bot and others added 30 commits February 7, 2024 09:49
addition of ignoreTipConfiguration flags
Trashbin support is required for API 2.16
There were 2 issues that prevented this dockerfile from building:
1) The base ubuntu image doesn't have git installed. This is required by `./scripts/python_build_utils.py` when normalizing version strings in setup.py
2) robot-server depends on server-utils but that was never copied or installed in the dockerfile
The current "out-of-the-box" dev experience fails in the following way
- `make setup` first invokes
- `make setup-js` before it runs `make setup-py`
- setup-js invokes a sub-make for the app shell which requires pipenv already setup to build the python protocol analysis sandbox.

This is fine if you've already run things before and have pipenv installed locally but it means the standard experience following the dev guides fails.

This pulls out the minimal python setup as a dependency of both the setup-py and setup-js build targets
…s values keyed by tip count (#14458)

* pickUpTipConfigurations' speed and distance are now objects keyed by tip count
* updated to speedByTipCount and distanceByTipCount in all pipette defs
* updated schema v1 build script
* updated mutable configs handlers
* updated hardware_testing/helpers_ot3
* revert 2.17 changes

* fix trash line on homepage

* named location arg
This is a merge of the in-process release to capture fixes to Python CI workflows
…ore accordingly (#14529)

# Overview
To make a few operations easier in protocol engine, we will keep the
nozzle map in state always. I will think about this further in RSS-443,
but for now it should unblock other partial tip work.
…14533)

revert back to connect function in step edit form to avoid stale props and zombie children
ncdiehl11 and others added 13 commits April 1, 2024 14:12
…o robot server (#14766)

Closes EXEC-358

Wire up PE event bubbling to the robot server for notifications as an alternative to the current polling that occurs. There are no functional changes.

PublisherNotifier is the new interface that handles event management for publishers, using a generic ChangeNotifier that is given to PE as a callback. When PE reports a change in state, the callback fires. PublisherNotifier then iterates through each callback, invoking them.

In the future, each publisher that requires access to PE state updates (eg, RunsPublisher) will add relevant callbacks during their initialization via register_publish_callbacks. Each callback will contain the conditional logic required for an MQTT publish to occur.
* fix(app,shared-data): change type name from boolean to bool
* fix(app): fix storybook build error
@vegano1 vegano1 requested a review from a team as a code owner April 3, 2024 15:03
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.

Sure, we can do this. We really don't have to do the per-version switching thing, these are all built together as a whole, but it doesn't hurt anything certainly.

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.19%. Comparing base (583dcf6) to head (27c59f5).
Report is 3 commits behind head on chore_release-7.2.2.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           chore_release-7.2.2   #14789      +/-   ##
=======================================================
- Coverage                67.56%   67.19%   -0.37%     
=======================================================
  Files                     2521     2495      -26     
  Lines                    72251    71381     -870     
  Branches                  9311     8981     -330     
=======================================================
- Hits                     48815    47968     -847     
- Misses                   21240    21301      +61     
+ Partials                  2196     2112      -84     
Flag Coverage Δ
g-code-testing 92.43% <ø> (ø)

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

Files Coverage Δ
api/src/opentrons/commands/commands.py 95.45% <ø> (ø)
api/src/opentrons/commands/helpers.py 85.00% <ø> (ø)
api/src/opentrons/commands/types.py 100.00% <ø> (ø)
api/src/opentrons/config/advanced_settings.py 94.47% <ø> (ø)
api/src/opentrons/config/defaults_ot3.py 100.00% <ø> (ø)
api/src/opentrons/config/feature_flags.py 100.00% <ø> (ø)
api/src/opentrons/config/types.py 100.00% <ø> (ø)
...i/src/opentrons/drivers/heater_shaker/simulator.py 90.00% <ø> (-0.48%) ⬇️
api/src/opentrons/drivers/mag_deck/simulator.py 88.00% <ø> (-0.89%) ⬇️
...pi/src/opentrons/drivers/rpi_drivers/interfaces.py 75.00% <ø> (-8.34%) ⬇️
... and 80 more

... and 171 files with indirect coverage changes

@vegano1
Copy link
Contributor Author

vegano1 commented Apr 3, 2024

curl -X POST --header "opentrons-version: 3" 127.0.0.1:31950/camera/picture --output "picture1.jpg"

picture1

@vegano1 vegano1 changed the base branch from edge to chore_release-7.2.2 April 3, 2024 15:18
@vegano1 vegano1 requested review from a team as code owners April 3, 2024 15:18
@vegano1 vegano1 requested a review from a team April 3, 2024 15:18
@vegano1 vegano1 requested a review from a team as a code owner April 3, 2024 15:18
@vegano1 vegano1 requested review from shlokamin and removed request for a team April 3, 2024 15:19
@vegano1 vegano1 closed this Apr 3, 2024
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.