Comments (6)
It looks like most of that time is spent in Docker containers. Cargo's cache doesn't get copied into them AFAIK, so it will spend the time downloading and compiling every dependency for every arch for every build. Is it enough to cargo build --target <target arch>
, or should/must the tests be run against that arch? If you just wanted a successful build, you could let Travis keep the build cache for a target.
A bandaid I can think of right now is defining a build matrix in the Travis config so each arch is at least built and tested in parallel. I haven't had good luck exposing Cargo caches to Docker containers, but it might worth a shot with a volume mapping.
from angle-grinder.
For pull requests, I'm fine only running the tests directly on linux without using docker.
When travis has containers available, we each arch does get built and tested in parallel, so the wall-clock time to results is "only" 30 minutes
from angle-grinder.
I am a bit confused over what cross
is doing in there tbh. Unless I am really misunderstanding how Travis is configured, it looks like each platform is built on its native OS type, so cross
isn't really achieving anything at present. (So on linux, host os is linux and cross targets x86_64-unknown-linux-musl; on OS X, host OS is OS X and cross targets x86_64-darwin-whatever-the-rest-of-the-tuple-is.)
I'm not sure if this impacts build time however. Happy to look though, it would be basically applying the flow I've put in the Windows Build PR to the other platforms as well.
Generally when I need quick CI my first response is "set up CircleCI", not sure if you are up for such a change though. :) You'd need to stick with cross
then though, afaik it only supports Linux host OSes. There may also be issues because CircleCI itself uses Docker heavily in order to get its startup times so quick.
Additionally, when I was testing, I think the cache is acting per-branch. So updates to a PR would be down to normal times, but each new PR is currently quite a slow build. I'm not sure if this is by design in Travis or if it's configurable (or if it's a bug...)
from angle-grinder.
Additionally, when I was testing, I think the cache is acting per-branch. So updates to a PR would be down to normal times, but each new PR is currently quite a slow build. I'm not sure if this is by design in Travis or if it's configurable (or if it's a bug...)
From the travis docs,
If a branch does not have its own cache, Travis CI fetches the default branch cache.
I'm not sure if that's something I have to setup manually, but it seems like branches should get a cache on first-built
from angle-grinder.
I made some tweaks in #54 that get PR builds down to 10 minutes, a decent improvement
from angle-grinder.
I have no idea what happened, maybe something on Travis? Anyway, builds now finish in 3 minutes!
from angle-grinder.
Related Issues (20)
- Plain text | json | csv output for aggregated data HOT 4
- Outdated `Cargo.lock` file? HOT 6
- sort could cater for version numbers HOT 3
- windows support - `cargo install ag` failed HOT 3
- ag Crash Report HOT 2
- Allow filtering on missing variables HOT 1
- Be less eager to use live-updating table HOT 5
- Error self-updating from v0.15.0 to v0.16 HOT 3
- Version v0.16 does not build with rust >= 1.52 HOT 1
- Splitting within an ANSI color code causes all output to be printed in that color HOT 2
- Support reading from multiple files HOT 2
- Support tee-like output direction HOT 1
- Allow compound expressions in `where` HOT 5
- Error when parsing regex HOT 3
- Access to the raw input
- Support for applying sliding window to aggregates
- Support nodrop directive on split HOT 2
- Crash while parsing syslog for netfilter logs HOT 4
- Cargo.lock is not updated for 0.19.1 release HOT 1
- Crash while parsing netfilter using regex HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angle-grinder.