Skip to content

[skip-changelog] Recover from interrupted builtin tool installation #2107

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

Conversation

MatteoPologruto
Copy link
Contributor

@MatteoPologruto MatteoPologruto commented Mar 14, 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?

Code imperfection fix

What is the current behavior?

The recovery from an interrupted builtin tool installation must be manually performed by deleting the empty tool directory.

What is the new behavior?

If the installDir of a tool is an empty directory, the tool is not considered as installed, so it will be downloaded again when necessary.

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

No

@MatteoPologruto MatteoPologruto added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Mar 14, 2023
@MatteoPologruto MatteoPologruto self-assigned this Mar 14, 2023
@MatteoPologruto MatteoPologruto linked an issue Mar 14, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02 🎉

Comparison is base (5f03cb9) 34.95% compared to head (44513af) 34.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2107      +/-   ##
==========================================
+ Coverage   34.95%   34.98%   +0.02%     
==========================================
  Files         232      232              
  Lines       20570    20574       +4     
==========================================
+ Hits         7190     7197       +7     
+ Misses      12531    12529       -2     
+ Partials      849      848       -1     
Flag Coverage Δ
unit 34.98% <100.00%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
arduino/cores/tools.go 88.88% <100.00%> (+0.42%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Copy link
Contributor

@umbynos umbynos left a comment

Choose a reason for hiding this comment

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

Left some comments

@MatteoPologruto MatteoPologruto force-pushed the recover-monitor-installation branch 2 times, most recently from 20bb764 to 12e9936 Compare March 21, 2023 09:27
@MatteoPologruto MatteoPologruto force-pushed the recover-monitor-installation branch from 12e9936 to 44513af Compare March 22, 2023 08:18
@MatteoPologruto MatteoPologruto merged commit 1ce4abe into arduino:master Mar 22, 2023
@MatteoPologruto MatteoPologruto deleted the recover-monitor-installation branch March 22, 2023 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recover from interrupted discovery/monitor installation
2 participants