Bug 104184

Summary: nrwt: record the order and run times of all of the tests in a single file
Product: WebKit Reporter: Dirk Pranke <dpranke>
Component: New BugsAssignee: Dirk Pranke <dpranke>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, kadam, kbalazs, ojan, ossy, rniwa, tony, webkit.review.bot, zarvai
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 103826    
Attachments:
Description Flags
Patch rniwa: review+, webkit.review.bot: commit-queue-

Dirk Pranke
Reported 2012-12-05 16:31:20 PST
nrwt: record the order and run times of all of the tests in a single file
Attachments
Patch (12.38 KB, patch)
2012-12-05 16:33 PST, Dirk Pranke
rniwa: review+
webkit.review.bot: commit-queue-
Dirk Pranke
Comment 1 2012-12-05 16:33:36 PST
Ojan Vafai
Comment 2 2012-12-05 16:45:07 PST
Comment on attachment 177858 [details] Patch Are python dicts ordered and will json.dumps preserve the ordering?
Dirk Pranke
Comment 3 2012-12-05 16:49:05 PST
No, and no. That's why the results tuples include the worker and the order in each worker. I actually wrote a separate script (not included in this patch) that verified that you could reconstruct the tests_run*.txt files from the json and they matched. I believe you can recreate the total ordering of tests across the whole run to within a millisecond with this data; in the unit test data all of the tests complete in less than a millisecond, so the values are all zeros and I'm not doing more fancy testing to verify that we can-do cross-shard ordering here (that, and the unit test only runs with one worker).
WebKit Review Bot
Comment 4 2012-12-10 18:47:26 PST
Comment on attachment 177858 [details] Patch Rejecting attachment 177858 [details] from commit-queue. New failing tests: inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html Full output: http://queues.webkit.org/results/15231765
Dirk Pranke
Comment 5 2012-12-11 13:46:07 PST
Csaba Osztrogonác
Comment 6 2013-05-21 02:12:13 PDT
(In reply to comment #3) > No, and no. That's why the results tuples include the worker and the order in each worker. I actually wrote a separate script (not included in this patch) that verified that you could reconstruct the tests_run*.txt files from the json and they matched. Can we find this script somewhere? tests_run*.txt files were really useful to debug flakinesses related to the order.
Balazs Kelemen
Comment 7 2013-05-21 04:23:24 PDT
(In reply to comment #6) > (In reply to comment #3) > > No, and no. That's why the results tuples include the worker and the order in each worker. I actually wrote a separate script (not included in this patch) that verified that you could reconstruct the tests_run*.txt files from the json and they matched. > > Can we find this script somewhere? tests_run*.txt files were > really useful to debug flakinesses related to the order. +1 IMHO it was better to generate them by default.
Dirk Pranke
Comment 8 2013-05-21 09:57:30 PDT
I have no idea what happened to that script but I'd be happy to write another one. I will post it in a separate bug.
Dirk Pranke
Comment 9 2013-05-21 13:18:42 PDT
script posted in bug 116571. Feel free to play with it / review it / land it at your convenience.
Balazs Kelemen
Comment 10 2013-05-21 15:33:47 PDT
(In reply to comment #9) > script posted in bug 116571. Feel free to play with it / review it / land it at your convenience. Thanks!. I vote for merging the code into rwt and generate the files by default. Ossy? Others?
Dirk Pranke
Comment 11 2013-05-21 16:07:36 PDT
(In reply to comment #10) > (In reply to comment #9) > > script posted in bug 116571. Feel free to play with it / review it / land it at your convenience. > > Thanks!. I vote for merging the code into rwt and generate the files by default. Ossy? Others? I don't particularly want to merge this code back into rwt (since this patch took it out in favor of the new format). It takes up space in the results files, complicates the core run-webkit-tests code, and is unused 99% of the time. That said, I won't stop you if you want to do the work :).
Note You need to log in before you can comment on or make changes to this bug.