This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/tests/js
Memoria (Noblistic) 1554b451e1 dashboard: a history category wraps whole, and its break is a padded element
The summary line wrapped mid-figure: "ttft median 810" ended one line and "ms" started the
next. A category that cannot fit should move to the next line intact, not break wherever the
browser finds a space.

Each category becomes one span with white-space:nowrap, so it is atomic, and the dot between
categories becomes a padded element carried INSIDE the group it introduces -- as a sibling it
could be left stranded at the end of a line when the group wrapped, which is the same orphan
in a different place.

This also corrects a false premise in the two commits before it. HTML collapses runs of
whitespace, and .hsum sets no white-space, so the "wide" double-spaced separator those commits
introduced never rendered wide: it collapsed to a single space exactly like the tight one. The
spacing change was not subtle, it was zero -- which is why it looked identical. Width has to
come from a padded element, not from spaces in the string. The pipe-within-category and
dot-between-categories distinction is unaffected by this and stands.

tests/js/history.test.js, 24 checks, drives the shipped assembly against a DOM stub and reads
the shipped CSS: every category is a nowrap .hgrp, the break is a padded .hsep, the dot is the
first child of its own group rather than a sibling, a category's own figures carry pipes and no
dot, and the ttft category is a single text node so value and unit cannot split.

Verified by mutation: dropping nowrap, dropping the padding, moving the dot to a sibling,
turning the category break into a pipe, and splitting the value from its unit each fail the
suite -- the last being the exact 810 / ms orphan this fixes. extremes 27, poll_spark 35,
dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures.

Not deployed. Goes to review with the separator commits.

Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
2026-11-03 18:09:49 +01:00
..

Dashboard page tests

The dashboard is one C++ string: core/server/dashboard.cpp embeds the whole page, so its JavaScript has no file of its own to test. These harnesses extract the page from the translation unit (page.js) and execute the shipped functions, sliced by line range, against mocked DOM. A retyped copy would test the copy, not the bytes that ship — and a sliced function that is defined but never called proves nothing, which has already happened once here.

node tests/js/poll_spark.test.js
node tests/js/extremes.test.js

Why these are not in ctest

They need node, which is not a build dependency of this project and will not be present on a contributor's box or in the ROCm build image. Wiring them into ctest would turn a missing optional tool into a red build, so they stay opt-in and are run by hand when the page changes. dashboard_test covers the C++ side only.

History

Both files came out of the 2026-11-01 dashboard review. Commit 9cc237f claimed "18 checks execute the shipped noteSample, triple, acceptTriple, resetWindows and newEngineRun" while the harness lived only in /tmp — true when written, not reproducible by anyone else, which an independent review correctly rejected. They are in the tree so that claim can be re-run.