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

Make archive validation error messages friendlier #1188

Merged

Conversation

@ubergesundheit
Copy link
Contributor

@ubergesundheit ubergesundheit commented Feb 16, 2021

Please check if the PR fulfills these requirements

  • 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)
  • What kind of change does this PR introduce?
    User experience improvement
  • What is the current behavior?
    Trying to install packages with core install <fqdn> is not helpful when:

  • Index file has incorrect size for a package file

  • Index file has no checksum for a package file

  • What is the new behavior?
    This PR improves the errors printed when the package file contains incorrect values

See how to contribute

@ubergesundheit
Copy link
Contributor Author

@ubergesundheit ubergesundheit commented Feb 17, 2021

Seems I should've run the tests locally. I'll fix everything later

@ubergesundheit
Copy link
Contributor Author

@ubergesundheit ubergesundheit commented Feb 22, 2021

@cmaglie @silvanocerza sorry for pinging you, but I could not find any information who to tag in PR and I think this PR adds useful changes.

Please let me know if I need to change something. Thanks :)

@ubidefeo
Copy link

@ubidefeo ubidefeo commented Feb 22, 2021

hey @ubergesundheit
we have a few days of heavy workload ahead but I'll make sure this ends up being looked at next week at the latest

@ubidefeo ubidefeo requested review from silvanocerza and cmaglie Feb 22, 2021
Copy link
Contributor

@silvanocerza silvanocerza left a comment

Nice! Thanks for the contribution, better error handling is always welcome. :)

@silvanocerza silvanocerza merged commit 59b6277 into arduino:master Feb 23, 2021
6 checks passed
6 checks passed
verify-links
Details
test-matrix (ubuntu-20.04)
Details
test-matrix (windows-latest)
Details
test-matrix (macOS-latest)
Details
create-test-artifacts
Details
license/cla Contributor License Agreement is signed.
Details
@silvanocerza
Copy link
Contributor

@silvanocerza silvanocerza commented Feb 23, 2021

Merged! Thanks for the contribution, looking forward to future ones. :)

@ubergesundheit ubergesundheit deleted the ubergesundheit:improve-index-validation-messages branch Feb 23, 2021
silvanocerza added a commit that referenced this pull request Feb 25, 2021
* Make archive validation error messages friendlier

* change behaviour a little + fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants