[ 
https://issues.apache.org/jira/browse/ARROW-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471046#comment-16471046
 ] 

Chao Sun commented on ARROW-2563:
---------------------------------

The poor caching was caused by the {{--force}} flag which ignores the cached 
cargo. In the latest PR I removed it and reduced the time to around 6-8 min. 
[~pitrou]: can you take a look? Thanks.

> [Rust] Poor caching in Travis-CI
> --------------------------------
>
>                 Key: ARROW-2563
>                 URL: https://issues.apache.org/jira/browse/ARROW-2563
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Continuous Integration, Rust
>            Reporter: Antoine Pitrou
>            Assignee: Chao Sun
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Since the Rust project isn't at the repo root, Travis-CI won't compiled cache 
> artifacts by default. This leads to long CI times as all packages get 
> recompiled (see https://docs.travis-ci.com/user/caching/#Rust-Cargo-cache for 
> what gets cached).
> In https://travis-ci.org/pitrou/arrow/jobs/376859806 I tried the following:
> {code}
> export CARGO_TARGET_DIR=$TRAVIS_BUILD_DIR/target
> {code}
> and after a first run, the build time went down to 2 minutes (from 15-18 
> minutes).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to