@@ -96,10 +96,8 @@ for line in open("master.cfg.txt"):
96
96
env = master_config ['env' ]
97
97
master_addy = master_config ['master_addy' ]
98
98
git_source = master_config ['git_source' ]
99
- cargo_source = master_config ['cargo_source' ]
100
99
packaging_source = master_config ['packaging_source' ]
101
100
s3_addy = master_config ['s3_addy' ]
102
- s3_cargo_addy = master_config ['s3_cargo_addy' ]
103
101
dist_server_addy = master_config ['dist_server_addy' ]
104
102
public_dist_server_addy = master_config ['public_dist_server_addy' ]
105
103
@@ -183,13 +181,6 @@ dist_platforms = ["linux", "mac", "arm-android", "musl-linux",
183
181
packaging_platforms = ["linux" , "mac" ,
184
182
"win-gnu-32" , "win-gnu-64" ,
185
183
"win-msvc-32" , "win-msvc-64" ]
186
- cargo_platforms = ["linux-32" , "linux-64" , "mac-32" , "mac-64" ,
187
- "cross-linux" ,
188
- "win-gnu-32" , "win-gnu-64" ,
189
- "win-msvc-32" , "win-msvc-64" ,
190
- #"bitrig-64"
191
- ]
192
- cargo_dist_platforms = [p for p in cargo_platforms if "linux" in p or "mac" in p or "win" in p ]
193
184
194
185
def works_in_dev (platform ):
195
186
return 'linux' in platform or \
@@ -200,7 +191,6 @@ if env != "prod":
200
191
try_platforms = [p for p in try_platforms if works_in_dev (p )]
201
192
snap_platforms = [p for p in snap_platforms if works_in_dev (p )]
202
193
dist_platforms = [p for p in dist_platforms if works_in_dev (p )]
203
- cargo_platforms = [p for p in cargo_platforms if works_in_dev (p )]
204
194
packaging_platforms = [p for p in packaging_platforms if works_in_dev (p )]
205
195
206
196
@@ -220,24 +210,6 @@ dist_nogate_platforms = [
220
210
#"cross-rustbuild-linux",
221
211
]
222
212
223
- cargo_cross_targets = [
224
- 'arm-unknown-linux-gnueabi' ,
225
- 'arm-unknown-linux-gnueabihf' ,
226
- 'armv7-unknown-linux-gnueabihf' ,
227
- 'aarch64-unknown-linux-gnu' ,
228
- 'x86_64-unknown-freebsd' ,
229
- 'x86_64-unknown-netbsd' ,
230
- 'i686-unknown-freebsd' ,
231
- 'mips-unknown-linux-gnu' ,
232
- 'mipsel-unknown-linux-gnu' ,
233
- 'mips64-unknown-linux-gnuabi64' ,
234
- 'mips64el-unknown-linux-gnuabi64' ,
235
- 's390x-unknown-linux-gnu' ,
236
- 'powerpc-unknown-linux-gnu' ,
237
- 'powerpc64-unknown-linux-gnu' ,
238
- 'powerpc64le-unknown-linux-gnu' ,
239
- ]
240
-
241
213
ios = {'auto' : 'cross-ios-opt' , 'dist' : 'mac-ios' }
242
214
lincross = {'auto' : 'linux-cross' , 'dist' : 'cross-linux' }
243
215
lincross32 = {'auto' : 'linux-32cross' , 'dist' : 'cross32-linux' }
@@ -461,10 +433,6 @@ from buildbot.changes.gitpoller import GitPoller
461
433
main_sources = [GitPoller (git_source ,
462
434
workdir = 'gitpoller-workdir' ,
463
435
branches = all_branches ,
464
- pollinterval = 60 ),
465
- GitPoller (cargo_source ,
466
- workdir = 'gitpoller-workdir' ,
467
- branches = ["master" , "auto-cargo" ],
468
436
pollinterval = 60 )]
469
437
470
438
c ['change_source' ] = main_sources
@@ -533,30 +501,6 @@ stable_dist_packaging_sched = Triggerable(
533
501
name = "stable-dist-packaging-sched" ,
534
502
builderNames = ["stable-dist-packaging-" + p for p in packaging_platforms ])
535
503
536
- nightly_dist_cargo_trigger_sched = Nightly (
537
- name = "nightly-dist-cargo-trigger-sched" ,
538
- branch = "master" ,
539
- builderNames = ["nightly-dist-cargo-trigger" ],
540
- hour = 2 ,
541
- minute = 0
542
- )
543
-
544
- nightly_dist_cargo_builders = []
545
- for p in cargo_dist_platforms :
546
- nightly_dist_cargo_builders .append ("nightly-dist-cargo-" + p )
547
-
548
- nightly_dist_cargo_sched = Triggerable (
549
- name = "nightly-dist-cargo-sched" ,
550
- builderNames = nightly_dist_cargo_builders ,
551
- )
552
-
553
- cargo_sched = SingleBranchScheduler (
554
- name = "cargo-sched" ,
555
- change_filter = filter .ChangeFilter (#filter_fn=(lambda c: "bors" in c.who),
556
- branch = 'auto-cargo' ),
557
- treeStableTimer = 60 ,
558
- builderNames = ["cargo-" + p for p in cargo_platforms ])
559
-
560
504
force_sched = ForceScheduler (
561
505
name = "force-sched" ,
562
506
builderNames =
@@ -586,10 +530,7 @@ master_force_sched = ForceScheduler(
586
530
+ ["nightly-dist-rustc-trigger" ]
587
531
+ ["nightly-dist-packaging-" + p for p in packaging_platforms ]
588
532
+ ["beta-dist-packaging-" + p for p in packaging_platforms ]
589
- + ["stable-dist-packaging-" + p for p in packaging_platforms ]
590
- + nightly_dist_cargo_builders
591
- + ["cargo-" + p for p in cargo_platforms ]
592
- + ["nightly-dist-cargo-trigger" ],
533
+ + ["stable-dist-packaging-" + p for p in packaging_platforms ],
593
534
594
535
reason = StringParameter (name = "reason" , label = "reason:" , default = "force build" ,
595
536
required = False , size = 10 ),
@@ -655,8 +596,6 @@ beta_dist_rustc_sched,
655
596
beta_dist_packaging_sched ,
656
597
stable_dist_rustc_sched ,
657
598
stable_dist_packaging_sched ,
658
- cargo_sched ,
659
- nightly_dist_cargo_sched ,
660
599
force_sched ,
661
600
master_force_sched ,
662
601
beta_force_sched ,
@@ -665,7 +604,6 @@ stable_force_sched
665
604
666
605
if env == 'prod' :
667
606
c ['schedulers' ].append (nightly_dist_rustc_trigger_sched )
668
- c ['schedulers' ].append (nightly_dist_cargo_trigger_sched )
669
607
670
608
####### BUILDERS
671
609
@@ -859,9 +797,6 @@ class CommandEnv(object):
859
797
env ["LD_LIBRARY_PATH" ] = ld_path
860
798
861
799
env ["CARGO_HOME" ] = "${PWD}/slave/" + props ["buildername" ] + "/cargo-home"
862
- if "cargo" in props :
863
- env ["PLATFORM" ] = props ["platform" ]
864
- env ["BITS" ] = props ["bits" ]
865
800
866
801
return env
867
802
@@ -876,10 +811,7 @@ class ConfigCommand(object):
876
811
"debug" , "debug-assertions" , "pax-flags" , "clang" ,
877
812
"inject-std-version" , "llvm-static-stdcpp" ,
878
813
"rustbuild" , "nightly" ]
879
- if "cargo" in props :
880
- s = "./configure --local-rust-root=$PWD/rustc"
881
- else :
882
- s = "../configure"
814
+ s = "../configure"
883
815
884
816
for opt in opts :
885
817
if opt in props :
@@ -1139,112 +1071,6 @@ def make_and_check_buildfactory(check, android, windows, parallel, make_args=[])
1139
1071
1140
1072
return f
1141
1073
1142
- def cargo_basic_buildfactory ():
1143
- global cargo_source
1144
- f = BuildFactory ()
1145
- # We wipe if the user requests it or if we can't find a config.stamp
1146
- # that's been touched in the past 2 days -- suggests config is failing
1147
- f .addStep (RemoveDirectory ("build" ,
1148
- doStepIf = should_wipe ))
1149
- f .addStep (Git (repourl = cargo_source ,
1150
- progress = True ,
1151
- #clobberOnFailure=True,
1152
- retry = (5 , 2 ), # Combat the flakiness. 2 retries, 5 seconds
1153
- retryFetch = True , # Combat the flakiness
1154
- mode = 'full' , # do what `method` says below
1155
- method = 'clean' , # run `git clean -d -f -f`
1156
- submodules = True ))
1157
-
1158
- return f
1159
-
1160
- def cargo_buildfactory (p ):
1161
-
1162
- f = cargo_basic_buildfactory ()
1163
-
1164
- f .addStep (ShellCommand (env = CommandEnv (),
1165
- command = ["sh" , ".travis.install.deps.sh" ],
1166
- workdir = WORKDIR ))
1167
-
1168
- f .addStep (Configure (env = CommandEnv (),
1169
- haltOnFailure = True ,
1170
- flunkOnFailure = True ,
1171
- command = ConfigCommand (),
1172
- interruptSignal = "TERM" ,
1173
- workdir = WORKDIR ))
1174
-
1175
- f .addStep (Compile (env = CommandEnv (),
1176
- name = "clean" ,
1177
- description = "make clean-all" ,
1178
- descriptionDone = "cleaned" ,
1179
- workdir = WORKDIR ,
1180
- command = [MakeCommand (), "clean-all" ]))
1181
-
1182
- f .addStep (Compile (env = CommandEnv (),
1183
- haltOnFailure = True ,
1184
- flunkOnFailure = True ,
1185
- interruptSignal = "TERM" ,
1186
- command = [MakeCommand ()],
1187
- workdir = WORKDIR ))
1188
-
1189
- f .addStep (Test (env = CommandEnv (),
1190
- doStepIf = "cross" not in p ,
1191
- haltOnFailure = True ,
1192
- flunkOnFailure = True ,
1193
- interruptSignal = "TERM" ,
1194
- command = TestCommand (),
1195
- timeout = test_timeout ,
1196
- workdir = WORKDIR ))
1197
-
1198
- return f
1199
-
1200
- def cargo_nightly_buildfactory (platform , hosts ):
1201
- global s3_cargo_addy
1202
- f = cargo_buildfactory (platform )
1203
-
1204
- cmd = "distcheck"
1205
- if "cross" in platform :
1206
- cmd = "dist"
1207
- f .addStep (Compile (env = CommandEnv (),
1208
- name = cmd ,
1209
- description = "make " + cmd ,
1210
- descriptionDone = "installed" ,
1211
- workdir = WORKDIR ,
1212
- command = [MakeCommand (), cmd ]))
1213
-
1214
- local_dist_dir = "tmp/dist/cargo-nightly"
1215
-
1216
- for host in hosts :
1217
- local_dist_platform_dir = local_dist_dir + "/" + host
1218
-
1219
- # Delete local dist dir
1220
- rm_dist_cmd = "rm -rf " + local_dist_platform_dir
1221
- f .addStep (MasterShellCommand (name = "rm dist dir" ,
1222
- command = ["sh" , "-c" , rm_dist_cmd ]))
1223
-
1224
- tarball = "cargo-nightly-" + host + ".tar.gz"
1225
- f .addStep (FileUpload (slavesrc = "target/" + host + "/release/dist/" + tarball ,
1226
- masterdest = local_dist_platform_dir + "/" + tarball ,
1227
- workdir = WORKDIR ))
1228
-
1229
- commit_id_cmd = "echo '%(got_revision)s' > " + local_dist_platform_dir + "/commit-id"
1230
- f .addStep (MasterShellCommand (name = "stamp commit id" ,
1231
- command = ["sh" , "-c" , WithProperties (commit_id_cmd )]))
1232
-
1233
- all_cargo_hosts = cargo_cross_targets [:]
1234
- for p in cargo_dist_platforms :
1235
- for h in all_platform_hosts (p ):
1236
- all_cargo_hosts += [h ]
1237
- all_cargo_hosts = list (set (all_cargo_hosts ))
1238
-
1239
- f .addStep (DistSync (name = "checking for synced cargo dist builds" ,
1240
- stagingDir = local_dist_dir ,
1241
- platforms = all_cargo_hosts ,
1242
- nogate_platforms = [],
1243
- haltOnFailure = True ,
1244
- flunkOnFailure = False ))
1245
-
1246
- return finish_dist (f , local_dist_dir , all_cargo_hosts , s3_cargo_addy , "cargo-dist" , "cargo" , "nightly" , True )
1247
-
1248
1074
def snap3_buildfactory (platform ):
1249
1075
global s3_addy
1250
1076
f = make_and_check_buildfactory (True , False , "win" in platform , False )
@@ -1292,15 +1118,6 @@ def rust_distsnap_trigger_buildfactory(scheduler_names):
1292
1118
1293
1119
return f
1294
1120
1295
- def cargo_distsnap_trigger_buildfactory (scheduler_names ):
1296
- # Need to do check out the source to get the revision (I think)
1297
- f = cargo_basic_buildfactory ()
1298
-
1299
- f .addStep (Trigger (schedulerNames = scheduler_names ))
1300
-
1301
- return f
1302
-
1303
-
1304
1121
def distsnap_buildfactory (platform , channel_label ):
1305
1122
global s3_addy
1306
1123
command = [MakeCommand ()]
@@ -1972,71 +1789,6 @@ c['builders'].append(BuilderConfig(
1972
1789
slavenames = [s .slavename for s in auto_slaves ], # any slave; we just need to check out the source to get the current rev
1973
1790
factory = rust_distsnap_trigger_buildfactory (["stable-dist-rustc-sched" ])))
1974
1791
1975
- # The cargo nightly trigger
1976
- c ['builders' ].append (BuilderConfig (
1977
- mergeRequests = True ,
1978
- name = "nightly-dist-cargo-trigger" ,
1979
- category = "util-dist" ,
1980
- nextSlave = nextSlave ,
1981
- slavenames = [s .slavename for s in auto_slaves ], # any slave; we just need to check out the source to get the current rev
1982
- factory = cargo_distsnap_trigger_buildfactory (["nightly-dist-cargo-sched" ])))
1983
-
1984
- for platform in cargo_platforms :
1985
- p = platform .split ("-" )[0 ]
1986
- bits = "32" if "32" in platform else "64"
1987
- triple = auto_platform_triple (platform )
1988
- slave_match = p
1989
- targets = [triple ]
1990
- nightly = None
1991
- if "cross" in platform :
1992
- nightly = True
1993
- targets = cargo_cross_targets [:]
1994
- slave_match = 'lincross'
1995
- slaves = [slave .slavename
1996
- for slave in c ['slaves' ]
1997
- if slave_match in slave .slavename and slave in auto_slaves ]
1998
- # Builder that does incremental-make-check-lite runs,
1999
- # host=target only, no valgrind, no perf.
2000
- c ['builders' ].append (BuilderConfig (
2001
- mergeRequests = True ,
2002
- name = "cargo-" + platform ,
2003
- category = "cargo" ,
2004
- nextSlave = nextSlave ,
2005
- properties = {"platform" :p ,
2006
- "branch" :"auto-cargo" ,
2007
- "verbose" : True ,
2008
- "cargo" : True ,
2009
- "optimize" : False ,
2010
- "nightly" : nightly ,
2011
- "bits" : bits ,
2012
- "targets" : targets ,
2013
- "build" : triple },
2014
- slavenames = slaves ,
2015
- factory = cargo_buildfactory (platform )))
2016
-
2017
- if platform not in cargo_dist_platforms :
2018
- continue
2019
-
2020
- # Cargo nightly
2021
- c ['builders' ].append (BuilderConfig (
2022
- mergeRequests = True ,
2023
- name = "nightly-dist-cargo-" + platform ,
2024
- category = "util-dist" ,
2025
- properties = {"platform" :p ,
2026
- "branch" :"master" ,
2027
- "targets" : targets ,
2028
- "check" : True ,
2029
- "wipe" : True ,
2030
- "cargo" : True ,
2031
- "cargo-nightly" : True ,
2032
- "optimize" : True ,
2033
- "bits" : bits ,
2034
- "nightly" : True },
2035
- nextSlave = nextSlave ,
2036
- slavenames = platform_dist_slaves (platform ),
2037
- factory = cargo_nightly_buildfactory (platform , targets )))
2038
-
2039
-
2040
1792
####### STATUS TARGETS
2041
1793
2042
1794
# 'status' is a list of Status Targets. The results of each build will be
0 commit comments