Skip to content

regression: Import fix for compile --input-dir . regression found in #2304 #2305

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 2 commits into from
Sep 11, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Sep 8, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • 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)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

The regression has already been fixed as part of another refactoring:

This PR cherry-picks the fix in the current 0.34.x branch to release a 0.34.2.

What is the current behavior?

arduino-cli compile ... --input-dir . crashes instead of uploading.
Please have a look at #2304 for details.

What is the new behavior?

Upload works as expected.

Does this PR introduce a breaking change, and is titled accordingly?

Other information

Fix #2304

MatteoPologruto and others added 2 commits September 8, 2023 16:45
* Add support for default profile to compile command

* Add support for default profiles to upload command

* Add TestCompileWithDefaultProfile to integration tests

* Get the profile's FQBN if it's not already specified in the request

* Update documentation regarding sketch projects

* Added integration tests for all default_profile cases

* Reverted old sketch_with_profile test

---------

Co-authored-by: Cristian Maglie <[email protected]>
…Port` in `GetPort` (arduino#2297)

* Change GetPort's returned type to rpc.Port

* Use LoadSketch in runUploadCommand
@cmaglie cmaglie added type: imperfection Perceived defect in any part of project topic: CLI Related to the command line interface labels Sep 8, 2023
@cmaglie cmaglie self-assigned this Sep 8, 2023
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch coverage: 72.09% and project coverage change: -0.21% ⚠️

Comparison is base (048415c) 63.22% compared to head (185de43) 63.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##           0.34.x    #2305      +/-   ##
==========================================
- Coverage   63.22%   63.02%   -0.21%     
==========================================
  Files         221      221              
  Lines       19747    19769      +22     
==========================================
- Hits        12485    12459      -26     
- Misses       6164     6201      +37     
- Partials     1098     1109      +11     
Flag Coverage Δ
unit 63.02% <72.09%> (-0.21%) ⬇️

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

Files Changed Coverage Δ
internal/cli/burnbootloader/burnbootloader.go 45.23% <0.00%> (ø)
commands/compile/compile.go 69.18% <40.00%> (-0.69%) ⬇️
commands/upload/upload.go 73.24% <40.00%> (-0.50%) ⬇️
internal/cli/arguments/port.go 46.31% <75.00%> (-0.56%) ⬇️
internal/cli/upload/upload.go 60.80% <75.00%> (+0.11%) ⬆️
internal/cli/arguments/fqbn.go 69.44% <100.00%> (ø)
internal/cli/compile/compile.go 74.08% <100.00%> (+0.64%) ⬆️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

@cmaglie cmaglie merged commit 963c1a7 into arduino:0.34.x Sep 11, 2023
@cmaglie cmaglie deleted the hotfix branch September 11, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: CLI Related to the command line interface type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants