-
-
Notifications
You must be signed in to change notification settings - Fork 267
[IMP] Add checksum verification for wkhtmltox #452
base: master
Are you sure you want to change the base?
Conversation
travis/travis_install_nightly
Outdated
|
||
cd ${HOME}/maintainer-quality-tools/travis/ && | ||
wkhtmltox=$(wget -qO- -t 1 --timeout=240 https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz) && | ||
WKHTMLTOX_CHECKSUM='049b2cdec9a8254f0ef8ac273afaf54f7e25459a273e27189591edc7d7cf29db' |
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.
From @moylop260 in #450 (comment)
I'm not sure of use this environment variable just for webkit.
I mean, we could use a wget_custom with a dictionary of checksum and url used from MQT.
But IMHO this is other feature (then other PR).Could we use just the change of the URL like as main 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.
This isn't being exported though, so it doesn't survive past the execution of this script - or am I wrong?
The alternative is just checking the sum against a string, which I do not feel is as clear.
I mean, we could use a wget_custom with a dictionary of checksum and url used from MQT.
IMO this is another feature in itself. We currently support one version of wkhtmltopdf according to what I see here.
5961f8d
to
857fcb8
Compare
Waiting @moylop260's feedback |
Is possible skip the checksum validation if the environment variable is missing? |
@moylop260 - Which environment variable? The checksum validation does not take place if the env var for the wkhtmltox version is |
Could re-use current environment of TESTS=1 from travis.yml to set the following variables?
|
Hey @moylop260 - sorry, but I'm not sure I understand. Are you proposing that we just default to the
|
sorry for confusion I'm not talking about a change of behaviour |
@moylop260 - Hmmm so you're proposing that we test an invalid checksum? Do we have a way to check if something is installed in our environment using our Travis file? |
@moylop260 - I am unclear on how to proceed on this. Do you have a suggestion on my above? |
Is there a way to skip checksum validation if is not defined? |
We could do that by just not checking the checksum if |
We will need change all |
This adds checksum verification to the wkhtmltox download, as discussed in #450.
Depends on: