@@ -155,7 +155,6 @@ c['schedulers'].append(schedulers.SingleBranchScheduler(
155
155
change_filter = util .ChangeFilter (branch = 'refs/heads/master' ),
156
156
treeStableTimer = None ,
157
157
builderNames = ["Build GCCLin_x86" , "Build MSVC_x86" , "Build MSVC_x64" ]))
158
- #builderNames=["Build GCCLin_x86", "Build MSVC_x86", "Build MSVC_x64", "Test KVM AHK"]))
159
158
160
159
c ['schedulers' ].append (schedulers .SingleBranchScheduler (
161
160
name = "rostests" ,
@@ -164,17 +163,16 @@ c['schedulers'].append(schedulers.SingleBranchScheduler(
164
163
builderNames = ["Test WHS" ]))
165
164
166
165
c ['schedulers' ].append (schedulers .Triggerable (
167
- name = "Carrier Testbot Trigger " ,
166
+ name = "Build GCCLin_x86 regtestcd done " ,
168
167
builderNames = ["Test KVM" , "Test VBox" ]))
169
- #builderNames=["Test KVM", "Test VMW", "Test VMW Hybrid", "Test VBox"]))
170
168
171
169
c ['schedulers' ].append (schedulers .Triggerable (
172
- name = "Carrier Testbot-x64 Trigger " ,
173
- builderNames = ["Test KVM_x64 " ]))
170
+ name = "Build MSVC_x64 rostests done " ,
171
+ builderNames = ["Test Win2003_x64 " ]))
174
172
175
173
c ['schedulers' ].append (schedulers .Triggerable (
176
- name = "Carrier-Win2003-x64 Testbot Trigger " ,
177
- builderNames = ["Test Win2003_x64 " ]))
174
+ name = "Build MSVC_x64 regtestcd done " ,
175
+ builderNames = ["Test KVM_x64 " ]))
178
176
179
177
c ['schedulers' ].append (schedulers .Periodic (
180
178
name = "Daily" ,
@@ -189,7 +187,6 @@ c['schedulers'].append(schedulers.ForceScheduler(
189
187
util .StringParameter (name = "id" , label = "JIRA Patch ID:" )
190
188
])],
191
189
builderNames = ["Build GCCLin_x86" , "Build GCCWin_x86" , "Build MSVC_x86" , "Build MSVC_x64" , "Test WHS" ]))
192
- #builderNames=["Build GCCLin_x86", "Build GCCWin_x86", "Build MSVC_x86", "Build MSVC_x64", "Test KVM AHK", "Test WHS"]))
193
190
194
191
####### BUILDERS
195
192
@@ -204,8 +201,11 @@ bs_clean = steps.ShellCommand(name="clean", command=["bash", scripts_root + "cle
204
201
bs_prepare_source = steps .ShellCommand (name = "prepare_source" , command = ["bash" , scripts_root + "prepare_source" , util .WithProperties ("%(id:-)s" )], description = ["preparing source" ], descriptionDone = ["prepared source" ], haltOnFailure = True )
205
202
bs_bootcd = steps .Compile (name = "bootcd" , command = ["bash" , scripts_root + "build_reactos" , "bootcd" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = ["BootCD" ], descriptionDone = ["BootCD" ])
206
203
bs_livecd = steps .Compile (name = "livecd" , command = ["bash" , scripts_root + "build_reactos" , "livecd" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = ["LiveCD" ], descriptionDone = ["LiveCD" ])
204
+ bs_get_suffix = steps .SetPropertyFromCommand (command = ["bash" , scripts_root + "get_suffix" ], property = "suffix" )
207
205
bs_upload_iso = steps .ShellCommand (name = "uploadiso" , command = ["bash" , scripts_root + "uploadiso" ], description = ["uploading" ], descriptionDone = ["uploaded" ])
208
206
bs_submit_results = steps .ShellCommand (name = "submit_results" , command = ["bash" , scripts_root + "submit_result" , util .WithProperties ('%(buildnumber)s' ), util .WithProperties ('%(reason:-)s' ), util .WithProperties ('%(id:-)s' )], description = ["submitting results" ], descriptionDone = ["submit results" ])
207
+ bs_build_rostests = steps .Compile (name = "rostests" , command = ["bash" , scripts_root + "build_rostests" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = ["rostests" ], descriptionDone = ["rostests" ])
208
+ bs_run_rostests = steps .Compile (name = "test" , command = ["bash" , scripts_root + "run_rostests" , util .WithProperties ('%(suffix)s' ), util .WithProperties ('%(buildnumber)s' ), util .WithProperties ('%(reason:-)s' )], warningPattern = ".*[:] Test .*" , description = ["testing" ], descriptionDone = ["test" ])
209
209
210
210
compiler_re = re .compile ("\-\- The C compiler identification is (GNU|MSVC) ([\.\d]+)" )
211
211
build_type_re = re .compile ("\-\- Build Type\: (Debug|Release)" )
@@ -237,16 +237,46 @@ def make_bs_configure(*args):
237
237
extract_fn = extract_build_props
238
238
)
239
239
240
+ def make_bs_regtestcd (* args ):
241
+ cmd = ["bash" , scripts_root + "regtestcd" ] + list (args )
242
+
243
+ return steps .Compile (
244
+ name = "regtestcd" ,
245
+ command = cmd ,
246
+ warningPattern = "^(.*warning[: ].*|.*error[: ].*)" ,
247
+ description = ["TestCD" ],
248
+ descriptionDone = ["TestCD" ]
249
+ )
250
+
251
+ def make_bs_regtest (* prepended_args ):
252
+ cmd = list (prepended_args ) + ["bash" , scripts_root + "regtest" , util .WithProperties ('%(suffix)s' )]
253
+
254
+ return steps .Compile (
255
+ name = "test" ,
256
+ command = cmd ,
257
+ warningPattern = ".*[:] Test .*" ,
258
+ description = ["testing" ],
259
+ descriptionDone = ["test" ]
260
+ )
261
+
262
+ def make_bs_trigger (name ):
263
+ return steps .Trigger (
264
+ schedulerNames = [name ],
265
+ waitForFinish = False ,
266
+ copy_properties = ['got_revision' , 'id' , 'owners' , 'reason' , 'suffix' ]
267
+ )
268
+
269
+
240
270
Build_GCCLin_x86 = util .BuildFactory ();
241
271
Build_GCCLin_x86 .addStep (bs_clean )
242
272
Build_GCCLin_x86 .addStep (bs_git )
243
273
Build_GCCLin_x86 .addStep (bs_prepare_source )
244
274
Build_GCCLin_x86 .addStep (make_bs_configure ())
245
275
Build_GCCLin_x86 .addStep (bs_bootcd )
246
276
Build_GCCLin_x86 .addStep (bs_livecd )
247
- Build_GCCLin_x86 .addStep (steps . Compile ( name = "regtestcd" , command = [ "bash" , scripts_root + "regtestcd" , " -DENABLE_ROSTESTS=1"], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = [ "TestCD" ], descriptionDone = [ "TestCD" ] ))
248
- Build_GCCLin_x86 .addStep (steps . SetPropertyFromCommand ( command = [ "bash" , scripts_root + "get_suffix" ], property = "suffix" ) )
249
- Build_GCCLin_x86 .addStep (steps . Trigger ( schedulerNames = [ 'Carrier Testbot Trigger' ], waitForFinish = False , copy_properties = [ 'got_revision' , 'id' , 'owners' , 'reason' , 'suffix' ] ))
277
+ Build_GCCLin_x86 .addStep (make_bs_regtestcd ( " -DENABLE_ROSTESTS=1" ))
278
+ Build_GCCLin_x86 .addStep (bs_get_suffix )
279
+ Build_GCCLin_x86 .addStep (make_bs_trigger ( "Build GCCLin_x86 regtestcd done" ))
250
280
Build_GCCLin_x86 .addStep (bs_upload_iso )
251
281
252
282
Build_GCCLin_x86_Release = util .BuildFactory ();
@@ -282,56 +312,36 @@ Build_MSVC_x64.addStep(bs_prepare_source)
282
312
Build_MSVC_x64 .addStep (make_bs_configure ())
283
313
Build_MSVC_x64 .addStep (bs_bootcd )
284
314
Build_MSVC_x64 .addStep (bs_livecd )
285
- Build_MSVC_x64 .addStep (steps . Compile ( name = "rostests" , command = [ "bash" , scripts_root + "build_rostests" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = [ "rostests" ], descriptionDone = [ "rostests" ]) )
286
- Build_MSVC_x64 .addStep (steps . SetPropertyFromCommand ( command = [ "bash" , scripts_root + "get_suffix" ], property = "suffix" ) )
287
- Build_MSVC_x64 .addStep (steps . Trigger ( schedulerNames = [ 'Carrier-Win2003-x64 Testbot Trigger' ], waitForFinish = False , copy_properties = [ 'got_revision' , 'id' , 'owners' , 'reason' , 'suffix' ] ))
288
- Build_MSVC_x64 .addStep (steps . Compile ( name = "regtestcd" , command = [ "bash" , scripts_root + "regtestcd" , " -DENABLE_ROSTESTS:BOOL=TRUE " , "-D_WINKD_:BOOL=FALSE " , "-DKDBG:BOOL=TRUE" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = [ "TestCD" ], descriptionDone = [ "TestCD" ] ))
289
- Build_MSVC_x64 .addStep (steps . Trigger ( schedulerNames = [ 'Carrier Testbot-x64 Trigger' ], waitForFinish = False , copy_properties = [ 'got_revision' , 'id' , 'owners' , 'reason' , 'suffix' ] ))
315
+ Build_MSVC_x64 .addStep (bs_build_rostests )
316
+ Build_MSVC_x64 .addStep (bs_get_suffix )
317
+ Build_MSVC_x64 .addStep (make_bs_trigger ( "Build MSVC_x64 rostests done" ))
318
+ Build_MSVC_x64 .addStep (make_bs_regtestcd ( " -DENABLE_ROSTESTS=1 " , "-D_WINKD_=0 " , "-DKBG=1" ))
319
+ Build_MSVC_x64 .addStep (make_bs_trigger ( "Build MSVC_x64 regtestcd done" ))
290
320
Build_MSVC_x64 .addStep (bs_upload_iso )
291
321
292
322
Test_KVM = util .BuildFactory ();
293
- Test_KVM .addStep (steps . Compile ( name = "test" , command = [ " sudo", scripts_root + "regtest" , util . WithProperties ( '%(suffix)s' )], warningPattern = ".*[:] Test .*" , description = [ "testing" ], descriptionDone = [ "test" ] ))
323
+ Test_KVM .addStep (make_bs_regtest ( " sudo" ))
294
324
Test_KVM .addStep (bs_submit_results )
295
325
296
326
Test_KVM_x64 = util .BuildFactory ();
297
- Test_KVM_x64 .addStep (steps . Compile ( name = "test" , command = [ " sudo", scripts_root + "regtest" , util . WithProperties ( '%(suffix)s' )], warningPattern = ".*[:] Test .*" , description = [ "testing" ], descriptionDone = [ "test" ] ))
327
+ Test_KVM_x64 .addStep (make_bs_regtest ( " sudo" ))
298
328
Test_KVM_x64 .addStep (bs_submit_results )
299
329
300
- Test_KVM_AHK = util .BuildFactory ();
301
- Test_KVM_AHK .addStep (bs_clean )
302
- Test_KVM_AHK .addStep (bs_git )
303
- Test_KVM_AHK .addStep (steps .ShellCommand (name = "prepare ahk" , command = ["bash" , scripts_root + "prepare_ahk" ], description = ["preparing ahk" ], descriptionDone = ["prepared ahk" ], haltOnFailure = True ))
304
- Test_KVM_AHK .addStep (bs_prepare_source )
305
- Test_KVM_AHK .addStep (steps .ShellCommand (name = "compile ahk" , command = ["bash" , "modules/AHK_Tests/compile.sh" ], description = ["compiling ahk" ], descriptionDone = ["compiled ahk" ], haltOnFailure = True ))
306
- Test_KVM_AHK .addStep (steps .Compile (name = "regtestcd" , command = ["bash" , scripts_root + "regtestcd" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = ["TestCD" ], descriptionDone = ["TestCD" ]))
307
- Test_KVM_AHK .addStep (steps .Compile (name = "test" , command = ["sudo" , scripts_root + "regtest" , util .WithProperties ('%(suffix)s' )], warningPattern = ".*[:] Test .*" , description = ["testing" ], descriptionDone = ["test" ]))
308
- Test_KVM_AHK .addStep (bs_submit_results )
309
-
310
330
Test_VBox = util .BuildFactory ();
311
331
Test_VBox .addStep (steps .ShellCommand (name = "vbox_clean" , command = ["bash" , scripts_root + "vbox_clean" ], description = ["cleaning VirtualBox" ], descriptionDone = ["cleaned VirtualBox" ], haltOnFailure = True ))
312
- Test_VBox .addStep (steps . Compile ( name = "test" , command = [ "bash" , scripts_root + "regtest" , util . WithProperties ( '%(suffix)s' )], warningPattern = ".*[:] Test .*" , description = [ "testing" ], descriptionDone = [ "test" ] ))
332
+ Test_VBox .addStep (make_bs_regtest ( ))
313
333
Test_VBox .addStep (bs_submit_results )
314
334
315
- #Test_VMW = util.BuildFactory();
316
- #Test_VMW.addStep(steps.ShellCommand(name="vmware_clean", command=["bash", scripts_root + "vmware_clean"], description=["cleaning VMware"], descriptionDone=["cleaned VMware"], haltOnFailure=True))
317
- #Test_VMW.addStep(bs_regtest)
318
- #Test_VMW.addStep(bs_submit_results)
319
-
320
- #Test_VMW_Hybrid = util.BuildFactory();
321
- #Test_VMW_Hybrid.addStep(steps.ShellCommand(name="vmware_clean", command=["bash", scripts_root + "vmware_clean"], description=["cleaning VMware"], descriptionDone=["cleaned VMware"], haltOnFailure=True))
322
- #Test_VMW_Hybrid.addStep(bs_regtest)
323
- #Test_VMW_Hybrid.addStep(bs_submit_results)
324
-
325
335
Test_Win2003_x64 = util .BuildFactory ();
326
- Test_Win2003_x64 .addStep (steps . Compile ( name = "test" , command = [ "bash" , scripts_root + "run_rostests" , util . WithProperties ( '%(suffix)s' ), util . WithProperties ( '%(buildnumber)s' ), util . WithProperties ( '%(reason:-)s' )], warningPattern = ".*[:] Test .*" , description = [ "testing" ], descriptionDone = [ "test" ]) )
336
+ Test_Win2003_x64 .addStep (bs_run_rostests )
327
337
328
338
Test_WHS = util .BuildFactory ();
329
339
Test_WHS .addStep (bs_clean )
330
340
Test_WHS .addStep (bs_git )
331
341
Test_WHS .addStep (bs_prepare_source )
332
- Test_WHS .addStep (steps . Compile ( name = "rostests" , command = [ "bash" , scripts_root + "build_rostests" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = [ "rostests" ], descriptionDone = [ "rostests" ]) )
333
- Test_WHS .addStep (steps . SetPropertyFromCommand ( command = [ "bash" , scripts_root + "get_suffix" ], property = "suffix" ) )
334
- Test_WHS .addStep (steps . Compile ( name = "test" , command = [ "bash" , scripts_root + "run_rostests" , util . WithProperties ( '%(suffix)s' ), util . WithProperties ( '%(buildnumber)s' ), util . WithProperties ( '%(reason:-)s' )], warningPattern = ".*[:] Test .*" , description = [ "testing" ], descriptionDone = [ "test" ]) )
342
+ Test_WHS .addStep (bs_build_rostests )
343
+ Test_WHS .addStep (bs_get_suffix )
344
+ Test_WHS .addStep (bs_run_rostests )
335
345
336
346
337
347
c ['builders' ] = [
@@ -368,9 +378,6 @@ c['builders'] = [
368
378
369
379
util .BuilderConfig (name = "Test KVM" , workernames = ["Carrier" ], builddir = "Test_KVM" , factory = Test_KVM ),
370
380
util .BuilderConfig (name = "Test KVM_x64" , workernames = ["Carrier" ], builddir = "Test_KVM_x64" , factory = Test_KVM_x64 ),
371
- #util.BuilderConfig(name="Test KVM AHK", workernames=["AHK-Bot"], builddir="Test_KVM_AHK", factory=Test_KVM_AHK),
372
- #util.BuilderConfig(name="Test VMW", workernames=["Fezile"], builddir="Test_VMW", factory=Test_VMW),
373
- #util.BuilderConfig(name="Test VMW Hybrid", workernames=["Fezile"], builddir="Test_VMW_Hybrid", factory=Test_VMW_Hybrid),
374
381
util .BuilderConfig (name = "Test Win2003_x64" , workernames = ["Carrier-Win2003-x64" ], builddir = "Test_Win2003_x64" , factory = Test_Win2003_x64 ),
375
382
util .BuilderConfig (name = "Test WHS" , workernames = ["Carrier-WHS-Bot" ], builddir = "Test_WHS" , factory = Test_WHS ),
376
383
util .BuilderConfig (name = "Test VBox" , workernames = ["Testee" ], builddir = "Test_VBox" , factory = Test_VBox ),
@@ -396,19 +403,6 @@ c['services'] = [
396
403
'failure' : 1
397
404
}
398
405
),
399
- # reporters.MailNotifier(
400
-
401
- # sendToInterestedUsers=False,
402
- # extraRecipients=["[email protected] "],
403
- # mode='failing',
404
- # subject="%(builder)s: build failed",
405
- # builders=["Build GCCLin_x86", "Build GCCLin_x86 Release", "Test KVM", "Test VMW", "Test VMW Hybrid", "Build GCCWin_x86", "Build MSVC_x86", "Build MSVC2010_x86", "Test WHS", "Test VBox"],
406
- # smtpPassword=credentials.get("mail", "passwd"),
407
- # smtpUser=credentials.get("mail", "user"),
408
- # useTls=True,
409
- # relayhost="iserv.reactos.org",
410
- # smtpPort=587
411
- # ),
412
406
reporters .GitHubStatusPush (
413
407
token = credentials .get ("github" , "bbtoken" )
414
408
),
0 commit comments