-
Notifications
You must be signed in to change notification settings - Fork 772
add test to enforce SHA256 checksums in touched files in pull requests to develop (REVIEW) #5005
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
Conversation
|
We should get this merged ASAP... Only blocker is letting @migueldiascosta Are you up for helping out with this (both this PR & enhancing |
|
@boegel enhancing |
|
@migueldiascosta Yes, basically exactly that. ;) |
|
@boegel wouldn't it be better to define a per-easyconfig function that both |
|
@migueldiascosta Not sure what you mean... Like a method in the I do understand that it's a lot easier to implement through |
… PRs + avoid duplicate code
|
This should be good to go now... Proof of concept test in boegel#40, which results in failing tests because of purposefully tweaking easyconfig to trigger errors (see boegel@505d512): (see also https://travis-ci.org/boegel/easybuild-easyconfigs/jobs/424251294) So everything seems to be working as expected... @migueldiascosta, @vanzod: please review? It's time we get this merged, it should hopefully safe some time reviewing PRs since it should empower contributors more to get PRs good to go based on automated feedback... |
migueldiascosta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm (tested it locally, setting the travis environment variables, worked as advertised)
|
🎉 |
Merging this will make Travis enforce having SHA256 checksums for sources & patches in all easyconfigs touched by future PRs, including for extensions in Python, R, Perl easyconfigs...
Before we merge this, we should probably make it a bit less painful by:
eb --check-stylealso complain about missing SHA256 checksums--check-contrib, seeadd --check-contrib CLI option easybuild-framework#2551eb --inject-checksumsto avoid the need to manually add/adjust checksums in easyconfigsadd support for 'eb --inject-checksums' easybuild-framework#2286(proof-of-concept in
#5001boegel#40)edit: now requires
easybuilders/easybuild-framework#2551