Skip to content

Use Slack Table Block to display test results in Slack alerts #2225

@quickcoffee

Description

@quickcoffee

Is your feature request related to a problem? Please describe.

When elementary sends test failure alerts to Slack, results are currently rendered as code Block sections (formatted as JSON or markdown table) — making it hard to quickly scan multiple test failures at a glance, especially if the number of rows/columns grows.

Describe the solution you'd like

Use Slack's new Table Block (available via Block Kit and also in the Slack Python SDK per this PR) to render test results in Slack alerts as a structured, column-aligned table.

The Table Block supports up to 100 rows and 20 columns, allows rich_text cells (enabling links, bold, emoji, and mentions), and supports column-level alignment and text wrapping — all of which would make elementary's Slack alerts significantly more scannable.

Describe alternatives you've considered

  • The current approach using code blocks with text formatting is functional but loses structure with error volume and detail.

Additional context

The Table Block was recently added to Slack's Block Kit reference. It's published programmatically via chat.postMessage using the blocks array — no special permissions beyond existing bot scopes should be required. The rich_text cell type would even allow direct links from a test name cell straight to the relevant model or test detail in the elementary UI.

Would you be willing to contribute this feature?

Happy to contribute or assist with testing/feedback. Let me know what guidance or context would be helpful to move this forward.

Current State:
Image

Desired State:
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions