-
Notifications
You must be signed in to change notification settings - Fork 179
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
docs(api): Fix description of run log payload #13776
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## edge #13776 +/- ##
==========================================
- Coverage 70.66% 70.56% -0.11%
==========================================
Files 2477 2485 +8
Lines 69666 69779 +113
Branches 8453 8480 +27
==========================================
+ Hits 49232 49239 +7
- Misses 18448 18554 +106
Partials 1986 1986
Flags with carried forward coverage won't be shown. Click here to find out more.
|
59108a6
to
c4ccc0b
Compare
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.
This looks good to me. The most important part is the inclusion of the new notes to ward people away from writing code that might break. All the little comments are possible improvements, but completely optional.
I would like to rewrite the prose earlier in each of these docstrings, but I think that's already covered in RTC-211.
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.
Added a comment about the use of "deprecated". Does the text need a stronger warning?
Co-authored-by: Ed Cormany <[email protected]>
Co-authored-by: Ed Cormany <[email protected]>
Failing tests appear to all be flaky Thermocycler integration tests. |
Overview
While working on #13709, I noticed some outdated documentation for
opentrons.simulate.simulate()
andopentrons.execute.execute()
.The docs say you're supposed to do this:
However, it's apparently been simplified to this now:
I'm not sure how long this has been the case. PR #9799 suggests it's at least since v5.0.2 but doesn't provide further details ("
text
field is not a format string anymore"). I tried some Git archeology, but I couldn't get to the bottom of it quickly.Unfortunately, if you try to do the old
.format()
thing today, it's actively harmful. If the string happens to contain any{
or}
characters, it will confuse.format()
and raise aKeyError
. This happens for Thermocycler commands (see issue #9988), and of course it can happen forProtocolContext.comment()
commands.Test Plan
Changelog
command["payload"]["text"]
.command["payload"]["text"].format(command["payload"])
.Review requests
.format()
thing? Anything in the Support help center? Any demo files floating around?Risk assessment
Low.