Currently there is no escalation mechanism in case CI build fails in the master branch.
In order to notify the team members of such events, a Google Chat bot should be implemented.
Supported functionality
- Every hour the bot should review the status of the latest builds in
master branches of Spine libraries:
base
time
core-java
web
gcloud-java
bootstrap
money
jdbc-storage
- In case the latest
master branch build is failed, the bot should create a new thread in the "Spine Developers" room in the Google Chat. The message should list
- The message stating the build has failed and the name of the library.
- The link to the build.
- The time since when the build has been broken.
- The title of the latest commit.
-
In case the build is not fixed in an hour, the bot sends the corresponding message to the same thread again.
-
If the build is fixed, the bot notifies the group via the same thread that the issue is now resolved.
Hard reset
As an optional step, the bot may be configured to perform the hard reset to the latest successful commit to the master. Such a drastic measure may be taken if the build does not get a fix in 12 hours since the initial issue discovery.
However, such an operation is a risky action, as the commit history may be lost. So the hard reset option needs to be discussed additionally, perhaps, with an inclusion of a repository backup procedure (i.e. an upload of the whole repository along with its history to the Google Storage).
Implementation
The chat bot application should be written in Spine. Once done, it will be hosted in the Google Cloud.
The codebase for the chat bot should reside in the distinct SpineEventEngine/chat-bot repository.
Currently there is no escalation mechanism in case CI build fails in the
masterbranch.In order to notify the team members of such events, a Google Chat bot should be implemented.
Supported functionality
masterbranches of Spine libraries:basetimecore-javawebgcloud-javabootstrapmoneyjdbc-storagemasterbranch build is failed, the bot should create a new thread in the "Spine Developers" room in the Google Chat. The message should listIn case the build is not fixed in an hour, the bot sends the corresponding message to the same thread again.
If the build is fixed, the bot notifies the group via the same thread that the issue is now resolved.
Hard reset
As an optional step, the bot may be configured to perform the hard reset to the latest successful commit to the
master. Such a drastic measure may be taken if the build does not get a fix in 12 hours since the initial issue discovery.However, such an operation is a risky action, as the commit history may be lost. So the hard reset option needs to be discussed additionally, perhaps, with an inclusion of a repository backup procedure (i.e. an upload of the whole repository along with its history to the Google Storage).
Implementation
The chat bot application should be written in Spine. Once done, it will be hosted in the Google Cloud.
The codebase for the chat bot should reside in the distinct
SpineEventEngine/chat-botrepository.