Skip to content

Commit ecb06a7

Browse files
committed
servo: Merge #19213 - Stop using "alternate" rustc builds (from servo:nightly); r=nox
With rust-lang/rust#45810, normal Nightly now has LLVM assertions disabled. This allows us to entirely stop relying on private/unstable Rust CI artifacts being and remaining available: https://internals.rust-lang.org/t/public-stable-rust-services/6072 Source-Repo: https://github.com/servo/servo Source-Revision: 856dc3c90ab920880e0bdca171720f37e40dd597 UltraBlame original commit: 6406e73a24bca7b3355ff438c283fe0bd20afdaf
1 parent 87c4cbd commit ecb06a7

File tree

5 files changed

+19
-41
lines changed

5 files changed

+19
-41
lines changed

servo/etc/ci/buildbot_steps.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ mac-rel-wpt4:
3131

3232
mac-dev-unit:
3333
- ./mach clean-nightlies --keep 3 --force
34-
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build --dev
35-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach test-unit
36-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach package --dev
37-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build-cef
34+
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig ./mach build --dev
35+
- env ./mach test-unit
36+
- env ./mach package --dev
37+
- env ./mach build-cef
3838
- ./mach build-geckolib
3939
- bash ./etc/ci/lockfile_changed.sh
4040
- bash ./etc/ci/manifest_changed.sh
@@ -78,12 +78,12 @@ linux-dev:
7878
- ./mach clean-nightlies --keep 3 --force
7979
- ./mach test-tidy --no-progress --all
8080
- ./mach test-tidy --no-progress --self-test
81-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build --dev
82-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach test-compiletest
83-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach test-unit
84-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach package --dev
85-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build-cef
86-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build --dev --no-default-features --features default-except-unstable
81+
- env ./mach build --dev
82+
- env ./mach test-compiletest
83+
- env ./mach test-unit
84+
- env ./mach package --dev
85+
- env ./mach build-cef
86+
- env ./mach build --dev --no-default-features --features default-except-unstable
8787
- ./mach build-geckolib
8888
- ./mach test-stylo
8989
- bash ./etc/ci/lockfile_changed.sh
@@ -116,27 +116,27 @@ linux-nightly:
116116

117117
android:
118118
- ./mach clean-nightlies --keep 3 --force
119-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach build --android --dev
120-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach package --android --dev
119+
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach build --android --dev
120+
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach package --android --dev
121121
- bash ./etc/ci/lockfile_changed.sh
122122
- bash ./etc/ci/manifest_changed.sh
123123
- python ./etc/ci/check_dynamic_symbols.py
124124

125125
android-nightly:
126126
- ./mach clean-nightlies --keep 3 --force
127-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach build --android --release
128-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach package --android --release
127+
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach build --android --release
128+
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach package --android --release
129129
- ./mach upload-nightly android
130130

131131
arm32:
132132
- ./mach clean-nightlies --keep 3 --force
133-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build --rel --target=arm-unknown-linux-gnueabihf
133+
- env ./mach build --rel --target=arm-unknown-linux-gnueabihf
134134
- bash ./etc/ci/lockfile_changed.sh
135135
- bash ./etc/ci/manifest_changed.sh
136136

137137
arm64:
138138
- ./mach clean-nightlies --keep 3 --force
139-
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build --rel --target=aarch64-unknown-linux-gnu
139+
- env ./mach build --rel --target=aarch64-unknown-linux-gnu
140140
- bash ./etc/ci/lockfile_changed.sh
141141
- bash ./etc/ci/manifest_changed.sh
142142

servo/python/servo/bootstrap_commands.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import servo.bootstrap as bootstrap
3030
from servo.command_base import CommandBase, BIN_SUFFIX, cd
3131
from servo.util import delete, download_bytes, download_file, extract, host_triple
32-
from servo.util import STATIC_RUST_LANG_ORG_DIST, URLOPEN_KWARGS
32+
from servo.util import STATIC_RUST_LANG_ORG_DIST
3333

3434

3535
@CommandProvider
@@ -90,15 +90,8 @@ def bootstrap_rustc(self, force=False, target=[], stable=False):
9090

9191
if stable:
9292
base_url = STATIC_RUST_LANG_ORG_DIST
93-
elif self.config["build"]["llvm-assertions"]:
94-
base_url = nightly_dist
9593
else:
96-
import toml
97-
channel = nightly_dist + "/channel-rust-nightly.toml"
98-
manifest = toml.load(urllib2.urlopen(channel, **URLOPEN_KWARGS))
99-
nightly_commit_hash = manifest["pkg"]["rustc"]["git_commit_hash"]
100-
101-
base_url = "https://s3.amazonaws.com/rust-lang-ci/rustc-builds-alt/" + nightly_commit_hash
94+
base_url = nightly_dist
10295

10396
rustc_url = base_url + "/rustc-%s-%s.tar.gz" % (version, host_triple())
10497
tgz_file = rust_dir + '-rustc.tar.gz'

servo/python/servo/command_base.py

-12
Original file line numberDiff line numberDiff line change
@@ -260,19 +260,9 @@ def resolverelative(category, key):
260260
self.config["tools"].setdefault("cargo-root", "")
261261
self.config["tools"].setdefault("rustc-with-gold", get_env_bool("SERVO_RUSTC_WITH_GOLD", True))
262262

263-
264-
triples_with_rustc_alt_builds = [
265-
"x86_64-unknown-linux-gnu",
266-
"x86_64-apple-darwin",
267-
"x86_64-pc-windows-msvc",
268-
]
269-
llvm_assertions_default = ("SERVO_RUSTC_LLVM_ASSERTIONS" in os.environ
270-
or host_triple() not in triples_with_rustc_alt_builds)
271-
272263
self.config.setdefault("build", {})
273264
self.config["build"].setdefault("android", False)
274265
self.config["build"].setdefault("mode", "")
275-
self.config["build"].setdefault("llvm-assertions", llvm_assertions_default)
276266
self.config["build"].setdefault("debug-mozjs", False)
277267
self.config["build"].setdefault("ccache", "")
278268
self.config["build"].setdefault("rustflags", "")
@@ -315,8 +305,6 @@ def use_stable_rust(self):
315305
def rust_install_dir(self):
316306
if self._use_stable_rust:
317307
return self.rust_stable_version()
318-
elif not self.config["build"]["llvm-assertions"]:
319-
return self.rust_nightly_date() + "-alt"
320308
else:
321309
return self.rust_nightly_date()
322310

servo/rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2017-11-09
1+
nightly-2017-11-14

servo/servobuild.example

-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ rustc-with-gold = true
3939
# Defaults to prompting before building
4040
#mode = "dev"
4141

42-
# Whether to enable LLVM assertions in rustc.
43-
#llvm-assertions = false
44-
4542
# Set "android = true" or use `mach build --android` to build the Android app.
4643
android = false
4744

0 commit comments

Comments
 (0)