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

travis: Disable LLVM assertions on OSX #44610

Merged
merged 1 commit into from
Sep 16, 2017

Conversation

alexcrichton
Copy link
Member

Our OSX builders are routinely and significantly over hour 2 hour "soft limit"
for testing PRs. I think that a big portion of this time comes from the fact
that LLVM and debug assertions are enabled. In an effort to speed up these
builders and reduce cycle time this commit disables LLVM assertions on OSX for
all builders.

My thinking is that we'll let this bake for a bit after merged to see what the
effect is on timing on Travis. If it doesn't actually help much we can turn them
back on, and if it doesn't help enough we can disable Rust debug assertions as
well.

Our OSX builders are routinely and significantly over hour 2 hour "soft limit"
for testing PRs. I *think* that a big portion of this time comes from the fact
that LLVM and debug assertions are enabled. In an effort to speed up these
builders and reduce cycle time this commit disables LLVM assertions on OSX for
all builders.

My thinking is that we'll let this bake for a bit after merged to see what the
effect is on timing on Travis. If it doesn't actually help much we can turn them
back on, and if it doesn't help enough we can disable Rust debug assertions as
well.
@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

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

@alexcrichton
Copy link
Member Author

I've conferred with @nikomatsakis and @eddyb on IRC about this from the compiler side of things, and figure it's worth at least a test run to see what's up.

r? @Mark-Simulacrum

@shepmaster shepmaster added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 15, 2017
@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Sep 15, 2017

📌 Commit 97fee3e has been approved by Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

@bors p=10 (that way we see the results sooner)

@bors
Copy link
Contributor

bors commented Sep 15, 2017

⌛ Testing commit 97fee3e with merge 67b4180...

bors added a commit that referenced this pull request Sep 15, 2017
travis: Disable LLVM assertions on OSX

Our OSX builders are routinely and significantly over hour 2 hour "soft limit"
for testing PRs. I *think* that a big portion of this time comes from the fact
that LLVM and debug assertions are enabled. In an effort to speed up these
builders and reduce cycle time this commit disables LLVM assertions on OSX for
all builders.

My thinking is that we'll let this bake for a bit after merged to see what the
effect is on timing on Travis. If it doesn't actually help much we can turn them
back on, and if it doesn't help enough we can disable Rust debug assertions as
well.
@bors
Copy link
Contributor

bors commented Sep 15, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member Author

@bors
Copy link
Contributor

bors commented Sep 16, 2017

⌛ Testing commit 97fee3e with merge 7ab10ea2e11b7ab056afd483552e43a94b8c2671...

@alexcrichton
Copy link
Member Author

@bors: retry

prioritizing rollups

@bors
Copy link
Contributor

bors commented Sep 16, 2017

⌛ Testing commit 97fee3e with merge 76f64f82d6973449b3dd24e04285683ce8d5c634...

@alexcrichton
Copy link
Member Author

@bors: retry

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Sep 16, 2017
…ark-Simulacrum

travis: Disable LLVM assertions on OSX

Our OSX builders are routinely and significantly over hour 2 hour "soft limit"
for testing PRs. I *think* that a big portion of this time comes from the fact
that LLVM and debug assertions are enabled. In an effort to speed up these
builders and reduce cycle time this commit disables LLVM assertions on OSX for
all builders.

My thinking is that we'll let this bake for a bit after merged to see what the
effect is on timing on Travis. If it doesn't actually help much we can turn them
back on, and if it doesn't help enough we can disable Rust debug assertions as
well.
@bors
Copy link
Contributor

bors commented Sep 16, 2017

⌛ Testing commit 97fee3e with merge d248841178b67be9de0571b3a63d7355986b8942...

@alexcrichton
Copy link
Member Author

@bors: retry

@bors
Copy link
Contributor

bors commented Sep 16, 2017

⌛ Testing commit 97fee3e with merge 3a7ab6c...

bors added a commit that referenced this pull request Sep 16, 2017
travis: Disable LLVM assertions on OSX

Our OSX builders are routinely and significantly over hour 2 hour "soft limit"
for testing PRs. I *think* that a big portion of this time comes from the fact
that LLVM and debug assertions are enabled. In an effort to speed up these
builders and reduce cycle time this commit disables LLVM assertions on OSX for
all builders.

My thinking is that we'll let this bake for a bit after merged to see what the
effect is on timing on Travis. If it doesn't actually help much we can turn them
back on, and if it doesn't help enough we can disable Rust debug assertions as
well.
@bors
Copy link
Contributor

bors commented Sep 16, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 3a7ab6c to master...

@bors bors merged commit 97fee3e into rust-lang:master Sep 16, 2017
@kennytm
Copy link
Member

kennytm commented Sep 16, 2017

Doesn't seem effective. The two check targets still take 2:30:26 and 2:26:27 respectively.

@alexcrichton alexcrichton deleted the osx-no-assertions branch September 16, 2017 14:02
@alexcrichton
Copy link
Member Author

This PR itself had to populate the sccache caches as it recompiled LLVM, I think it's more useful to look at the build just before and the build just after which shows:

  • x86_64 - 2h39m -> 2h18m
  • i686 - 2h41m -> 2h25m

Almost 20 minute improvements! I'll submit another PR for debug assertions in rustc.

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Sep 17, 2017
This commit disables debug assertions for OSX in an effort to improve cycle time
on OSX. It looks like rust-lang#44610 didn't shave off quite as much time as desired so
let's see how much this helps.
bors added a commit that referenced this pull request Sep 17, 2017
…rk-Simulacrum

ci: Disable rustc debug assertions on OSX

This commit disables debug assertions for OSX in an effort to improve cycle time
on OSX. It looks like #44610 didn't shave off quite as much time as desired so
let's see how much this helps.
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 21, 2023
…acrum

Remove apple-alt dist build.

This removes the dist-x86_64-apple-alt build to reduce CI usage because I suspect nobody is using it. This builder is almost identical to the `dist-x86_64-apple` with the small difference that the latter adds `rust.lto=thin`, and I do not think that difference was intentional. The reason they are identical is because llvm assertions were disabled in rust-lang#44610, but I did not see any discussion about the consequence that this made the alt build identical to the normal build. Perhaps because rust-lang#44610 was intended to be temporary?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants