Changeset 92708 in webkit
- Timestamp:
- Aug 9, 2011 2:21:20 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/checkout.js
r92396 r92708 33 33 { 34 34 return kWebKitTrunk + 'LayoutTests/' + testName; 35 } 35 }; 36 37 checkout.isAvailable = function(callback) 38 { 39 net.ajax({ 40 url: config.kLocalServerURL + '/ping', 41 success: function() { 42 callback(true); 43 }, 44 error: function() { 45 callback(false); 46 }, 47 }); 48 }; 36 49 37 50 checkout.updateExpectations = function(failureInfoList, callback) 38 51 { 39 net.post( '/updateexpectations', JSON.stringify(failureInfoList), function() {52 net.post(config.kLocalServerURL + '/updateexpectations', JSON.stringify(failureInfoList), function() { 40 53 callback(); 41 54 }); … … 44 57 checkout.optimizeBaselines = function(testName, callback) 45 58 { 46 net.post( '/optimizebaselines?' + $.param({59 net.post(config.kLocalServerURL + '/optimizebaselines?' + $.param({ 47 60 'test': testName, 48 61 }), function() { … … 56 69 var extensionList = Array.prototype.concat.apply([], failureInfo.failureTypeList.map(results.failureTypeToExtensionList)); 57 70 base.callInSequence(function(extension, callback) { 58 net.post(' /rebaseline?' + $.param({71 net.post('config.kLocalServerURL + /rebaseline?' + $.param({ 59 72 'builder': failureInfo.builderName, 60 73 'test': failureInfo.testName, -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/config.js
r92355 r92708 57 57 config.kTracURL = 'http://trac.webkit.org'; 58 58 config.kBugzillaURL = 'https://bugs.webkit.org'; 59 config.kLocalServerURL = 'http://127.0.0.1:8127'; 59 60 60 61 config.kRevisionAttr = 'data-revision'; -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/main.js
r92360 r92708 37 37 { 38 38 $('.butterbar').fadeOut('fast'); 39 checkForLocalServer(); 39 40 } 40 41 … … 285 286 } 286 287 288 function checkForLocalServer() 289 { 290 checkout.isAvailable(function(available) { 291 if (!available) 292 displayOnButterbar('Run "webkit-patch garden-o-matic" to enable rebaseline features.') 293 }); 294 } 295 287 296 function update() 288 297 { … … 294 303 model.analyzeUnexpectedFailures(showUnexpectedFailure); 295 304 dismissButterbar(); 305 checkForLocalServer(); 296 306 }); 297 307 } -
trunk/Tools/ChangeLog
r92707 r92708 1 2011-08-09 Adam Barth <abarth@webkit.org> 2 3 Teach build.webkit.org's garden-o-matic how to talk to the local server 4 https://bugs.webkit.org/show_bug.cgi?id=65940 5 6 Reviewed by Dimitri Glazkov. 7 8 After this patch, the version of garden-o-matic on build.webkit.org is 9 fully functional. It can interact with the local server via CORS. 10 11 * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/checkout.js: 12 * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/config.js: 13 * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/main.js: 14 * Scripts/webkitpy/tool/commands/gardenomatic.py: 15 * Scripts/webkitpy/tool/servers/gardeningserver.py: 16 1 17 2011-08-09 Adam Barth <abarth@webkit.org> 2 18 -
trunk/Tools/Scripts/webkitpy/tool/commands/gardenomatic.py
r91519 r92708 23 23 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 25 from webkitpy.tool. commands.abstractlocalservercommand import AbstractLocalServerCommand25 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand 26 26 from webkitpy.tool.servers.gardeningserver import GardeningHTTPServer 27 27 28 28 29 class GardenOMatic(Abstract LocalServerCommand):29 class GardenOMatic(AbstractDeclarativeCommand): 30 30 name = "garden-o-matic" 31 31 help_text = "Experimental command for gardening the WebKit tree." 32 32 33 server = GardeningHTTPServer 34 launch_path = "/garden-o-matic.html" 33 url = "http://build.webkit.org/TestFailures/garden-o-matic.html" 35 34 36 def _prepare_config(self, options, args, tool):37 return {38 'tool': tool,39 }35 def execute(self, options, args, tool): 36 self._tool.user.open_url(self.url) 37 httpd = GardeningHTTPServer(httpd_port=8127, config={'tool': tool}) 38 httpd.serve_forever() -
trunk/Tools/Scripts/webkitpy/tool/servers/gardeningserver.py
r92707 r92708 128 128 self._serve_text('success') 129 129 130 def ping(self): 131 self._serve_text('pong') 132 130 133 def updateexpectations(self): 131 134 self._expectations_updater().update_expectations(self._read_entity_body_as_json())
Note: See TracChangeset
for help on using the changeset viewer.