-
Notifications
You must be signed in to change notification settings - Fork 118
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
Allowing downloadable checksums and different checksum formats #1458
Allowing downloadable checksums and different checksum formats #1458
Conversation
a5837e1
to
824f981
Compare
/test metal3-dev-env-integration-test-ubuntu-main |
824f981
to
e9d7bc3
Compare
/retest |
/test metal3-dev-env-integration-test-ubuntu-main |
e9d7bc3
to
32a8064
Compare
/test metal3-dev-env-integration-test-ubuntu-main |
/retest |
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
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.
A minor style nit, otherwise looks solid improvement.
Also,
/hold
for a sec to let me test the various scenarios. This seems to handle both direct and multi-arch files, so expecting a quick pass.
32a8064
to
642fb42
Compare
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.
Whitespace nits + actual issues with Tilt verification.
checksum="$(curl -SsL "${checksum}")" | ||
fi | ||
|
||
if [[ "${checksum}" =~ ${dlname,,} ]]; then |
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.
This does not work for Tilt.
- We download Tilt's installation script, and the checksum is for release tarball. It cannot find install.sh on the checksum file, and skips it.
- It does not return failure for this case, and happily goes and installs TIlt anyways.
We either need to change the download itself to the release tarball or use hardcoded SHA for the script. Using hardcoded SHA wouldn't be too bad, as it is the same script regardless of arch.
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.
Ah, I had missed that we use a different install method for tilt. I can change it back to the pinned SHA for now, but changing the installation method shouldn't be too hard either if we want that instead.
642fb42
to
dc86a7f
Compare
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.
One whitespace mishap, but this is good to merge otherwise.
/approve
/hold for the whitespace fix
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tuminoid The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Minna Färm <[email protected]>
dc86a7f
to
05f6982
Compare
/test metal3-dev-env-integration-test-ubuntu-main metal3-centos-e2e-integration-test-release-1-8 |
/lgtm |
This PR changes most hardcoded checksums in this repo to downloadable ones. The exception is krew as there is no checksum available. Support for checksums provided in a checksums.txt file is also added.
Also renaming some variables so that if need comes, it'll be easier to add different checksum formats.