Skip to content

Bugfix: do not overwrite board properties during compile #1820

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 3 commits into from
Aug 2, 2022

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Aug 1, 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?
    Fix a weird behavior of the Arduino CLI when running as a daemon: the board options seem to get "stuck" after the first compile: if a second compile is run with different options then these will be ignored and the options used on the first run are used.
  • What is the new behavior?
    The options are handled correctly.

The tests for the PR has been prepared as part of the new grpc testsuite here:

@cmaglie cmaglie changed the title Bugfix: do not overwrite board properies during compile Bugfix: do not overwrite board properties during compile Aug 1, 2022
@cmaglie cmaglie self-assigned this Aug 1, 2022
@cmaglie cmaglie added priority: high Resolution is a high priority type: imperfection Perceived defect in any part of project topic: CLI Related to the command line interface criticality: high Of high impact labels Aug 1, 2022
@cmaglie cmaglie force-pushed the fix_1614 branch 3 times, most recently from bdabf46 to b1f304e Compare August 1, 2022 17:35
@codecov
Copy link

codecov bot commented Aug 1, 2022

Codecov Report

Merging #1820 (b4a8922) into master (5332ffd) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1820      +/-   ##
==========================================
- Coverage   35.53%   35.50%   -0.04%     
==========================================
  Files         231      230       -1     
  Lines       19543    19532      -11     
==========================================
- Hits         6945     6934      -11     
  Misses      11773    11773              
  Partials      825      825              
Flag Coverage Δ
unit 35.50% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
legacy/builder/container_setup.go 83.92% <ø> (-0.29%) ⬇️
legacy/builder/types/context.go 60.49% <ø> (ø)
legacy/builder/setup_build_properties.go 83.50% <100.00%> (-0.17%) ⬇️
legacy/builder/target_board_resolver.go 79.31% <100.00%> (+5.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5332ffd...b4a8922. Read the comment docs.

@cmaglie cmaglie requested review from per1234 and umbynos August 1, 2022 18:06
Copy link
Collaborator

@matthijskooijman matthijskooijman left a comment

Choose a reason for hiding this comment

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

I had a quick look at the changes and LGTM. No thorough review or testing, though.

@cmaglie cmaglie merged commit 2dd8976 into arduino:master Aug 2, 2022
@cmaglie cmaglie deleted the fix_1614 branch August 2, 2022 13:05
@per1234 per1234 added topic: code Related to content of the project itself topic: gRPC Related to the gRPC interface and removed topic: CLI Related to the command line interface labels Aug 3, 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 priority: high Resolution is a high priority topic: code Related to content of the project itself topic: gRPC Related to the gRPC interface type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unique property definitions from previous compilations for other custom board options persist
4 participants