Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Travis CI job order. #43287

Merged
merged 1 commit into from Jul 19, 2017
Merged

Conversation

kennytm
Copy link
Member

@kennytm kennytm commented Jul 17, 2017

Reorder the job matrix to take advantage of the order how Travis CI starts them in rust-lang/rust. Plus other refactoring of .travis.yml.

  1. Move the $ALLOW_PR image to the top, so pull requests will start testing as immediately after the build is started. Previously the $ALLOW_PR image starts 6 minutes after the build was scheduled.

  2. Move the slow macOS images near the top, so they share more time with the rest of the faster Linux builds, which should shorten total test time (actually not much, about 7 minutes at most if this change does work).

  3. Merged the install section of both Linux and macOS to make the env: section a bit shorter, and enable change 4 below.

  4. Do not download or install anything if $SKIP_BUILD == true, which further reduces chance of spurious failure in the PR-CI stage (avoid the red cross appearing even if CI passed).

(IMO $SKIP_BUILD should not even exist: those irrelevant jobs should not start at all, but that would require travis-ci/travis-ci#2778 which has been rejected)

@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@kennytm
Copy link
Member Author

kennytm commented Jul 17, 2017

(In the Travis CI PR build of this commit, 9 minutes and 6 minutes are respectively taken to skip two macOS builds. Both are due to git fetch origin +refs/pull/43287/merge becoming very slow, which seems to be a problem of Travis's "Partially Degraded Service" with GitHub, not a problem of this PR.)

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 17, 2017

📌 Commit d19ae39 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jul 18, 2017

⌛ Testing commit d19ae399d86ab5ba1dd2083f02434c633d7964bc with merge 299836dc82b7f1874ffa0379732a8e54eb70568c...

@bors
Copy link
Contributor

bors commented Jul 18, 2017

💔 Test failed - status-travis

@kennytm
Copy link
Member Author

kennytm commented Jul 18, 2017

Failed to download sccache. Spurious. But let's not retry since #43293 will conflict with this anyway.

@bors
Copy link
Contributor

bors commented Jul 18, 2017

☔ The latest upstream changes (presumably #43293) made this pull request unmergeable. Please resolve the merge conflicts.

Reorder the job matrix to take advantage of the order how Travis CI starts
them in rust-lang/rust. Plus other refactoring of `.travis.yml`.

1. Move the `$ALLOW_PR` image to the top, so users' PRs will start testing
   immediately. Previously the `$ALLOW_PR` image starts 6 minutes after the
   build was scheduled.

2. Move the slow macOS images near the top, so they share more time with
   the rest of the faster Linux builds, which should shorten total test
   time (actually not much, about 7 minutes at most if this change does
   work).

3. Merged the `install` section of both Linux and macOS to make the `env:`
   section a bit shorter, and enable change 4 below.

4. Do not download or install anything if `$SKIP_BUILD == true`, which
   further reduces chance of spurious failure in the PR-CI stage (avoid the
   red cross appearing even if CI passed).
@kennytm
Copy link
Member Author

kennytm commented Jul 18, 2017

Rebased. @alexcrichton

@aidanhs
Copy link
Member

aidanhs commented Jul 18, 2017

Hmm, I'm a bit confused. Looking at the log it didn't even try to download sccache, which is reasonable because it should be cached in the docker image. So what's up with

[00:02:37]   /usr/local/bin/sccache: 2: /usr/local/bin/sccache: Syntax error: newline
[00:02:37]   unexpected

?

@aidanhs
Copy link
Member

aidanhs commented Jul 18, 2017

Right I see, a failed curl in a different build polluted our docker cache until #43293 was made to fix it, and this build was one of the casualties.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 18, 2017

📌 Commit a7eb87e has been approved by alexcrichton

@Mark-Simulacrum
Copy link
Member

@bors rollup

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 18, 2017
…excrichton

Change Travis CI job order.

Reorder the job matrix to take advantage of the order how Travis CI starts them in rust-lang/rust. Plus other refactoring of `.travis.yml`.

1. Move the `$ALLOW_PR` image to the top, so pull requests will start testing as immediately after the build is started. Previously the `$ALLOW_PR` image starts 6 minutes after the build was scheduled.

2. Move the slow macOS images near the top, so they share more time with the rest of the faster Linux builds, which should shorten total test time (actually not much, about 7 minutes at most if this change does work).

3. Merged the `install` section of both Linux and macOS to make the `env:` section a bit shorter, and enable change 4 below.

4. Do not download or install anything if `$SKIP_BUILD == true`, which further reduces chance of spurious failure in the PR-CI stage (avoid the red cross appearing even if CI passed).

(IMO `$SKIP_BUILD` should not even exist: those irrelevant jobs should not start at all, but that would require travis-ci/travis-ci#2778 which has been rejected)
bors added a commit that referenced this pull request Jul 18, 2017
Rollup of 11 pull requests

- Successful merges: #42837, #43282, #43287, #43290, #43292, #43294, #43304, #43310, #43312, #43314, #43315
- Failed merges:
@arielb1 arielb1 added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jul 18, 2017
@bors bors merged commit a7eb87e into rust-lang:master Jul 19, 2017
@kennytm kennytm deleted the travis-ci-adjustments branch July 19, 2017 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants