Skip to content

Look for sha256sum checksums during shed_lint#539

Merged
jmchilton merged 2 commits intogalaxyproject:masterfrom
peterjc:lint_sha256
Aug 17, 2016
Merged

Look for sha256sum checksums during shed_lint#539
jmchilton merged 2 commits intogalaxyproject:masterfrom
peterjc:lint_sha256

Conversation

@peterjc
Copy link
Contributor

@peterjc peterjc commented Aug 17, 2016

Looks at the download_by_url and download_file actions only, missing sha256sum is a warning, bad sha256sum is an error (e.g. not 64 characters, or non-hex characters present).

A future --verify switch could download the file and confirm the checksum matches.

TODO: Test case with a bad sha256sum entry (e.g. extra char)

@jmchilton
Copy link
Member

The failing test case looks legitimate - I'm fine with this change but devteam and iuc repos are going to start failing Travis checks after we merge this right? @martenson, @nsoranzo, @bgruening, @erasche are we okay with that?

@hexylena
Copy link
Member

hexylena commented Aug 17, 2016

👍 I want to know if my downloads are failing hash checks.

Edit: oh, does this fail things with a missing sha256?
Edit2: They're warnings, we test with --fail_level error, so should be fine

@martenson
Copy link
Member

martenson commented Aug 17, 2016

I did the exact same steps in my brain as @erasche did. 👍

@bgruening
Copy link
Member

👍 for me, we will fix travis if this is the case. Nice change Peter!

@peterjc
Copy link
Contributor Author

peterjc commented Aug 17, 2016

Copy and paste error in the test cases, one of the checksums is the wrong one...

Looks at the download_by_url and download_file actions only,
missing sha256sum is a warning, bad sha256sum is an error
(e.g. not 64 characters, or non-hex characters present).

A future --verify switch could download the file and confirm
the checksum matches.
@jmchilton jmchilton merged commit 6755dbe into galaxyproject:master Aug 17, 2016
@jmchilton
Copy link
Member

Awesome sauce - thanks! This didn't make the 0.28.0 cut - but it will be 0.29.0. Is there urgency - I can do a release if so?

@peterjc
Copy link
Contributor Author

peterjc commented Aug 17, 2016

Thanks John - there's no rush from my personal perspective.

@peterjc peterjc deleted the lint_sha256 branch August 17, 2016 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants