Skip to content

Commit

Permalink
Fix broken slack messages in Kibana serverless release (#172484)
Browse files Browse the repository at this point in the history
## Summary
It's the long links we're trying to post to Slack that are breaking the
bot's messaging.

The block build kit says the limit is 3001 characters, we're above that
if we're posting a single "useful links" section, this is why I broke
these up. Tested in
https://buildkite.com/elastic/kibana-serverless-release-1/builds/89 =>
(https://elastic.slack.com/archives/C05NJL80DB8/p1701701355364799)
  • Loading branch information
delanni authored Dec 4, 2023
1 parent 7133509 commit 79b3927
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,19 @@ async function sendReleaseSlackAnnouncement({
text:
'*Useful links:*\n\n' +
Object.entries(usefulLinksSection)
.filter(([name]) => !name.includes('GPCTL'))
.map(([name, link]) => ` • <${link}|${name}>`)
.join('\n'),
},
},
{
type: 'section',
text: {
type: 'mrkdwn',
text:
'*GPCTL Dashboards:*\n\n' +
Object.entries(usefulLinksSection)
.filter(([name]) => name.includes('GPCTL'))
.map(([name, link]) => ` • <${link}|${name}>`)
.join('\n'),
},
Expand Down

0 comments on commit 79b3927

Please sign in to comment.