WebKit Bugzilla
Attachment 372485 Details for
Bug 199025
: [ews-build] Add step to analyze Compile WebKit failures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
AnalyzeCompileWebKitResults.patch (text/plain), 3.32 KB, created by
Aakash Jain
on 2019-06-19 12:35:54 PDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Aakash Jain
Created:
2019-06-19 12:35:54 PDT
Size:
3.32 KB
patch
obsolete
>Index: Tools/ChangeLog >=================================================================== >--- Tools/ChangeLog (revision 246604) >+++ Tools/ChangeLog (working copy) >@@ -1,3 +1,17 @@ >+2019-06-19 Aakash Jain <aakash_jain@apple.com> >+ >+ [ews-build] Add step to analyze Compile WebKit failures >+ https://bugs.webkit.org/show_bug.cgi?id=199025 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * BuildSlaveSupport/ews-build/steps.py: >+ (CompileWebKit.evaluateCommand): Add AnalyzeCompileWebKitResults step. >+ (CompileWebKitToT): set haltOnFailure to False since we need to run AnalyzeCompileWebKitResults step. >+ (AnalyzeCompileWebKitResults): Class to analyze compile webkit steps results. >+ (AnalyzeCompileWebKitResults.start): If ToT fails to build, retry the build, else marked the build as failed. Note that >+ this step is run only when compile-webkit failed. >+ > 2019-06-19 Michael Catanzaro <mcatanzaro@igalia.com> > > Unreviewed, fix build warnings in TestWebKitAPIInjectedBundle >Index: Tools/BuildSlaveSupport/ews-build/steps.py >=================================================================== >--- Tools/BuildSlaveSupport/ews-build/steps.py (revision 246604) >+++ Tools/BuildSlaveSupport/ews-build/steps.py (working copy) >@@ -617,7 +617,7 @@ class CompileWebKit(shell.Compile): > def evaluateCommand(self, cmd): > if cmd.didFail(): > self.setProperty('patchFailedToBuild', True) >- self.build.addStepsAfterCurrentStep([UnApplyPatchIfRequired(), CompileWebKitToT()]) >+ self.build.addStepsAfterCurrentStep([UnApplyPatchIfRequired(), CompileWebKitToT(), AnalyzeCompileWebKitResults()]) > else: > self.build.addStepsAfterCurrentStep([ArchiveBuiltProduct(), UploadBuiltProduct(), TransferToS3()]) > >@@ -626,7 +626,7 @@ class CompileWebKit(shell.Compile): > > class CompileWebKitToT(CompileWebKit): > name = 'compile-webkit-tot' >- haltOnFailure = True >+ haltOnFailure = False > > def doStepIf(self, step): > return self.getProperty('patchFailedToBuild') or self.getProperty('patchFailedAPITests') >@@ -638,6 +638,35 @@ class CompileWebKitToT(CompileWebKit): > return shell.Compile.evaluateCommand(self, cmd) > > >+class AnalyzeCompileWebKitResults(buildstep.BuildStep): >+ name = 'analyze-compile-webkit-results' >+ description = ['analyze-compile-webkit-results'] >+ descriptionDone = ['analyze-compile-webkit-results'] >+ >+ def start(self): >+ compile_webkit_tot_result = self.getStepResult(CompileWebKitToT.name) >+ >+ if compile_webkit_tot_result == FAILURE: >+ self.finished(FAILURE) >+ message = 'Unable to build WebKit without patch, retrying build' >+ self.descriptionDone = message >+ self.build.buildFinished([message], RETRY) >+ return defer.succeed(None) >+ >+ self.finished(FAILURE) >+ self.build.results = FAILURE >+ message = 'Patch does not build' >+ self.descriptionDone = message >+ self.build.buildFinished([message], FAILURE) >+ >+ return defer.succeed(None) >+ >+ def getStepResult(self, step_name): >+ for step in self.build.executedSteps: >+ if step.name == step_name: >+ return step.results >+ >+ > class CompileJSCOnly(CompileWebKit): > name = 'build-jsc' > descriptionDone = ['Compiled JSC']
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 199025
: 372485