Skip to content

Avoid lib install command hanging indefinitely in dependencies resolution.#2192

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
May 31, 2023

Conversation

cmaglie
Copy link
Member

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?

Avoid the dependencies resolver hanging in a very long loop trying to find an impossible libraries dependencies resolution.
A similar issue has been solved previously: #2140. This PR improves the previous one.

What is the current behavior?

The lib install command seems stuck while in reality, it is just searching for a dependency solution.

What is the new behavior?

The lib install command returns an error early if a dependency is clearly not available.

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

No

Other information

Code patch here bugst/relaxed-semver#15
Fix#2135

@cmagliecmaglie self-assigned this May 30, 2023
@cmagliecmaglie added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels May 30, 2023
@codecov
Copy link

codecovbot commented May 30, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.05⚠️

Comparison is base (15a5e88) 62.89% compared to head (cfdd6cc) 62.85%.

Additional details and impacted files
@@ Coverage Diff @@## master #2192 +/- ## ========================================== - Coverage 62.89% 62.85% -0.05%  ========================================== Files 220 221 +1 Lines 19477 19463 -14 ========================================== - Hits 12251 12234 -17 - Misses 6141 6145 +4 + Partials 1085 1084 -1 
FlagCoverage Δ
unit62.85% <ø> (-0.05%)⬇️

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

see 20 files 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.

@cmagliecmaglie merged commit cc9eb82 into arduino:masterMay 31, 2023
@cmagliecmaglie deleted the fix_lib_deps_calculator branch May 31, 2023 07:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project
2 participants
@cmaglie@alessio-perugini
close