action #137828
closed
[spike solution][timeboxed:10h] Notification if one of the queries on https://os-autoinst.github.io/qa-tools-backlog-assistant/ is red, e.g. write email to our Slack or o3-admins from backlogger size:S
Added by tinita about 1 year ago.
Updated 11 months ago.
Category:
Feature requests
Description
Motivation¶
See #136007
Acceptance criteria¶
Suggestions¶
- Copied from action #136007: Conduct "lessons learned" with Five Why analysis for network protocols failures on multimachine tests on HA/SAP size:S added
- Description updated (diff)
- Tags deleted (
infra, mob)
- Target version set to Tools - Next
- Description updated (diff)
I added a note on Slack workflows based on webhooks. I only just saw that this was recently enabled
- Description updated (diff)
- Target version changed from Tools - Next to Ready
- Subject changed from Write email to our Slack or o3-admins from backlogger if one of the queries is red to [spike solution][timeboxed:10h] Notification if one of the queries on https://os-autoinst.github.io/qa-tools-backlog-assistant/ is red, e.g. write email to our Slack or o3-admins from backlogger size:S
- Description updated (diff)
- Status changed from New to Workable
- Assignee set to jbaier_cz
- Status changed from Workable to In Progress
Previews in Slack are documented in https://api.slack.com/reference/messaging/link-unfurling#classic_unfurl
It seems to be possible to generate a simple svg from html by just wrapping the table into some other tags.
<svg xmlns="http://www.w3.org/2000/svg">
<!-- Common use case: embed HTML text into SVG -->
<foreignObject xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="100%" height="100%">
<!--
In the context of SVG embedded in an HTML document, the XHTML
namespace could be omitted, but it is mandatory in the
context of an SVG document
-->
<table xmlns="http://www.w3.org/1999/xhtml">
...
</table>
</foreignObject>
</svg>
As a first step, I will try to enhance the backlogger workflow to also generate svg version of the table (a full table and a second one with only the failures for the notification). Those files can be then used together with the OG meta tags to create a nice preview which in turn can be posted/shared/e-mailed as a notification on failure.
For the notification, we will probably need to enhance the backlogger itself to either output some metadata (at least result_icons
usage) or introduce different exit codes. We can then use outputs and/or status checks in the workflow to react and create the necessary notification.
https://github.com/openSUSE/backlogger/pull/22 should target the ability to react on not satisfied queries.
As tinita pointed out, SVG format is not supported inside OG tags, so we might need to go around it and maybe generate md -> html -> pdf -> png (maybe with pandoc action) or generate the image with HTML5 canvas feature.
I am able to render the page into png quite nicely with the following pipe: kramdown index.md | weasyprint - - | magick - -trim image.png
. All components should be available in standard repositories, so adapting the pipeline to use this should not be hard.
- Due date set to 2024-01-20
Setting due date based on mean cycle time of SUSE QE Tools
jbaier_cz wrote in #note-13:
I am able to render the page into png quite nicely with the following pipe: kramdown index.md | weasyprint - - | magick - -trim image.png
. All components should be available in standard repositories, so adapting the pipeline to use this should not be hard.
Note, command magick
is for ImageMagick >= 7.0 which is (sadly) not in the github ubuntu image. One need to use convert
.
After both PR are merged, the last step will be to add the Open Graph definition in the index page (and utilize the preview image) and use the return code of the backlogger to generate the notify action (e-mail/webhook/...).
- Status changed from In Progress to Feedback
- Copied to action #153466: Notification if one of the queries on https://os-autoinst.github.io/qa-tools-backlog-assistant/ is red, e.g. write email to our Slack or o3-admins from backlogger size:M added
- Status changed from Feedback to Resolved
Also available in: Atom
PDF