Skip to content

Chore: incremental mergeback of 8.4.0 into edge#18189

Merged
jerader merged 7 commits intoedgefrom
chore_incremental-mergeback-840-428
Apr 28, 2025
Merged

Chore: incremental mergeback of 8.4.0 into edge#18189
jerader merged 7 commits intoedgefrom
chore_incremental-mergeback-840-428

Conversation

@jerader
Copy link
Copy Markdown
Collaborator

@jerader jerader commented Apr 28, 2025

Incremental mergeback of 8.4.0 into edge, on April 28th

In particular, I need the displayName change from the labware definition in shared-data to be in edge for the labware-library release.

sfoster1 and others added 7 commits April 23, 2025 13:59
none of the other ones are prefixed like this
<!--
Thanks for taking the time to open a Pull Request (PR)! Please make sure
you've read the "Opening Pull Requests" section of our Contributing
Guide:


https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-pull-requests

GitHub provides robust markdown to format your PR. Links, diagrams,
pictures, and videos along with text formatting make it possible to
create a rich and informative PR. For more information on GitHub
markdown, see:


https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

To ensure your code is reviewed quickly and thoroughly, please fill out
the sections below to the best of your ability!
-->

# Overview
This turns the previous measure liquid height implementation that didn't
allow for recovery into a recoverable one. This is done by just doing
the "require_liquid_presnece" call and then using the new well state
endpoint to return the height instead of getting it directly from the
engine.
<!--
Describe your PR at a high level. State acceptance criteria and how this
PR fits into other work. Link issues, PRs, and other relevant resources.
-->

## Test Plan and Hands on Testing

<!--
Describe your testing of the PR. Emphasize testing not reflected in the
code. Attach protocols, logs, screenshots and any other assets that
support your testing.
-->

## Changelog

<!--
List changes introduced by this PR considering future developers and the
end user. Give careful thought and clear documentation to breaking
changes.
-->

## Review requests

<!--
- What do you need from reviewers to feel confident this PR is ready to
merge?
- Ask questions.
-->

## Risk assessment

Since this is just using the same calls as the other api endpoints there
is no additional testing to be done, and since it would just fail
protocols before and now it is perhaps recoverable then this can only be
a good thing.

<!--
- Indicate the level of attention this PR needs.
- Provide context to guide reviewers.
- Discuss trade-offs, coupling, and side effects.
- Look for the possibility, even if you think it's small, that your
change may affect some other part of the system.
- For instance, changing return tip behavior may also change the
behavior of labware calibration.
- How do your unit tests and on hands on testing mitigate this PR's
risks and the risk of future regressions?
- Especially in high risk PRs, explain how you know your testing is
enough.
-->
We weren't deserializing the simulation standin properly, which broke
runlog downloading. Now we are.

Also, we shouldn't be dumping it to the runlog anymore. That was
happening because of pydantic/pydantic#6830
which causes mis-serialization of fields typed as `Model | NativeType`,
where `NativeType` is some scalar python type (i.e. float, int) and
`Model` is some pydantic model. With the model first, serializing the
container will always result in the serialization of the default
construction of the model, even if the attribute actually contained the
native type. Flipping the order makes it work correctly, for some
reason. Luckily this is consistent enough to be testable.

Closes RQA-4147
Closes EXEC-1429
Closes EXEC-1358
…et (#18185)

<!--
Thanks for taking the time to open a Pull Request (PR)! Please make sure
you've read the "Opening Pull Requests" section of our Contributing
Guide:


https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-pull-requests

GitHub provides robust markdown to format your PR. Links, diagrams,
pictures, and videos along with text formatting make it possible to
create a rich and informative PR. For more information on GitHub
markdown, see:


https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

To ensure your code is reviewed quickly and thoroughly, please fill out
the sections below to the best of your ability!
-->

# Overview
Due to the way that the movement logic of blow out is handled, it
expects an absolute point. So when a location is a meniscus relative
type, then it miscalculates the "delta" of the point. The delta it
computes is -1 * the absolute point of the well.top.

To correct this if the location passed into blowout is a meniscus
relative location, we take the offset from that and apply it to the
current well height instead. this gives us the correct absolute point.

The other option would have been to hook up all the layers to handle
LiquidHandlingWellLocation types in addition to WellLocation but that
has its own headaches since its not actually liquid handling, and there
is no operational volume.
<!--
Describe your PR at a high level. State acceptance criteria and how this
PR fits into other work. Link issues, PRs, and other relevant resources.
-->

## Test Plan and Hands on Testing

<!--
Describe your testing of the PR. Emphasize testing not reflected in the
code. Attach protocols, logs, screenshots and any other assets that
support your testing.
-->

## Changelog

<!--
List changes introduced by this PR considering future developers and the
end user. Give careful thought and clear documentation to breaking
changes.
-->

## Review requests

<!--
- What do you need from reviewers to feel confident this PR is ready to
merge?
- Ask questions.
-->

## Risk assessment
Using blowout with a meniscus relative location without a liquid-probe
or load liquid will now fail analysis. there is no interaction with a
"minimum liquid height" so there is no worries there. even with a liquid
height of 0

<!--
- Indicate the level of attention this PR needs.
- Provide context to guide reviewers.
- Discuss trade-offs, coupling, and side effects.
- Look for the possibility, even if you think it's small, that your
change may affect some other part of the system.
- For instance, changing return tip behavior may also change the
behavior of labware calibration.
- How do your unit tests and on hands on testing mitigate this PR's
risks and the risk of future regressions?
- Especially in high risk PRs, explain how you know your testing is
enough.
-->
@jerader jerader requested review from a team as code owners April 28, 2025 12:30
@jerader jerader requested review from mjhuff and removed request for a team April 28, 2025 12:30
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.52%. Comparing base (51ea0ae) to head (7b5c092).
Report is 169 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #18189      +/-   ##
==========================================
+ Coverage   24.97%   26.52%   +1.55%     
==========================================
  Files        3026     3193     +167     
  Lines      235132   266848   +31716     
  Branches    20163    24554    +4391     
==========================================
+ Hits        58715    70787   +12072     
- Misses     176403   196032   +19629     
- Partials       14       29      +15     
Flag Coverage Δ
app 3.13% <ø> (-0.03%) ⬇️
labware-library 3.96% <ø> (?)
opentrons-ai-client 3.16% <ø> (-0.03%) ⬇️
protocol-designer 18.97% <ø> (+0.07%) ⬆️
shared-data 2.36% <ø> (-71.43%) ⬇️
step-generation 4.37% <ø> (-0.03%) ⬇️

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

Files with missing lines Coverage Δ
app/src/redux/analytics/constants.ts 1.00% <ø> (-0.03%) ⬇️

... and 1786 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@mjhuff mjhuff left a comment

Choose a reason for hiding this comment

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

lgtm!

@jerader jerader merged commit f19e3f8 into edge Apr 28, 2025
63 of 64 checks passed
@jerader jerader deleted the chore_incremental-mergeback-840-428 branch April 28, 2025 14:06
sfoster1 added a commit that referenced this pull request Apr 28, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 16, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 16, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 16, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 16, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 16, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 16, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 20, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 20, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 22, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 23, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 24, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 24, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 29, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 29, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
ddcc4 pushed a commit that referenced this pull request May 29, 2025
Fix a couple lint failures in edge in API (~merge conflict from #18189~
fixed in another pr ), hardware testing (introducing schema 3 again -
may be old), and engine (bad decoy)

(cherry picked from commit f5499f1)
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.

6 participants