Skip to content
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

Add programmer field to sketch profile and --profile flag to debug command #2505

Merged
merged 13 commits into from
Feb 5, 2024

Conversation

MatteoPologruto
Copy link
Contributor

@MatteoPologruto MatteoPologruto commented Jan 17, 2024

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?

Feature

What is the current behavior?

The programmer information is not included in the profile and it is not possible to use the --profile flag to run the debug command.

What is the new behavior?

A profile can have its programmer, which will be used in upload and debug commands when the --profile flag is passed or a default profile is set. It can be overwritten using the --programmer flag.

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

No

Other information

@MatteoPologruto MatteoPologruto added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Jan 17, 2024
@MatteoPologruto MatteoPologruto self-assigned this Jan 17, 2024
@MatteoPologruto MatteoPologruto linked an issue Jan 17, 2024 that may be closed by this pull request
3 tasks
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (47645e9) 68.90% compared to head (1f36816) 68.95%.

Files Patch % Lines
commands/sketch/set_defaults.go 50.00% 2 Missing and 1 partial ⚠️
commands/upload/upload.go 62.50% 2 Missing and 1 partial ⚠️
internal/arduino/sketch/profiles.go 80.00% 2 Missing and 1 partial ⚠️
internal/cli/board/attach.go 78.57% 3 Missing ⚠️
internal/cli/debug/debug.go 88.46% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2505      +/-   ##
==========================================
+ Coverage   68.90%   68.95%   +0.05%     
==========================================
  Files         204      204              
  Lines       20448    20517      +69     
==========================================
+ Hits        14089    14148      +59     
- Misses       5209     5216       +7     
- Partials     1150     1153       +3     
Flag Coverage Δ
unit 68.95% <85.29%> (+0.05%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MatteoPologruto MatteoPologruto marked this pull request as ready for review January 17, 2024 16:29
@LEKPHET-KUNSUE
Copy link

LEKPHET-KUNSUE commented Feb 4, 2024

Copy link

@LEKPHET-KUNSUE LEKPHET-KUNSUE left a comment

Choose a reason for hiding this comment

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

  • done commiting

coment yes or no

@MatteoPologruto MatteoPologruto merged commit 4a5585e into arduino:master Feb 5, 2024
104 checks passed
@MatteoPologruto MatteoPologruto deleted the profile-programmer branch February 5, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add programmer to the sketch profile
3 participants