Page MenuHomeSoftware Heritage

Require Rust-free versions of Breezy
ClosedPublic

Authored by vlorentz on Oct 10 2022, 2:25 PM.

Details

Summary
  1. version 3.3.0 introduces Rust code, which requires rustc versions newer than available in Debian 11
  2. For some reason, pip does not even try to install setuptools-rust on the CI, even though it's a build dependency of Breezy https://jenkins.softwareheritage.org/blue/organizations/jenkins/DDOC%2Fdev/detail/dev/2497/pipeline

Diff Detail

Repository
rDLDBZR BZR loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz retitled this revision from Require Rust-free versions of Breeze to Require Rust-free versions of Breezy.Oct 10 2022, 2:27 PM

Build is green

Patch application report for D8647 (id=31225)

Rebasing onto 58aeb543ba...

Current branch diff-target is up to date.
Changes applied before test
commit aaca5b31c844214e349f6177d494277c6df95ea7
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Oct 10 14:24:38 2022 +0200

    Require Rust-free versions of Breeze
    
    1. version 3.3.0 introduces Rust code, which requires rustc versions newer
       than available in Debian 11
    2. For some reason, pip does not even try to install setuptools-rust on
       the CI, even though it's a build dependency of Breezy

See https://jenkins.softwareheritage.org/job/DLDBZR/job/tests-on-diff/57/ for more details.

anlambert added a subscriber: anlambert.

For the record, we can install rust this way on buster but I agree it is better pinning breezy.

14:23 $ git diff
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 7fa297a..08cda1c 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -62,6 +63,10 @@ RUN sh /tmp/nix_install --daemon --no-channel-add --daemon-user-count 1
 RUN useradd -md /srv/softwareheritage -s /bin/bash swh
 USER swh
 
+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rust_install
+RUN sh /tmp/rust_install -y
+ENV PATH="/srv/softwareheritage/.cargo/bin:${PATH}"
+
 RUN python3 -m venv /srv/softwareheritage/venv
 ENV PATH="/srv/softwareheritage/venv/bin:${PATH}"
This revision is now accepted and ready to land.Oct 10 2022, 2:34 PM

(that's not a pin btw, new 3.2.x versions would be used automatically)

This revision was landed with ongoing or failed builds.Oct 10 2022, 2:36 PM
This revision was automatically updated to reflect the committed changes.

Build is green

Patch application report for D8647 (id=31227)

Rebasing onto 3c25542212...

First, rewinding head to replay your work on top of it...
Fast-forwarded diff-target to base-revision-58-D8647.
Changes applied before test

See https://jenkins.softwareheritage.org/job/DLDBZR/job/tests-on-diff/58/ for more details.