Repository navigation
Draw the export's quiet-word test from lf-code, and hold a failed comparison paint to one report - #2588
Merged
Conversation
…parison paint to one report `test_an_export_keeps_its_quiet_words_off_screen` (main tier) has failed on every completed push run since #2555, which removed the `x-paints` key and the fixture's `state` property but left this test writing `<lf-reading state=...>`; `page check` refused the page before the export ran. The test now takes its quiet word from a highlighted `lf-code` line, which every page's default package can draw, so it no longer needs the declared-reading fixture. With `.lf-quiet`'s clip removed from the theme it fails, as before. `test_a_comparison_mark_that_failed_on_return_keeps_following_the_comparison` counted only the `leaf:` reports, and its comment expected a second, uncaught record of the throw. Since #2575 `readingPaint` reports the failure once and nothing escapes, so the test now requires exactly that one report; a paint that also rethrew fails it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 12, 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.
main's pushcihas not completed green since #2568. The last two completed runs (38235572771 on 1ace63b, 38244446941 on e5aca3e) failed threemain-tier tests. Two are already fixed onmain; this PR fixes the third and tightens one of the fixed ones.Behaviour that changed
test_an_export_keeps_its_quiet_words_off_screenruns again. Cut runtime rechecks of Leaf's own output, unrecorded-fault retries and argument type guards, and the unused x-paints key #2555 removed thex-paintskey and thestateproperty fromdeclared_reading_package, but this test still wrote<lf-reading state="done">, sopage checkrefused the page before the export ran (Additional properties are not allowed ('state' was unexpected)). The test ismain-tier and lives in a file Cut runtime rechecks of Leaf's own output, unrecorded-fault retries and argument type guards, and the unused x-paints key #2555 did not edit, so--changed-sincenever selected it. It now takes its quiet word from a highlightedlf-codeline, which the default package draws, and drops the fixture. With.lf-quiet's clip removed from the theme, the test fails, as it did before.test_a_comparison_mark_that_failed_on_return_keeps_following_the_comparisoncounted onlyleaf:reports, and its comment expected a second, uncaught record of the throw. Since Report a failing paint once in readingPaint, and keep every watcher's subscription #2575,readingPaintreports the failure once and nothing escapes. On currentmainthe page records one error,leaf: paint failed for lf-tabs#views: …. The test now requires exactly that error. A paint that also rethrows from a microtask fails it.The other two failures need nothing more.
test_a_reaction_on_a_visual_part_names_that_partwas fixed by #2582, and the comparison test's arrangement by #2581.Evidence
main4f81e81, the export test fails with the refusal above. With this change it passes.leaf-dev flake(18 copies, six at a time) passed 18/18 for the export test, the comparison test and the reaction test. A flake run oftests/test_render_words_watch.pyalso passed 18/18 for every test. That file'sTypeError: Cannot read properties of null (reading 'present')did not reproduce onmainand is not in either failed run's log.declared_reading_packagetests still pass (test_the_render_gate_catches_a_declared_word_that_never_reached_the_page,test_a_word_the_revision_adds_to_a_surviving_element_is_said).Hand-written source delta: 0 lines. Test delta: +10 −12 (
tests/test_render_export.py+8 −10,tests/test_render_options_settled.py+2 −2).