-
-
Notifications
You must be signed in to change notification settings - Fork 268
[FIX] Switch to wkhtmltopdf GitHub URI #450
Conversation
Look #449 instead |
Thanks @pedrobaeza I'm going to keep this open & update once the Github ticket is closed on their end. The solution in that ticket is to start pinning the binaries directly to the Github releases along with the source, so I will then change this to that URI instead for more stability. |
OK, good solution. |
And if GitHub goes down, maybe we can put the original one as mirror... |
If Github is down, our builds are broken anyways 😉 |
travis/travis_install_nightly
Outdated
@@ -83,7 +83,7 @@ if [ "$clone_result" != "0" ]; then | |||
fi; | |||
|
|||
echo "Install webkit (wkhtmltopdf) patched" | |||
(cd ${HOME}/maintainer-quality-tools/travis/ && wget -qO- https://downloads.wkhtmltopdf.org/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz | tar -xJ --strip-components=2 wkhtmltox/bin/wkhtmltopdf) | |||
(cd ${HOME}/maintainer-quality-tools/travis/ && wget -qO- https://github.com/graingert/wkhtmltopdf/releases/download/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz | tar -xJ --strip-components=2 wkhtmltox/bin/wkhtmltopdf) |
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.
please publish this to your own release page.
6beaa36
to
4e174e1
Compare
Looks like they were posted on the official releases page, so we're good to go from an official perspective it seems |
FYI now wkhtmltopdf is using release from github, for latest version:
And I saw that they are discussing create the old ones too: |
4e174e1
to
0e925d3
Compare
@moylop260 - change made in 0e925d3 |
@@ -84,7 +84,7 @@ fi; | |||
|
|||
if [ "${WKHTMLTOPDF_VERSION}" != "" ]; then | |||
echo "Install webkit (wkhtmltopdf) patched version ${WKHTMLTOPDF_VERSION}" | |||
(cd ${HOME}/maintainer-quality-tools/travis/ && wget -qO- -t 1 --timeout=240 https://downloads.wkhtmltopdf.org/0.12/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz | tar -xJ --strip-components=2 wkhtmltox/bin/wkhtmltopdf) | |||
(cd ${HOME}/maintainer-quality-tools/travis/ && wget -qO- -t 1 --timeout=240 https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox-${WKHTMLTOPDF_VERSION}_linux-generic-amd64.tar.xz | tar -xJ --strip-components=2 wkhtmltox/bin/wkhtmltopdf) |
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.
remember to check the shasum!
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.
👍
Thanks!
761134a
to
1436c18
Compare
Oh wow I forgot how many builds there are. @moylop260 - do you know offhand which one would be attempting the wkhtmltox download? |
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` && | ||
sha256sum=`wget -qO- -t 1 --timeout=240 https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/SHA256SUMS` |
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.
no. obviously you need to hardcode the SHASUM values in this codebase.
anyone without LINT_CHEK=1 |
I like the idea of bundling wkhtmltopdf along with MQT. |
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.
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.
For me, this PR is valid and enough with the following change: 0e925d3
Ok so we'll keep the logical changesets separate & I will submit PRs for the other changes here. This is now just 0e925d3, which is simply the URI update.
|
0e925d3
to
d5ed3cc
Compare
@dreispt - I'm thinking if the releases themselves are hosted officially on Github, hosting them ourselves is probably not worth it. We're working under the same point of failure (GitHub), so I think that it's worth leaving the maintenance up to someone else and implementing the checksum validation in #452 |
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.
Merging this one for the builds that need wkhtmltopdf.
Our CI is failing due to wkhtmltopdf/wkhtmltopdf#3518. I propose that we switch to a Github mirror temporarily, then we can switch back once I get the notification on the ticket.
An alternative, which may actually be better, is to host our wkhtmltopdf inside of MQT & not deal with the remote downloads. This isn't the first time we've had issues with wkhtmltopdf installations.