[tor-bugs] #22768 [Internal Services/Service - jenkins]: Add building Tor with Rust support to Jenkins

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Dec 5 03:59:58 UTC 2017


#22768: Add building Tor with Rust support to Jenkins
-------------------------------------------------+-------------------------
 Reporter:  isis                                 |          Owner:  weasel
     Type:  enhancement                          |         Status:
                                                 |  needs_review
 Priority:  Medium                               |      Milestone:
Component:  Internal Services/Service - jenkins  |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  rust, tor-ci                         |  Actual Points:
Parent ID:                                       |         Points:  1
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------
Changes (by isis):

 * status:  new => needs_review


Comment:

 There is this issue with cargo in the jenkins builds:
 https://jenkins.torproject.org/job/tor-ci-linux-master-
 rust/ARCHITECTURE=i386,SUITE=sid/24/console where it spits out `error:
 error: attempting to make an HTTP request, but --frozen was specified`.

 This is due to part of the cargo source code,
 `init_git_transports(config);` in the `execute` function of
 `cargo.git/src/bin/cargo.rs`, trying to obtain a copy of the registry (the
 git repo that tells you about which crates are published). Alex Crichton
 realised that it's due to building in a directory which doesn't have a
 `cargo` subdirectory (nor do any of its parents), which is due to us doing
 jenkins builds out-of-tree. The solution, or at least a workaround, is to
 do `cp -aR build-tree/src/rust/.cargo ~/` after running
 `../tor/configure`.

 Here is a [https://github.com/isislovecruft/tor-jenkins-
 tools/commit/f8af924a75902f261874fe1670a56d63cef942eb patch].

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22768#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list