Skip to content
Snippets Groups Projects
Commit 7f2ef09a authored by Emanuele Aina's avatar Emanuele Aina
Browse files

package-source-builder: APT debugging to catch hash mismatches

We keep getting hard-to-debug hash mismatches when downloading packages with
APT, like this one in the https://gitlab.apertis.org/pkg/target/ostree/-/jobs/189090
GitLab pipeline:

    Err:94 https://repositories.apertis.org/apertis v2020dev0/target amd64 libsystemd-dev amd64 241-5co3bv2020dev0b1
      Hash Sum mismatch
      Hashes of expected file:
       - SHA256:41d1ccfd064d8e7aafd19d031f0f35e350279dec3e46c2d6323b9a70159a5bd4
       - SHA1:161fff18c277d0b8bda8a80be7a433e8807aca13 [weak]
       - MD5Sum:2ae73e29e95daa715d07ac2b1ca78412 [weak]
       - Filesize:320672 [weak]
      Hashes of received file:
       - SHA256:bba2cd8458b872069ec6697f2ec23ee47ab5e285d6627f96b6d44914d61c0f14
       - SHA1:384222001e9c4a63552e0017da7aadee5894344b [weak]
       - MD5Sum:63b6130dcff030abf9c75a91074b6731 [weak]
       - Filesize:320672 [weak]
      Last modification reported: Thu, 15 Aug 2019 18:46:42 +0000
    Get:95 https://repositories.apertis.org/apertis v2020dev0/target amd64 libyaml-0-2 amd64 0.2.1-1ba1 [49.2 kB]
    Get:96 https://repositories.apertis.org/apertis v2020dev0/development amd64 python3-yaml amd64 3.13-2bv2020dev0b1 [121 kB]
    E: Failed to fetch https://repositories.apertis.org/apertis/pool/target/s/systemd/libsystemd-dev_241-5co3bv2020dev0b1_amd64.deb  Hash Sum mismatch
       Hashes of expected file:
        - SHA256:41d1ccfd064d8e7aafd19d031f0f35e350279dec3e46c2d6323b9a70159a5bd4
        - SHA1:161fff18c277d0b8bda8a80be7a433e8807aca13 [weak]
        - MD5Sum:2ae73e29e95daa715d07ac2b1ca78412 [weak]
        - Filesize:320672 [weak]
       Hashes of received file:
        - SHA256:bba2cd8458b872069ec6697f2ec23ee47ab5e285d6627f96b6d44914d61c0f14
        - SHA1:384222001e9c4a63552e0017da7aadee5894344b [weak]
        - MD5Sum:63b6130dcff030abf9c75a91074b6731 [weak]
        - Filesize:320672 [weak]
       Last modification reported: Thu, 15 Aug 2019 18:46:42 +0000

It also happens on Jenkins and has been intermittently reproduced on developer machines.

Only APT seems to be affected, so enable as much debugging we can to try to catch it.

See https://phabricator.collabora.com/T15071

 for more information.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 3e3d4065
No related branches found
No related tags found
1 merge request!66package-source-builder: APT debugging to catch hash mismatches
......@@ -22,7 +22,15 @@ set -ex
export DEBIAN_FRONTEND=noninteractive
apt-get -qy update
apt-get -qy -o APT::Get::Build-Dep-Automatic=yes build-dep "$(pwd)"
apt-get -qy -o APT::Get::Build-Dep-Automatic=yes \
-o Debug::pkgAcquire=yes \
-o Debug::pkgAcquire::Worker=yes \
-o Debug::pkgAcquire::Auth=yes \
-o Debug::Acquire::https=yes \
-o Debug::Acquire::http=yes \
-o Debug::Hashes=yes \
-o Debug::BuildDeps=yes \
build-dep "$(pwd)"
dpkg-checkbuilddeps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment