telescope icon indicating copy to clipboard operation
telescope copied to clipboard

Investigate Slack integrations for failed or successful builds

Open humphd opened this issue 4 years ago • 13 comments

What would you like to be added:

Let's see what we can do to add some notifications to our #telescope Slack channel. Maybe there are existing tools that we can leverage for this, or maybe we can build our own (possibly as a separate repo).

Why would you like this to be added:

We have a number of situations that would be good to know about when the occur. For example:

  • dev or prod go down (e.g., something broke one of the servers)
  • dev or prod get deployed (e.g., new build available)

Probably there are other things, but these are the main ones that occur to me.

humphd avatar Nov 15 '20 19:11 humphd

I would like to try it.

PedroFonsecaDEV avatar Nov 16 '20 10:11 PedroFonsecaDEV

@PedroFonsecaDEV please assign yourself.

humphd avatar Nov 16 '20 16:11 humphd

Good move to assign me

sirinoks avatar Feb 09 '22 17:02 sirinoks

Research: Github webhooks event: release Making a Slack bot

What I need to find is an event when a build occurs on master, and when it breaks.

sirinoks avatar Feb 09 '22 19:02 sirinoks

Look into /tools Autodeployment server

sirinoks avatar Feb 15 '22 14:02 sirinoks

A build on the staging/production boxes is done when this function is called: https://github.com/Seneca-CDOT/telescope/blob/master/tools/autodeployment/builds.js#L17-L31

If the code is === 0 then it passed, otherwise it failed, so pseudo-code would be:

if(code !==0) {
  slackBot.sendMessage("Build failed...");
}

humphd avatar Feb 15 '22 15:02 humphd

@sirinoks, what has been your progress related to this? I know that you were researching for any Slack APIs that would let you do this, but I don't know what you concluded with.

JerryHue avatar Mar 22 '22 23:03 JerryHue

@sirinoks, what has been your progress related to this? I know that you were researching for any Slack APIs that would let you do this, but I don't know what you concluded with.

There has been no progress since Feb 15th. I still need to figure out the automation stuff and I haven't looked there.

sirinoks avatar Mar 23 '22 00:03 sirinoks

@sirinoks, what has been your progress related to this? I know that you were researching for any Slack APIs that would let you do this, but I don't know what you concluded with.

There has been no progress since Feb 15th. I still need to figure out the automation stuff and I haven't looked there.

Perhaps you can talk to @DukeManh , I remember he added a Slackbot but it was in the wrong channel so it was removed

cindyorangis avatar Mar 23 '22 02:03 cindyorangis

Perhaps you can talk to @DukeManh , I remember he added a Slackbot but it was in the wrong channel so it was removed

So, the problem isn't in the slackbot related stuff, but in automation stuff. But I'm pretty sure there is also someone to ask about that. Either way, I have limited time now. I might get to this, but I think I was told to prioritize docs for now. I'm sorry for my inconsistency, I also want to have this done, since it's pretty interesting.

sirinoks avatar Mar 24 '22 06:03 sirinoks

@sirinoks, that's totally fine. In the case you'd prefer to prioritize documentation, we can push the issue to release 3.0. Let me know if you are okay with that.

JerryHue avatar Mar 24 '22 11:03 JerryHue

Follow up with Dave for a meeting to discuss this.

AmasiaNalbandian avatar Mar 24 '22 13:03 AmasiaNalbandian

See also #3604

humphd avatar May 16 '22 16:05 humphd