Uh oh!
There was an error while loading. Please reload this page.
Better version handling for Arduino - #11043
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
guberti
commented
Apr 19, 2022
Thanks for the comments @gromero! I've addressed them all, and made a small change to the way we compare versions (we now use |
gromero
left a comment
There was a problem hiding this comment.
@guberti Thanks for the fixes and for adding the test for warning_as_error! I agree on using packaging for the version checks. I think I'll use it also for Zephyr :)
I just have one comment - a nit - but won't hold the change on it. Feel free to change it if it makes sense of leave it unchanged.
Finally, out of curiosity, do you know why these Arduino tests are kept in template_project/tests instead of in tests/micro/arduino with the other tests? Should we move everything into tests/micro/arduino?
Uh oh!
There was an error while loading. Please reload this page.
guberti
commented
Apr 19, 2022
The original thinking was that unit tests would live in |
gromero
commented
Apr 19, 2022
Got it! Yeah, that's OOS for this PR, I was just wondering about that organization. 👍 |
* Fix bug allowing microTVM to be used with Arduino version v0.20 and above (see changes to _parse_connected_boards) and adds relevant unit tests. * Only perform version check when calling build or flash (things that actually require arduino-cli), and adds relevant unit tests. * Only raise a warning if the arduino-cli version present is below the min version (previously any version other than v0.18 would cause an error). * Change version comparison to use version.check, like the rest of TVM
* Fix bug allowing microTVM to be used with Arduino version v0.20 and above (see changes to _parse_connected_boards) and adds relevant unit tests. * Only perform version check when calling build or flash (things that actually require arduino-cli), and adds relevant unit tests. * Only raise a warning if the arduino-cli version present is below the min version (previously any version other than v0.18 would cause an error). * Change version comparison to use version.check, like the rest of TVM
This pull request contains three small changes:
microTVMto be used with Arduino versionv0.20and above (see changes to_parse_connected_boards) and adds relevant unit tests.buildorflash(things that actually requirearduino-cli), and adds relevant unit tests.arduino-cliversion present is below the min version (previously any version other thanv0.18would cause an error).version.check, like the rest of TVM