[ews-app] Update primary keys for handling multiple Buildbot instances
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2019 23:09:31 +0000 (23:09 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2019 23:09:31 +0000 (23:09 +0000)
commitf41032f1c700848e458b37cc57fca2b3676db0bf
tree93a0c8255252b02c42a38de25d5a60fc3ad88b29
parent9f293b16f55e6863a9fb019ed03d4ac0cf29a429
[ews-app] Update primary keys for handling multiple Buildbot instances
https://bugs.webkit.org/show_bug.cgi?id=195120

Reviewed by Stephanie Lewis.

Use a new primary key uid for build and step tables. Previous primary keys build_id and step_id
were not enough to handle multiple buildbot instances. This new primary key uid would be generated
by a combination of buildbot_instance_id and current primary key. e.g.: buildbot_instance_id + build_id

* BuildSlaveSupport/ews-app/ews/models/build.py: Added new primary key uid.
* BuildSlaveSupport/ews-app/ews/models/step.py: Ditto.
* BuildSlaveSupport/ews-app/ews/models/buildbotinstance.py: Generate uid and instance_id.
* BuildSlaveSupport/ews-app/ews/views/results.py: Updated to receive hostname in events.
* BuildSlaveSupport/ews-build/events.py: Send hostname along-with events.
* BuildSlaveSupport/ews-build/master.cfg: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/BuildSlaveSupport/ews-app/ews/models/build.py
Tools/BuildSlaveSupport/ews-app/ews/models/buildbotinstance.py
Tools/BuildSlaveSupport/ews-app/ews/models/step.py
Tools/BuildSlaveSupport/ews-app/ews/views/results.py
Tools/BuildSlaveSupport/ews-build/events.py
Tools/BuildSlaveSupport/ews-build/master.cfg
Tools/ChangeLog