Skip to content

Conversation

@mirkoCrobu
Copy link
Contributor

Motivation

closes #738
The logic that updates the platform should make sure we do not upgrade above the 1.x.x release.
In other words there should be a variable specifying the maximum major version that will be reported as an update.

This is to avoid auto-updating to a breaking change.>

Change description

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@mirkoCrobu mirkoCrobu self-assigned this Dec 10, 2025
@mirkoCrobu mirkoCrobu added the enhancement New feature or request label Dec 10, 2025
@mirkoCrobu mirkoCrobu requested a review from a team December 10, 2025 16:18
@mirkoCrobu mirkoCrobu requested review from a team, Xayton and lucarin91 January 8, 2026 08:21
Copy link
Contributor

@lucarin91 lucarin91 left a comment

Choose a reason for hiding this comment

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

Check out the comment below; in that way, we could simplify the code and take full advantage of the semver library.
We should then check that the installation operation on the Arduino platform will behave like the upgrade. For doing that, we could manually install an old version of the platform and then try to upgrade it with the app-cli command or with the http api. For instance, something like

arduino-cli core uninstall arduino:zephyr
arduino-cli core install arduino:[email protected]
arduino-app-cli system update

After that, we should have again zephyr 0.52.0 (the last version up to today)

@mirkoCrobu mirkoCrobu requested a review from lucarin91 January 12, 2026 16:17
@mirkoCrobu
Copy link
Contributor Author

test on board : passed

  1. arduino-cli core list(0.52.0)
  2. arduino-cli core uninstall arduino:zephyr
  3. arduino-cli core install arduino:[email protected]
  4. arduino-app-cli system update
  5. arduino-cli core list

final result:
ID Installed Latest Name
arduino:zephyr 0.52.0 0.52.0 Arduino UNO Q Board

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants