-
Notifications
You must be signed in to change notification settings - Fork 6
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
Extrapolate an interface for reading Zephyr nvs data. #9
Conversation
1b0b0f9
to
155efb0
Compare
fyi: To get the pipeline to pass, you can do something hacky like this: |
The OS project is going to accept my contribution (see joelguittet/mender-mcu-client#67) so I launched a similar one for our fork (see #10) with the intention of avoiding exactly that sort of hacky formatting 😅 |
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.
Nice! 👏
@danielskinstad @lluiscampos this is pretty weird. I run the clang-format locally and everything passes. Need to figure out how to run it locally exact same way as it is done in the CI. |
I have this version
and use this script, which seems to work:
|
@danielskinstad for testing can you run your clang-format on my latest commit and see which places it complains about? Thanks. |
Hmm, it is as you said: it passes locally. I even tried the clang-format from ubuntu:24.04 locally, and that also passed. Weird, tried running it manually from gitlab aswell, still fails. EDIT: I checked the wrong thing, I assumed it was |
In many place we are reading the length of the data, allocating memory, and then using allocated memory to read the actual data. Instead of repeating it in many places we can use an interface to deal with it and use when we need to access nvs stored data. Changelog: Title Ticket: MEN-7380 Signed-off-by: Marcin Pasinski <[email protected]>
Merging these commits will result in the following changelog entries: Changelogsmender-mcu (main)New changes in mender-mcu since main:
|
@danielskinstad thanks! I spend way too much time trying to figure out what is wrong with formatting and completely missed |
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.
Just fyi, if there is no change in functionality for the user, you don't need to include changelog. Usually used when it's a fix or a feat.
https://github.com/mendersoftware/mendertesting/blob/master/commitlint/grammar.md
In many place we are reading the length of the data, allocating memory, and then using allocated memory to read the actual data. Instead of repeating it in many places we can use an interface to deal with it and use when we need to access nvs stored data.