Skip to content

Simplify render-gate fault coverage - #678

Merged
max-sixty merged 2 commits into
mainfrom
codex/simplify-test-suite
Sep 13, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/simplify-test-suite

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • compose independently attributable syntax, reachability, print, and visual-provider faults into one populated page per probe
  • validate invalid visual inventories immediately after upgrade, before waiting on presentation that the invalid boundary can prevent
  • document the fixture rule and remove duplicate clean-gate lifecycles and a vacuous shadow control

The invalid visual-inventory case falls from about 123 seconds to 2.15 seconds. Across the four consolidated cases, full render-gate calls fall from 17 to 5, and the batch removes 45 net lines.

Validation

Exact head 11b94db2b6d801c3b3901f142d701fe3f8b513aa:

  • uv run pre-commit run --all-files
  • uv run pytest -q -n0 tests/test_render_gate.py::test_the_render_gate_reports_code_the_reader_cannot_tell_from_its_block — passed

Parent 700a2207a03d3ed49050abd3a350a901595f2468 before removing the redundant fixture:

  • uv run pytest tests — 1,058 passed in 92.65s
  • uv run pytest tests --run-nightly --durations=50 — 2,590 passed in 1,219.07s
  • PR CI — lint, core/browser smoke, website build, worker tests, and bundled-release measurement passed

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The consolidation holds up where I checked it: the roles are disjoint, so
unreadSyntax's one-finding-per-role Map still attributes all four faults
independently, and the dark comment-ink-on-add-tint guard survives on
CODE_CONTROL_PAGE's default-shadow. Selected run green locally
(test_the_render_gate_rejects_invalid_visual_inventory_records,
test_the_render_gate_validates_a_registered_visual_inventory,
test_the_render_gate_reports_code_the_reader_cannot_tell_from_its_block,
test_render_reports_a_word_the_printed_page_loses,
test_render_reports_words_a_widget_puts_out_of_reach — 5 passed in 34.56s).

One control does not survive the move, and it is the kind this PR exists to
remove: flat-shadow renders identically to default-shadow, so
CODE_CONTROL_PAGE carries two copies of the same reading. Detail inline.

Comment thread tests/render_cases_layout.py Resolved
@max-sixty
max-sixty merged commit cff0eee into main Sep 13, 2026
7 checks passed
@max-sixty
max-sixty deleted the codex/simplify-test-suite branch September 13, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants