WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
43519
Upload incremental webkit test results json to server
https://bugs.webkit.org/show_bug.cgi?id=43519
Summary
Upload incremental webkit test results json to server
Victor Wang
Reported
2010-08-04 16:27:33 PDT
Currently, run_webkit_tests merges the test results for the current run with the archived results.json and uploads the full results.json to test-results server. To improve the performance, we should only upload the incremental test results and let the server handle the merge.
Attachments
Proposed Patch
(15.28 KB, patch)
2010-08-04 16:32 PDT
,
Victor Wang
ojan
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Victor Wang
Comment 1
2010-08-04 16:32:32 PDT
Created
attachment 63510
[details]
Proposed Patch
Ojan Vafai
Comment 2
2010-08-05 11:10:39 PDT
Comment on
attachment 63510
[details]
Proposed Patch Looks good. Please make the changes below and feel free to commit.
> + # Generate the JSON output file that has full results. > if not self._json: > self._json = self.get_json() > if self._json: > - # Specify separators in order to get compact encoding. > - json_data = simplejson.dumps(self._json, separators=(',', ':')) > - json_string = self.JSON_PREFIX + json_data + self.JSON_SUFFIX > - > - results_file = codecs.open(self._results_file_path, "w", "utf-8") > - results_file.write(json_string) > - results_file.close() > + self._generate_json_file(self._json, self._results_file_path) > + > + # Generate the JSON output file that only has incremental results. > + if self._generate_incremental_results: > + json = self.get_json(incremental=True) > + if json: > + self._generate_json_file( > + json, self._incremental_results_file_path)
Once we get all the bots using incremental results, I think we should have setting _generate_incremental_results mean that we don't write out the full results file. Mind putting in a FIXME for that?
> + for d in buildinfo[JRG.FIXABLE]: > + for (k, v) in d.iteritems(): > + if k in fixable: > + fixable[k] = fixable[k] + v > + else: > + fixable[k] = v
> + for r in test[JRG.RESULTS]: > + if r[1] == JRG.FAIL_RESULT: > + failed = r[0] > + self.assertTrue(failed == 1) > + > + timing = 0 > + for t in test[JRG.TIMES]: > + if t[1] == test_timings[test_name]: > + timing = t[0] > + self.assertTrue(timing == 1)
For readability sake, abbreviated variable names are discouraged in WebKit code (i.e. for d, k, v, r and t).
Victor Wang
Comment 3
2010-08-05 14:40:10 PDT
Committed
r64786
: <
http://trac.webkit.org/changeset/64786
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug