Archived
d0fd4aa1bb413bd75f5467daf6c8ae274c8a3d7d
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
757ad11b0d |
dashboard: separate distinct fields with pipes, not middle dots
Every line that packs several distinct figures into one string used the middle dot, at two weights -- a tight dot between sub-figures and a wide one between groups. At 11px the dot is too short to read as a boundary, so lines like the history summary ran together: count, three tok/s figures, three prefill figures and ttft all sat at one visual level. The operator's call was to use the pipe wherever fields are meant to be distinct. Fifty-eight separators converted across the page -- the history summary, the version line, the KV and expert asides, the acceptance and step-time detail lines, the graph and model-view metadata, the control-vector summary, the poll summary. The two weights are kept: a tight dot becomes a tight pipe, a wide dot a wide pipe, so the group-versus-window hierarchy the wide dot carried survives the glyph change. Two dots stay, because they are not field separators: the CSS list-bullet marker (.gmeta li::before content) and the browser tab title (file - radiance). The range dash in "layers 1-8" and the DASH placeholder are likewise untouched. The two " + " the earlier census turned up are inside pctn building "<0.1" and ">99.9" string literals, not separators. The sweep missed eight separators at first: the age clause and several detail lines build their separator as the escape "\u00b7" rather than a literal dot, and a literal replace never sees those. Caught because the tests that pin the age clause went red on the literal sites but the escaped ones did not -- a partial conversion that would have shipped a page with pipes and dots mixed. Both forms are now converted. Tests: the two regexes pinning the age clause and the one string pinning the poll summary now expect the pipe. They failed when the code changed and pass now, which is the point -- a separator assertion that could not fail would not have caught the escaped-dot miss. extremes.test.js 27, poll_spark.test.js 35, dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures. GUIDE's two example triple lines, which mirror the page's separators, updated to match. Verified the sweep by reading all 58 changed lines, not by trusting the count: no pipe landed inside a regex literal (where it would mean alternation) or a prose tooltip. Both hazard greps were positive-controlled against known-bad input before their empty result was trusted. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
0ac154c803 |
dashboard: drop the uptime comparison -- it could only fire on a clock step
8ee893e added `up < lastUp` beside the started_at comparison, to catch a restart landing in the same whole second as the one the page last read. It cannot catch that. uptime_s is derived, not independent: unix_now() - started_at_, both whole seconds, so started_at + uptime_s is exactly the wall clock at every poll. Two processes sharing a started_at are therefore read at increasing wall times and report INCREASING uptimes, so the comparison never fires in the case it was written for. It fires on genuine restarts, which started_at already catches, and on a backward NTP step, which is not a restart at all. Net effect: dead where it was needed, redundant elsewhere, and a false clear of the session extremes on every clock correction. The test that "proved" it worked was fed an impossible fixture: started_at 100 with uptime 40 implies the clock read 140, then started_at 100 with uptime 2 implies 102. Time running backwards is the only way to reach that pair, which is the same mistake the finding it answered was about -- reasoning from a state the instrument cannot produce. It now asserts the reachable behaviour instead: a backward uptime with an unchanged started_at is a clock step and must NOT clear the extremes, since they still belong to the running process. The collision the comparison tried to close needs a replacement process stamped in the same second as the one the page last read. The page can only learn started_at once /stats answers, startup_s after the old process began -- 69 s on this engine -- so a replacement starting after its predecessor stopped answering is stamped a later second. The bound is startup_s >= 1 s; a model that came up inside a second could collide, and would cost one stale extreme carrying a true age. That is documented where the comparison used to be. The acceptance window's use of the same signal is NOT redundant and is untouched: it has no started_at comparison, so for a tab that stopped polling while a new process drafted past the old totals, a falling uptime is the only thing that catches the restart. Verified: dashboard_test 241 checks over 8 cases, extremes.test.js 27, poll_spark.test.js 35, sched_test 62646 over 184, no failures. Mutation re-run after the revert: deleting poll()'s detection line, stamping extAtS on every sample, and deadening acceptTriple's age clause each fail the suite. Behavior is unchanged from the deployed build, which never had the comparison, so no restart is needed for this. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
638aa3a683 |
tests/js: drive poll()'s restart decision, and the two clauses nothing reached
An adversarial pass mutated this leg of the dashboard and found three mutants that survived every committed check. All three were real gaps in my verification, and the reason was the same each time: the tests called the helper directly, so the code that DECIDES whether to call it was never exercised, and two clauses sat behind a guard that no test ever opened. Drive poll() itself. A scripted /stats sequence and a fixed clock, with resetWindows, newEngineRun and update replaced by counters, so the assertions are about what poll() decided rather than what the helper does once called. Three cases: the first poll is a baseline and clears nothing, a changed started_at clears, and a long quiet span takes the gap path without being read as a restart -- the distinction the previous commit exists to make. Re-sample a key after its extreme is set. The stamp records when the extreme was set, so a worse sample must not refresh it; nothing used to sample the same key twice, so moving the stamp to every sample -- which makes every age read about zero, wrong output rather than missing output -- passed unnoticed. Exercise acceptTriple with a live extreme. Its only previous call came from the restart case, which clears extAt first, so it returned at its guard before reaching the age clause: the clause was asserted zero times while triple's was asserted seven. Use the shipped pctn rather than a re-typed one. The copy diverged from the real formatter for small and non-finite values; nothing asserted on that output today, so it was a latent trap rather than a live error. Pass the sampled value as a parameter instead of interpolating it into the function source, so the null case is a real null and not the string "null". Verified by mutation, which is the only thing that makes a green suite mean anything here: disabling poll()'s detection line fails the suite, as does moving the stamp to every sample, as does deadening acceptTriple's clause, as does removing the uptime comparison added in the previous commit. extremes.test.js 27 checks, poll_spark.test.js 35, dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures. Found by an adversarial review pass on the author's own commits. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
08c85ea527 |
tests: run the dashboard page's JavaScript, in the tree
An independent review of 9cc237f rejected its verification claim: the commit said 18 checks executed the shipped noteSample, triple, acceptTriple, resetWindows and newEngineRun, and the tree contained none of them. The harness was real and passing, but it lived in /tmp, so nobody else could re-run it and the claim was unfalsifiable from the repository. That is a fair rejection regardless of whether the checks were right -- a verification nobody can repeat is a claim about the author's machine. Move both harnesses into tests/js/ and add the extractor they need. The page is one C++ raw string, so a JS test has to pull the script out of the translation unit it ships in; page.js does that, and each test slices the functions it exercises by line range and CALLS them. Both details matter: a retyped copy tests the copy, and a sliced function that is defined but never invoked passes without testing anything, which has already happened once in this code. extremes.test.js, 17 checks: the age clause appears only when an extreme stands alone and is at least a second old, tracks the newest extreme rather than the first, survives a gap with its age, and is gone after a restart along with the extreme itself. poll_spark.test.js, 35 checks: the clamp's floor, ceiling and fallbacks, the in-flight trigger, the old storage key migrating to a flat rate, corrupt storage falling back, the summary label matching what is set, the sparkline's x axis being time-proportional rather than sample index, the right-edge fill at startup, a sample gap drawn as a gap in the line, and the prune loop keeping samples by elapsed time rather than by count. The window expectations derive from the shipped HIST_S, so changing the constant moves them instead of silently passing. Verified: both pass, and both fail when the code is wrong -- setting the age gate to zero fails extremes.test.js, and returning the sparkline to index spacing fails four checks in poll_spark.test.js. dashboard.cpp is unchanged by this commit and dashboard_test still reports 241 checks over 8 cases. Not wired into ctest: they need node, which is not a build dependency here and will not be on a contributor's box or in the ROCm build image. Making a missing optional tool a red build is worse than an opt-in test, so the README says how to run them and when to bother. Found by an independent review pass on the author's own commits. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |