-
Notifications
You must be signed in to change notification settings - Fork 3k
Update mbed-client-cli from v0.5.0 #13443
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
Conversation
Update mbed-client-cli from v0.5.0 of master repository https://github.com/ARMmbed/mbed-client-cli
@artokin, thank you for your changes. |
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.
Other than the default buffer size, LGTM.
Glad to see there are some new features for this super useful framework 👍
#else | ||
#define MAX_LINE 2000 | ||
#ifndef MBED_CONF_CMDLINE_MAX_LINE_LENGTH | ||
#define MBED_CONF_CMDLINE_MAX_LINE_LENGTH 2000 |
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.
Typo? This is a ridiculously large default buffer size and the mbed_lib.json
states this:
"defaults to 200 when not set"
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.
The lib-file is actually incorrect in this case. That is valid value for complex automation tests.
Resolves #13438 |
Decrease maximun line length from 2000 to 200 to reduce heap usage.
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.
LGTM
I would claim that changing the default from 2000 to 200 is a breaking change and not appropriate for patch-release. It is easy to configure it to smaller values for specific use-cases, or just enable the |
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.
Please revert the buffer-change as that can be unexpected breaking change for some of the users of this library.
For bigger Mbed OS release it might be appropriate to enable for. ex. the use_minimum_set by default which does bring significant RAM/ROM savings, as this was optimised specifically for Mbed OS Ice-tea tests.
Do not chnage default line length as it is a breaking chnage. Library configuration can be used to adjust max lien length.
Pull request has been modified.
Thanks @teetak01 for detecting this. The MAX_LINE_LENGTH change is now reverted. |
The default buffer size should be highlighted in the documentation to prevent other developers from spending hours debugging the silent failures it can produce on more constrained targets. I also think if we plan on changing the default setting in the future we should put some sort of build warning (like for deprecated APIs) so the change is anticipated. |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Update mbed-client-cli from v0.5.0 of master repository https://github.com/ARMmbed/mbed-client-cli
This PR improves module configuration and may fix issue: #13438
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers