Skip to content

fix(validation): the bench progress line prints a schema's plain name, not its Markdown-escaped one - #431

Merged
kyle-256 merged 1 commit into
mainfrom
fix/bench-html-escaping
Dec 1, 2026
Merged

kyle-256 merged 1 commit into
mainfrom
fix/bench-html-escaping

Conversation

@zhenhuang12

Copy link
Copy Markdown
Collaborator

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_name escaped 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

  • The bench: progress line of python -m aklr validate: it now reads flydsl/gemm_n2048_k2048/5a9a1fa1.
  • The Markdown reports (findings, the bench records table) are unchanged: their callers still escape the name.

Verification

Environment: head aa184e14c632, MI300X (gfx942), image lmsysorg/sglang:v0.5.22-rocm10-mi30x
Gate overrides: none

Code

New test test_a_finished_task_is_reported_under_its_schemas_plain_name in tests/core/validation/test_bench_validator.py; it failed before the change on gemm_n2048_k2048.

$ python -m pytest -q -p no:cacheprovider tests/core/validation
194 passed, 2 warnings in 4.02s

pre-commit run on 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

  • The CI validation of every schema (aiter-test, sglang-test, vllm-test): left to this PR's ci:gpu run.
  • The rest of tests/ outside tests/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.

…, 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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
kyle-256 merged commit 13befce into main Dec 1, 2026
22 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants