Repository navigation
feat(platform): count a version's tests at save and deploy - #4823
Merged
Merged
Conversation
A version row in the picker and on Versions now says how many of its
tests passed at its last check and which act made it, such as "2 of 3
tests passed · checked on deploy"; a check whose act was not recorded
claims none, in the Tests panel too.
A save that runs tests says so on its button ("Saving and running
tests…") and then politely says how many passed: the app's save answer
carries the counts, and failing tests are no failed save. A deploy its
tests refuse opens Tests and moves focus to the first test that did not
pass, with the alert saying how many fail and dropping when another
version is on screen; with a draft on screen the dialog still says it.
The deploy hook now asks the page about a refusal as the page is when
the answer arrives, not as it was at the click, so an edit begun while
the gate ran the tests is not mistaken for a clean screen. A refusal
for failing tests also refreshes the reads at once instead of waiting
for the stream.
Docs (EN/DE/FR) and the manual box AUTO-F179 follow.
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.
What
A version's tests in words, and what a save and a deploy say about them (P5 S10d). Builds on #4811–#4819.
2 of 3 tests passed, with the act that checked them and when, such aschecked on save · Oct 11, 2026, 3:42 PM,checked on deployorchecked by hand.Checkedfor a check whose act was not recorded, instead of "by hand".tests: {passed, failed, total}; the engine's save already ran them). While it runs, the dialog's button reads Saving and running tests…, and afterwards a polite status saysSaved version 4 · 1 of 2 tests passed. Failing tests are no failed save: no error toast.AUTOMATION_TESTS_FAILINGand there is no unsaved draft:One of its tests fails. Tests shows which.), and goes when another version is on screen;lgthe list is in a sheet, so the focus waits a frame for it. A reader typing somewhere keeps their place, and a report that never comes disarms the move after 10 s.onRefusedof the render that started the deploy, so an edit begun while the gate ran the tests (up to a minute) was mistaken for a clean screen: the Tests panel opened beside a draft and took focus from the field. It reads the page's callbacks through a ref now, as the undo already did.notice).automationErrorFailedTestsreads the count from the refusal's report.Docs and manual
AUTO-F179, and a reference row for the automated coverage.Verification (local)
Platform
tsc; oxlint on the changed files and the automations, routes and engine trees.The whole server and PII projects: 87,746 of 87,746. The whole platform UI suite: 7,592 of 7,592. Automations browser tests: 95 of 95.
services/docstests: 709 of 709.lint:links,lint:manual,knip, the format check.lib/engine/core/record/travels.test.ts("counts two million reads", 320 ms against a 250 ms bound): a timing bound that fails under the full parallel load, passed alone (31 of 31) and passed in the final run. This branch doesn't touch the engine.New tests:
version-tests.test.ts);version-list.test.tsx,version-history-table.test.tsx);automationErrorFailedTestsreads the count and answers nothing for a refusal without one.Live in Chromium on a local stack (a two-version automation: v1 passes and is live, v2 saved with one failing test), at 1440 and 390 px:
1 of 2 tests passed · checked on deploy · October 11, 2026 11:32 PM(v2) and2 of 2 tests passed · …(v1); the Versions table's Tests column showed the counts with the act and date beneath.Saved version 3 · 1 of 2 tests passedwith the failing test saved all the same.The live check found one blemish, fixed here: the "checked on deploy · October 11, 2026 11:32 PM" line broke inside the date in the table's narrow column; it is now balanced, so it breaks after the act.
Review
An independent read of the commit found, and this PR fixes: the stale
onRefusedclosure; the focus move missing a test that could not run, and staying armed when no failing row came; the alert outliving its version; a?? 1that invented a count; a stale quoted label in the FR testing guide; a version-list test that depended on the time zone; two sheets that could stack on a phone. The phone's modal Tests sheet now carries the refusal in its description, so a screen reader hears it.