Bug 156920 - Add JSC test results in JSON format to a Buildbot log
Summary: Add JSC test results in JSON format to a Buildbot log
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 156989
Blocks: 156595
  Show dependency treegraph
 
Reported: 2016-04-22 12:28 PDT by Srinivasan Vijayaraghavan
Modified: 2016-05-04 23:12 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.19 KB, patch)
2016-04-22 12:38 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (3.28 KB, patch)
2016-04-27 13:33 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (2.87 KB, patch)
2016-04-29 10:31 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (1.56 KB, patch)
2016-05-04 18:09 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivasan Vijayaraghavan 2016-04-22 12:28:18 PDT
Add JSC test results in json format to a buildbot log
Comment 1 Srinivasan Vijayaraghavan 2016-04-22 12:38:53 PDT
Created attachment 277084 [details]
Patch
Comment 2 Srinivasan Vijayaraghavan 2016-04-22 12:40:47 PDT
Will be easier to iterate on the front-end component of #156595 once this is up.
Comment 3 Srinivasan Vijayaraghavan 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.
Comment 4 WebKit Commit Bot 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.
Comment 5 WebKit Commit Bot 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>
Comment 6 WebKit Commit Bot 2016-04-22 15:38:38 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 WebKit Commit Bot 2016-04-25 12:26:24 PDT
Re-opened since this is blocked by bug 156989
Comment 8 Daniel Bates 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.
Comment 9 Alexey Proskuryakov 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.
Comment 10 Srinivasan Vijayaraghavan 2016-04-27 13:33:02 PDT
Created attachment 277531 [details]
Patch
Comment 11 Srinivasan Vijayaraghavan 2016-04-27 14:03:06 PDT
Now using Python's .format() method for interpolation.
Comment 12 Srinivasan Vijayaraghavan 2016-04-29 10:31:20 PDT
Created attachment 277713 [details]
Patch
Comment 13 Daniel Bates 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.
Comment 14 WebKit Commit Bot 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>
Comment 15 WebKit Commit Bot 2016-04-29 11:23:15 PDT
All reviewed patches have been landed.  Closing bug.
Comment 16 Srinivasan Vijayaraghavan 2016-05-04 18:07:12 PDT
Fix on the way!
Comment 17 Srinivasan Vijayaraghavan 2016-05-04 18:09:18 PDT
Created attachment 278150 [details]
Patch
Comment 18 WebKit Commit Bot 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>
Comment 19 WebKit Commit Bot 2016-05-04 23:12:54 PDT
All reviewed patches have been landed.  Closing bug.