Skip to content

[breaking] Improved compile report / temporary support for profile creation #1745

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

Merged
merged 10 commits into from
Jun 1, 2022

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented May 31, 2022

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?

  • a "compilation report" at the end of the compile command, reporting the libraries and cores used.
  • a new compile flag --profile-dump: it generates a profile snippet to be copy/pasted in sketch.yaml. It can be used to bootstrap profile usage starting from a standard Arduino sketch. This flag is a temporary workaround and it will be deprecated/removed once proper commands for managing profiles are implemented.

Here a screenshot for both:

image

Does this PR introduce a breaking change, and is titled accordingly](https://arduino.github.io/arduino-cli/latest/CONTRIBUTING/#breaking)?
Yes, gRPC CompileResponse structure has changed. More info in the UPGRANDING.md doc.

@cmaglie cmaglie changed the title Improved compile report / temporary support for profile creation [breaking] Improved compile report / temporary support for profile creation May 31, 2022
@cmaglie cmaglie self-assigned this May 31, 2022
@cmaglie cmaglie added type: enhancement Proposed improvement criticality: high Of high impact topic: CLI Related to the command line interface labels May 31, 2022
@cmaglie cmaglie marked this pull request as ready for review June 1, 2022 08:04
@cmaglie cmaglie force-pushed the compilation_report branch from 0e524e7 to 25e6df5 Compare June 1, 2022 09:29
@cmaglie cmaglie requested a review from a team June 1, 2022 10:25
@cmaglie cmaglie force-pushed the compilation_report branch from 84aa1ff to df09be2 Compare June 1, 2022 14:32
@cmaglie cmaglie merged commit d5df436 into arduino:master Jun 1, 2022
@cmaglie cmaglie deleted the compilation_report branch June 1, 2022 14:55
@per1234 per1234 added the topic: code Related to content of the project itself label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criticality: high Of high impact topic: CLI Related to the command line interface topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants