Bug 1460475 - Upgrade python-zstandard in image_builder; r?dustin
Version 0.9.0 bundles a newer version of the zstandard library, which
is a little faster and has a few minor bug fixes (none that we were
likely hitting, however).
MozReview-Commit-ID: 9YgSZ0G41eg
--- a/taskcluster/docker/image_builder/download-and-compress
+++ b/taskcluster/docker/image_builder/download-and-compress
@@ -4,17 +4,17 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import sys
import time
import requests
import requests_unixsocket
-import zstd
+import zstandard as zstd
# Allow requests to fetch from UNIX domain sockets.
requests_unixsocket.monkeypatch()
def download_and_compress(url, path, level):
r = requests.get(url, stream=True)
--- a/taskcluster/docker/image_builder/setup.sh
+++ b/taskcluster/docker/image_builder/setup.sh
@@ -34,27 +34,27 @@ chmod +x /usr/local/bin/download-and-com
mkdir -p /builds/worker/workspace
# Install python-zstandard.
(
cd /setup
tooltool_fetch <<EOF
[
{
- "size": 463794,
+ "size": 558068,
"visibility": "public",
- "digest": "c6ba906403e5c18b374faf9f676b10f0988b9f4067bd6c52c548d7dee58fac79974babfd5c438aef8da0a5260158116db69b11f2a52a775772d9904b9d86fdbc",
+ "digest": "72b1fc542e5af36fc660d7b8d3882f0a25644d3b66316293717aabf9ba8cf578e49e2cf45e63e962c5535ec1f8b3e83248c379d34b0cab2ef1a950205ad153ce",
"algorithm": "sha512",
- "filename": "zstandard-0.8.0.tar.gz"
+ "filename": "zstandard-0.9.0.tar.gz"
}
]
EOF
)
-/usr/bin/pip -v install /setup/zstandard-0.8.0.tar.gz
+/usr/bin/pip -v install /setup/zstandard-0.9.0.tar.gz
# python-pip only needed to install python-zstandard. Removing it removes
# several hundred MB of dependencies from the image.
apt-get purge -y python-pip
# Purge apt-get caches to minimize image size
apt-get auto-remove -y
apt-get clean -y