@@ -155,7 +155,6 @@ c['schedulers'].append(schedulers.SingleBranchScheduler(
155155 change_filter = util .ChangeFilter (branch = 'refs/heads/master' ),
156156 treeStableTimer = None ,
157157 builderNames = ["Build GCCLin_x86" , "Build MSVC_x86" , "Build MSVC_x64" ]))
158- #builderNames=["Build GCCLin_x86", "Build MSVC_x86", "Build MSVC_x64", "Test KVM AHK"]))
159158
160159c ['schedulers' ].append (schedulers .SingleBranchScheduler (
161160 name = "rostests" ,
@@ -164,17 +163,16 @@ c['schedulers'].append(schedulers.SingleBranchScheduler(
164163 builderNames = ["Test WHS" ]))
165164
166165c ['schedulers' ].append (schedulers .Triggerable (
167- name = "Carrier Testbot Trigger " ,
166+ name = "Build GCCLin_x86 regtestcd done " ,
168167 builderNames = ["Test KVM" , "Test VBox" ]))
169- #builderNames=["Test KVM", "Test VMW", "Test VMW Hybrid", "Test VBox"]))
170168
171169c ['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 " ]))
174172
175173c ['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 " ]))
178176
179177c ['schedulers' ].append (schedulers .Periodic (
180178 name = "Daily" ,
@@ -189,7 +187,6 @@ c['schedulers'].append(schedulers.ForceScheduler(
189187 util .StringParameter (name = "id" , label = "JIRA Patch ID:" )
190188 ])],
191189 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"]))
193190
194191####### BUILDERS
195192
@@ -204,8 +201,11 @@ bs_clean = steps.ShellCommand(name="clean", command=["bash", scripts_root + "cle
204201bs_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 )
205202bs_bootcd = steps .Compile (name = "bootcd" , command = ["bash" , scripts_root + "build_reactos" , "bootcd" ], warningPattern = "^(.*warning[: ].*|.*error[: ].*)" , description = ["BootCD" ], descriptionDone = ["BootCD" ])
206203bs_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" )
207205bs_upload_iso = steps .ShellCommand (name = "uploadiso" , command = ["bash" , scripts_root + "uploadiso" ], description = ["uploading" ], descriptionDone = ["uploaded" ])
208206bs_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" ])
209209
210210compiler_re = re .compile ("\-\- The C compiler identification is (GNU|MSVC) ([\.\d]+)" )
211211build_type_re = re .compile ("\-\- Build Type\: (Debug|Release)" )
@@ -237,16 +237,46 @@ def make_bs_configure(*args):
237237 extract_fn = extract_build_props
238238 )
239239
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+
240270Build_GCCLin_x86 = util .BuildFactory ();
241271Build_GCCLin_x86 .addStep (bs_clean )
242272Build_GCCLin_x86 .addStep (bs_git )
243273Build_GCCLin_x86 .addStep (bs_prepare_source )
244274Build_GCCLin_x86 .addStep (make_bs_configure ())
245275Build_GCCLin_x86 .addStep (bs_bootcd )
246276Build_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" ))
250280Build_GCCLin_x86 .addStep (bs_upload_iso )
251281
252282Build_GCCLin_x86_Release = util .BuildFactory ();
@@ -282,56 +312,36 @@ Build_MSVC_x64.addStep(bs_prepare_source)
282312Build_MSVC_x64 .addStep (make_bs_configure ())
283313Build_MSVC_x64 .addStep (bs_bootcd )
284314Build_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" ))
290320Build_MSVC_x64 .addStep (bs_upload_iso )
291321
292322Test_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" ))
294324Test_KVM .addStep (bs_submit_results )
295325
296326Test_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" ))
298328Test_KVM_x64 .addStep (bs_submit_results )
299329
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-
310330Test_VBox = util .BuildFactory ();
311331Test_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 ( ))
313333Test_VBox .addStep (bs_submit_results )
314334
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-
325335Test_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 )
327337
328338Test_WHS = util .BuildFactory ();
329339Test_WHS .addStep (bs_clean )
330340Test_WHS .addStep (bs_git )
331341Test_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 )
335345
336346
337347c ['builders' ] = [
@@ -368,9 +378,6 @@ c['builders'] = [
368378
369379 util .BuilderConfig (name = "Test KVM" , workernames = ["Carrier" ], builddir = "Test_KVM" , factory = Test_KVM ),
370380 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),
374381 util .BuilderConfig (name = "Test Win2003_x64" , workernames = ["Carrier-Win2003-x64" ], builddir = "Test_Win2003_x64" , factory = Test_Win2003_x64 ),
375382 util .BuilderConfig (name = "Test WHS" , workernames = ["Carrier-WHS-Bot" ], builddir = "Test_WHS" , factory = Test_WHS ),
376383 util .BuilderConfig (name = "Test VBox" , workernames = ["Testee" ], builddir = "Test_VBox" , factory = Test_VBox ),
@@ -396,19 +403,6 @@ c['services'] = [
396403 'failure' : 1
397404 }
398405 ),
399- # reporters.MailNotifier(
400- # fromaddr="buildbot@reactos.org",
401- # sendToInterestedUsers=False,
402- # extraRecipients=["ros-builds@reactos.org"],
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- # ),
412406 reporters .GitHubStatusPush (
413407 token = credentials .get ("github" , "bbtoken" )
414408 ),
0 commit comments