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

refactor(modules): return has update for unexpected module fw filename #14712

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

caila-marashaj
Copy link
Contributor

@caila-marashaj caila-marashaj commented Mar 21, 2024

Overview

When we flash local firmware changes to a module using an ST-Link, the file produced will have the usual firmware filename for the module, except with a commit hash amended in the middle of it.

Currently, having the filename altered like this causes the robot server not to recognize that a module is present at all. Instead, this change allows the app to reflect that the module is there and offer an available update.

Changelog

  • catch and handle an InvalidVersion error for both current and available device versions

@caila-marashaj caila-marashaj requested a review from a team as a code owner March 21, 2024 15:17
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.20%. Comparing base (6b652c2) to head (ee0a015).
Report is 9 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #14712   +/-   ##
=======================================
  Coverage   67.20%   67.20%           
=======================================
  Files        2495     2495           
  Lines       71595    71593    -2     
  Branches     9076     9076           
=======================================
- Hits        48114    48113    -1     
+ Misses      21336    21335    -1     
  Partials     2145     2145           
Flag Coverage Δ
g-code-testing 92.43% <ø> (ø)

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

Files Coverage Δ
.../src/opentrons/hardware_control/modules/mod_abc.py 81.25% <ø> (+0.63%) ⬆️

@SyntaxColoring SyntaxColoring changed the title refator(modules): return has update for unexpected module fw filename refactor(modules): return has update for unexpected module fw filename Mar 21, 2024
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.

Looks good to me!

Copy link
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

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.

lgtm!

@caila-marashaj caila-marashaj merged commit b9cac4f into edge Mar 25, 2024
22 checks passed
@caila-marashaj caila-marashaj deleted the RQA-2303-handle-unexpected-mod-fw-name branch March 25, 2024 20:07
@caila-marashaj caila-marashaj restored the RQA-2303-handle-unexpected-mod-fw-name branch March 25, 2024 21:36
caila-marashaj added a commit that referenced this pull request Mar 25, 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.

3 participants