Bug 156920

Summary: Add JSC test results in JSON format to a Buildbot log
Product: WebKit Reporter: Srinivasan Vijayaraghavan <webkit>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, commit-queue, dbates, dburkart
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 156989    
Bug Blocks: 156595    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Srinivasan Vijayaraghavan
Reported 2016-04-22 12:28:18 PDT
Add JSC test results in json format to a buildbot log
Attachments
Patch (3.19 KB, patch)
2016-04-22 12:38 PDT, Srinivasan Vijayaraghavan
no flags
Patch (3.28 KB, patch)
2016-04-27 13:33 PDT, Srinivasan Vijayaraghavan
no flags
Patch (2.87 KB, patch)
2016-04-29 10:31 PDT, Srinivasan Vijayaraghavan
no flags
Patch (1.56 KB, patch)
2016-05-04 18:09 PDT, Srinivasan Vijayaraghavan
no flags
Srinivasan Vijayaraghavan
Comment 1 2016-04-22 12:38:53 PDT
Srinivasan Vijayaraghavan
Comment 2 2016-04-22 12:40:47 PDT
Will be easier to iterate on the front-end component of #156595 once this is up.
Srinivasan Vijayaraghavan
Comment 3 2016-04-22 12:42:57 PDT
This addition to the back-end will make it easier to iterate on the front-end changes in #156595.
WebKit Commit Bot
Comment 4 2016-04-22 14:46:19 PDT
Comment on attachment 277084 [details] Patch Rejecting attachment 277084 [details] from commit-queue. svijayaraghavan@apple.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json. - If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.
WebKit Commit Bot
Comment 5 2016-04-22 15:38:34 PDT
Comment on attachment 277084 [details] Patch Clearing flags on attachment: 277084 Committed r199916: <http://trac.webkit.org/changeset/199916>
WebKit Commit Bot
Comment 6 2016-04-22 15:38:38 PDT
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 7 2016-04-25 12:26:24 PDT
Re-opened since this is blocked by bug 156989
Daniel Bates
Comment 8 2016-04-25 12:49:05 PDT
Comment on attachment 277084 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277084&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:302 > + command = ["perl", "./Tools/Scripts/run-javascriptcore-tests", "--no-build", WithProperties("--%(configuration)s", "--json-output=%(_jsonFileName)s")] This will either break buildbot or will not have the desired effect because WithProperties() only interpolates BuildBot property names and will try to substitute the value of the non-existent BuildBot property _jsonFileName for %(_jsonFileName)s. That is, WithProperties() will not interpolate the value of the local variable _jsonFileName. > Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:304 > + logfiles = {"json": _jsonFileName} As mentioned to Srinivasan in-person today (04/25), I do not see the need to add the JSON output files as a log file that is hyperlinked from a Buildbot build page as a human is unlikely to make use of the JSON result. Moreover, we should explicitly upload the JSON output from the slave to the master (say, as part of the layout test results archive) instead of taking advantage of the implicit uploading of log files.
Alexey Proskuryakov
Comment 9 2016-04-25 14:56:57 PDT
> As mentioned to Srinivasan in-person today (04/25), I do not see the need to add the JSON output files as a log file that is hyperlinked from a Buildbot build page as a human is unlikely to make use of the JSON result. I think that it's valuable to have the link for debugging, if nothing else. > Moreover, we should explicitly upload the JSON output from the slave to the master (say, as part of the layout test results archive) instead of taking advantage of the implicit uploading of log files. This is definitely not part of the layout tests archive, so we would need to devise an entirely new location for it (including a cleanup strategy etc). It seemed like an overkill to me.
Srinivasan Vijayaraghavan
Comment 10 2016-04-27 13:33:02 PDT
Srinivasan Vijayaraghavan
Comment 11 2016-04-27 14:03:06 PDT
Now using Python's .format() method for interpolation.
Srinivasan Vijayaraghavan
Comment 12 2016-04-29 10:31:20 PDT
Daniel Bates
Comment 13 2016-04-29 10:34:19 PDT
Comment on attachment 277713 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=277713&action=review r=me > Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:302 > + command = ["perl", "./Tools/Scripts/run-javascriptcore-tests", "--no-build", WithProperties("--%(configuration)s", "--json-output={0}".format(jsonFileName))] This is OK as-is. We could have passed jsonFileName as an explicit argument instead of interpolating it into the --json-output argument as Getopt::Long, used by run-javascriptcore-tests to parse command line arguments, is smart enough to know that the argument that follow the flag --json-output is the value for the flag.
WebKit Commit Bot
Comment 14 2016-04-29 11:23:09 PDT
Comment on attachment 277713 [details] Patch Clearing flags on attachment: 277713 Committed r200253: <http://trac.webkit.org/changeset/200253>
WebKit Commit Bot
Comment 15 2016-04-29 11:23:15 PDT
All reviewed patches have been landed. Closing bug.
Srinivasan Vijayaraghavan
Comment 16 2016-05-04 18:07:12 PDT
Fix on the way!
Srinivasan Vijayaraghavan
Comment 17 2016-05-04 18:09:18 PDT
WebKit Commit Bot
Comment 18 2016-05-04 23:12:49 PDT
Comment on attachment 278150 [details] Patch Clearing flags on attachment: 278150 Committed r200450: <http://trac.webkit.org/changeset/200450>
WebKit Commit Bot
Comment 19 2016-05-04 23:12:54 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.