Add monitoring of patches and queues to the QueueStatusServer
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2013 07:36:10 +0000 (07:36 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2013 07:36:10 +0000 (07:36 +0000)
commita104c2b7d81e022ce23e7b1280a2ad5f23ba1695
tree07773d9cf603a8220203e1f87b3dc31639303bec
parentd16540ce6c5fa6700af6f9b4e3d7b9957a0ed935
Add monitoring of patches and queues to the QueueStatusServer
https://bugs.webkit.org/show_bug.cgi?id=107612

Patch by Alan Cutter <alancutter@chromium.org> on 2013-01-22
Reviewed by Adam Barth.

Created classes for recording events into the datastore and integrated them into the existing handlers.
Code for presenting the recorded data will come in a separate patch.

* QueueStatusServer/app.yaml:
* QueueStatusServer/config/__init__.py: Added.
* QueueStatusServer/config/logging.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
* QueueStatusServer/config/messages.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
* QueueStatusServer/handlers/nextpatch.py:
(NextPatch.get):
(NextPatch._assign_patch):
* QueueStatusServer/handlers/releasepatch.py:
(ReleasePatch.post):
* QueueStatusServer/handlers/updatestatus.py:
(UpdateStatus.post):
* QueueStatusServer/handlers/updateworkitems.py:
(UpdateWorkItems._parse_work_items_string):
(UpdateWorkItems):
(UpdateWorkItems._update_work_items_from_request):
(UpdateWorkItems._queue_from_request):
(UpdateWorkItems.post):
* QueueStatusServer/loggers/__init__.py: Added.
* QueueStatusServer/loggers/recordbotevent.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
(RecordBotEvent):
(RecordBotEvent.activity):
* QueueStatusServer/loggers/recordpatchevent.py: Added.
(RecordPatchEvent):
(RecordPatchEvent.added):
(RecordPatchEvent.retrying):
(RecordPatchEvent.started):
(RecordPatchEvent.stopped):
(RecordPatchEvent.updated):
(RecordPatchEvent._get_patches_waiting):
* QueueStatusServer/model/patchlog.py: Copied from Tools/QueueStatusServer/model/queuestatus.py.
(PatchLog):
(PatchLog.lookup):
(PatchLog.calculate_wait_duration):
(PatchLog.calculate_process_duration):
* QueueStatusServer/model/queuelog.py: Copied from Tools/QueueStatusServer/handlers/nextpatch.py.
(QueueLog):
(QueueLog.get_current):
(QueueLog.create_key):
* QueueStatusServer/model/queuestatus.py:
(QueueStatus.is_retry_request):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140513 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
Tools/ChangeLog
Tools/QueueStatusServer/app.yaml
Tools/QueueStatusServer/config/__init__.py [new file with mode: 0644]
Tools/QueueStatusServer/config/logging.py [new file with mode: 0644]
Tools/QueueStatusServer/config/messages.py [new file with mode: 0644]
Tools/QueueStatusServer/handlers/nextpatch.py
Tools/QueueStatusServer/handlers/releasepatch.py
Tools/QueueStatusServer/handlers/updatestatus.py
Tools/QueueStatusServer/handlers/updateworkitems.py
Tools/QueueStatusServer/loggers/__init__.py [new file with mode: 0644]
Tools/QueueStatusServer/loggers/recordbotevent.py [new file with mode: 0644]
Tools/QueueStatusServer/loggers/recordpatchevent.py [new file with mode: 0644]
Tools/QueueStatusServer/model/patchlog.py [new file with mode: 0644]
Tools/QueueStatusServer/model/queuelog.py [new file with mode: 0644]
Tools/QueueStatusServer/model/queuestatus.py