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

[gen3] hal: only skip modules that fail integrity check from module info #2387

Merged
merged 1 commit into from Jan 13, 2022

Conversation

avtolstoy
Copy link
Member

Problem

We've introduced a bug in #2374 in the condition used to skip 'invalid' modules from module info. Due to the behavior of fetch_module() it actually returns additional validation flags apart from the ones being requested (in our case only INTEGRITY check is of concern).

Solution

Fix the check to only take into account MODULE_VALIDATION_INTEGRITY and add a comment on the behavior of fetch_module().

Steps to Test

Flash Gen 3 device with Device OS built out of this branch. Update OTA to 3.2.0. The update should succeed. After 3.2.0 application has been flashed, particle serial inspect should report user module with unsatisfied dependencies. On develop, particle serial inspect should not report any user module at all.

Example App

N/A

References


Completeness

  • User is totes amazing for contributing!
  • Contributor has signed CLA (Info here)
  • Problem and Solution clearly stated
  • Run unit/integration/application tests on device
  • Added documentation
  • Added to CHANGELOG.md after merging (add links to docs and issues)

@avtolstoy avtolstoy added this to the 3.2.0 milestone Jan 13, 2022
@avtolstoy avtolstoy force-pushed the fix/gen3-module-info-validation branch from c665c57 to 4574fba Compare January 13, 2022 15:45
@avtolstoy avtolstoy merged commit 846464e into develop Jan 13, 2022
@avtolstoy avtolstoy deleted the fix/gen3-module-info-validation branch January 13, 2022 17:33
@keeramis keeramis mentioned this pull request Jan 13, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants