Changeset 159690 in webkit
- Timestamp:
- Nov 22, 2013 8:26:27 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r159679 r159690 1 2013-11-22 László Langó <lango@inf.u-szeged.hu> 2 3 EWS creates 0 byte sized log files 4 https://bugs.webkit.org/show_bug.cgi?id=107606 5 6 Reviewed by Ryosuke Niwa. 7 8 There was a modification in r138264, that tried to make less log, 9 because some of the messeges were duplicated. After this the EWS 10 created the log file (with the same name as the bugID) but doesn't 11 write anything into it, even if there were errors during the build. 12 From now only creates the log file only if there is some error. 13 14 * Scripts/webkitpy/tool/bot/queueengine.py: 15 (QueueEngine.run): If the build and tests pass, there is no ScriptError raised, 16 there is nothing to log. Open the log file only if a ScriptError was raised to 17 avoid to make empty log files for bugs. 18 (QueueEngine._open_work_log): Does not need to tee STDOUT to log file anymore, 19 because of changes in r138264. Teeing is used for locally testing purposes and 20 this feature is not used anymore. 21 (QueueEngine._ensure_work_log_closed): Close the logfile. We don't use output 22 teeing anymore. It is a necessary change because of QueueEngine._open_work_log 23 change. 24 * Scripts/webkitpy/tool/commands/earlywarningsystem.py: 25 (AbstractEarlyWarningSystem.review_patch): Raise again the captured ScriptError 26 to be able to handle it in QueueEngine.run. Without this change, the existing 27 exception handler never run (the process_work_item method never raise ScriptError) 28 We can get the error message only from the ScriptError at this point. 29 1 30 2013-11-21 Peter Molnar <pmolnar.u-szeged@partner.samsung.com> 2 31 -
trunk/Tools/Scripts/webkitpy/tool/bot/queueengine.py
r143109 r159690 98 98 continue 99 99 100 # FIXME: Work logs should not depend on bug_id specificaly.101 # This looks fixed, no?102 self._open_work_log(work_item)103 100 try: 104 101 if not self._delegate.process_work_item(work_item): … … 106 103 continue 107 104 except ScriptError, e: 105 self._open_work_log(work_item) 106 self._work_log.write(e.message_with_output()) 108 107 # Use a special exit code to indicate that the error was already 109 108 # handled in the child process and we should just keep looping. … … 140 139 if not work_item_log_path: 141 140 return 142 self._work_log = self._output_tee. add_log(work_item_log_path)141 self._work_log = self._output_tee._open_log_file(work_item_log_path) 143 142 144 143 def _ensure_work_log_closed(self): 145 144 # If we still have a bug log open, close it. 146 145 if self._work_log: 147 self._ output_tee.remove_log(self._work_log)146 self._work_log.close() 148 147 self._work_log = None 149 148 -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py
r157682 r159690 93 93 self._upload_results_archive_for_patch(patch, results_archive) 94 94 self._did_fail(patch) 95 # FIXME: We're supposed to be able to raise e again here and have 96 # one of our base classes mark the patch as fail, but there seems 97 # to be an issue with the exit_code. 98 return False 95 raise e 99 96 100 97 # EarlyWarningSystemDelegate methods
Note: See TracChangeset
for help on using the changeset viewer.