Repository navigation
fix(validation): the bench progress line prints a schema's plain name, not its Markdown-escaped one - #431
Merged
Conversation
…, not its Markdown-escaped one schema_short_name escaped its result for Markdown, and the terminal progress line used it, so every underscore printed as _. It now returns the plain name; the two Markdown report callers escape it themselves.
zhenhuang12
requested review from
RuibinCheung,
irvineoy,
jiejingzhangamd,
kyle-256 and
xiaobochen-amd
as code owners
December 1, 2026 12:59
There was a problem hiding this comment.
🟡 Changes recommended
A public markdown_blocks() regression test is missing to verify that underscore-containing schema names are escaped exactly once in both record rows and finding/demotion bullets.
1 open issue
What changed in this PR
Separates schema-name formatting from Markdown escaping so validation progress logs show plain underscores while Markdown reports retain their existing formatting.
Changes:
- Return plain schema names from
schema_short_name. - Escape names explicitly in the two Markdown renderers.
- Add a regression test for readable names in bench progress output.
| File | Description |
|---|---|
tests/core/validation/test_bench_validator.py |
Tests plain schema names in progress output. |
aklr/core/validation/validators/report/_markdown.py |
Removes escaping from the shared name helper. |
aklr/core/validation/validators/report/_finding.py |
Preserves escaping in Markdown findings. |
aklr/core/validation/validators/bench/_judge/_report.py |
Preserves escaping in the bench records table. |
Review effort: Max
| ) -> None: | ||
| path = repo.write(_schema(), "2", name="gemm_n2048_k2048") | ||
| repo.run(_Tasks({1: _timed(1.5)}), None, path) | ||
| assert "bench: triton/gemm_n2048_k2048/00000000: 1 workloads" in capsys.readouterr().err |
kyle-256
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
The bench progress line in the CI log printed every underscore of a schema's name as
_(bench: flydsl/gemm_n2048_k2048/5a9a1fa1: ...).schema_short_nameescaped its result for Markdown, and the terminal line used it too. It now returns the plain name, and the two callers that write Markdown escape it themselves.Scope
bench:progress line ofpython -m aklr validate: it now readsflydsl/gemm_n2048_k2048/5a9a1fa1.Verification
Environment: head
aa184e14c632, MI300X (gfx942), imagelmsysorg/sglang:v0.5.22-rocm10-mi30xGate overrides: none
Code
New test
test_a_finished_task_is_reported_under_its_schemas_plain_nameintests/core/validation/test_bench_validator.py; it failed before the change ongemm_n2048_k2048.pre-commit runon the changed files: passed.No schema or measurement version changes. No kernel changes result against main: only the text of a log line changes.
Not run
aiter-test,sglang-test,vllm-test): left to this PR'sci:gpurun.tests/outsidetests/core/validation.Risk
Affects: the progress log of the bench validator, for every kernel; no measurement or verdict.
If wrong: a schema name with a Markdown special character would render unescaped in a report.
Undo:
git revert.