Repository navigation
feat: DH-24452: Improve slack notify w/ markdown - #447
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The Slack payload’s heading-only fallback text hides both benchmark tables and the report link from screen-reader users and needs to include that content, with the test expectation updated accordingly.
1 open issue
What changed in this PR
This PR changes nightly benchmark notifications from tabbed text to Markdown tables and expands the best/worst summaries to 20 rows each.
Changes:
- Generate Markdown tables and send them in Slack message blocks.
- Add JSON escaping and log Slack response bodies.
- Update tests for Markdown output and payload formatting.
| File | Description |
|---|---|
src/test/java/io/deephaven/benchmark/run/PublishNotificationTest.java |
Tests Markdown tables, escaping, and Slack payload formatting. |
src/main/resources/io/deephaven/benchmark/run/profile/queries/publish.py |
Increases both nightly summary tables from 10 to 20 rows. |
src/main/java/io/deephaven/benchmark/run/PublishNotification.java |
Generates Markdown, builds Slack blocks, and improves request handling. |
Review effort: Balanced
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
7 open issues
ThreadPoolExecutor(download_threads)does not set the pool size; it sets the… · NewThreadPoolExecutor(download_threads)does not set the pool size; it sets the… · New The cache key does not include${{ runner.os }}. If this workflow is ever run on a different OS… · New The cache key does not include${{ runner.os }}. If this workflow is ever run on a different OS… · NewreleaseVersionis set in onefetchAftercallback but read in other callbacks when generating… · NewreleaseVersionis set in onefetchAftercallback but read in other callbacks when generating… · New The response stream (in) is never closed here, which can leak resources and sometimes delay… · New
Review effort: Lite
There was a problem hiding this comment.
🟡 Changes recommended
The truncation check unnecessarily modifies strings that already fit within the size limit, adding an ellipsis or discarding valid characters.
1 open issue
7 resolved since last review
ThreadPoolExecutor(download_threads)does not set the pool size; it sets the…ThreadPoolExecutor(download_threads)does not set the pool size; it sets the… The response stream (in) is never closed here, which can leak resources and sometimes delay…releaseVersionis set in onefetchAftercallback but read in other callbacks when generating…releaseVersionis set in onefetchAftercallback but read in other callbacks when generating… The cache key does not include${{ runner.os }}. If this workflow is ever run on a different OS… The cache key does not include${{ runner.os }}. If this workflow is ever run on a different OS…
Review effort: Balanced


Slack notification (
PublishNotification,publish.py)tableblock instead of a code block. Text wrapping is turned off explicitly, because the Android app wrapped rows when it was left at the default. Benchmark names use code style.Benchmark (Worst Scores by Scr)), replacing the separate headings.Benchmark | Δ5d | Rate | Δ42 | Scr | σ5d | pval.ScrProbis nowpval, since it is a two-sided p-value. The query keeps ASCII names (Dif5d,DifRls,Var5d) and Java adds the symbols, because non-ASCII characters in the script were garbled on the way into the Deephaven server's Python.Δ42), from a new one-rownightly_releasetable. It falls back toΔRlswhen the window has no older version."ok":falseerrors are visible.Data window and loading (
publish.py,benchmark_tables.dh.py,remote-benchmarks.yml)Content-Length, and are written to a.partfile and renamed, so a failed download never reaches the cache..gzthat fails to download is now an error instead of falling back to reading the remote.gzas plain CSV, which caused a confusing "Can't escape a non-ASCII character" failure. A file missing in both forms is reported clearly..gzfiles are read directly instead of after a failed.gz.gzread.benchmark_load_metrics_arg(defaultTrue). Publish sets it toFalse, since it never uses metrics, which removes a third of the files.remote-benchmarks.ymlrestores and savesdata/deephaven-benchmarkwithactions/cachearound the publish step. Benchmark CSVs never change once uploaded, so each night only downloads new runs.Test Completed
benchmark_tables.dh.py.PublishNotificationTestcovers the table block JSON, escaping and header names.