Skip to content

feat: library folder name priority promotion for -main suffix #2233

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 8 commits into from
Jul 4, 2023
Merged

feat: library folder name priority promotion for -main suffix #2233

merged 8 commits into from
Jul 4, 2023

Conversation

RodrigoDornelles
Copy link
Contributor

@RodrigoDornelles RodrigoDornelles commented Jun 28, 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?

adds support for libraries downloaded from git repositories as zip where the branch name is main

What is the current behavior?

only master branch prioritized.

related in #2226

What is the new behavior?

in addition to the main branch being considered it has higher priority than master.

Other information

I didn't quite understand how to implement the tests, with a little help I can finish this part.

I added weight +10 in relation to master based on optmized architecture above wildcard, if you have a recommendation for another amount I will make this adjustment.

@CLAassistant
Copy link

CLAassistant commented Jun 28, 2023

CLA assistant check
All committers have signed the CLA.

@RodrigoDornelles RodrigoDornelles changed the title feat: library folder name priority promotion for -main suffix #2226 feat: library folder name priority promotion for -main suffix Jun 28, 2023
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.06 ⚠️

Comparison is base (fe6d749) 63.02% compared to head (5dcaff0) 62.97%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2233      +/-   ##
==========================================
- Coverage   63.02%   62.97%   -0.06%     
==========================================
  Files         220      220              
  Lines       19499    19501       +2     
==========================================
- Hits        12290    12280      -10     
- Misses       6128     6137       +9     
- Partials     1081     1084       +3     
Flag Coverage Δ
unit 62.97% <100.00%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
arduino/libraries/librariesresolver/cpp.go 92.76% <100.00%> (+0.09%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself topic: build-process Related to the sketch build process labels Jun 29, 2023
Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

I've added a suggestion.

Could you update also the unit tests here and here?

@cmaglie
Copy link
Member

cmaglie commented Jul 3, 2023

I didn't quite understand how to implement the tests, with a little help I can finish this part.

For updating the tests, just add the missing case Calculus Lib-main here, and update the two tests using it accordingly, you can just copy/paste and insert the new case in the middle, they are just checking the priority order.

@RodrigoDornelles RodrigoDornelles requested a review from cmaglie July 3, 2023 19:06
@per1234 per1234 linked an issue Jul 4, 2023 that may be closed by this pull request
3 tasks
@cmaglie cmaglie merged commit 0f516bb into arduino:master Jul 4, 2023
@cmaglie cmaglie added this to the Arduino CLI 0.34.0 milestone Jul 4, 2023
@cmaglie cmaglie self-assigned this Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: build-process Related to the sketch build process 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.

Add library folder name priority promotion for -main suffix
4 participants