Skip to content

Scope margin refresh tests to Leaf-owned work - #2168

Merged
max-sixty merged 2 commits into
mainfrom
fix/ci-37929061293-margin
Oct 10, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/ci-37929061293-margin

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

The margin refresh tests now measure Leaf-owned work. The cost check keeps browser layout and style recalculation bounds, while dropping a main-geometry call count that included three legitimate readers. The mutation watch excludes Viewer.js's own inline viewer nodes; it still watches Leaf's margin layer and authored boxes. This repairs the two margin failures in main CI run 37929061293.

Verification: both cases failed before this change. The cost case and the corpus and gallery mutation cases pass after it (3 focused browser tests).

The branch now includes current main, including #2171’s bounded sample loader, which repairs the shared ERR_INSUFFICIENT_RESOURCES / entry-module presentation failure in these older CI runs.

Current-main validation: the exact affected browser cases pass locally; independent source review found no actionable issues. Fresh broad CI runs on this updated head.

This was written by Codex on behalf of max-sixty

leaf-agent and others added 2 commits October 9, 2026 18:32
The resize check now measures browser layout and style recalculation rather than a call count across several legitimate main-geometry readers. The mutation watch excludes Viewer.js nodes, whose own resize handler rewrites inline geometry. Both checks still cover Leaf margin rows and authored boxes. Previously failing corpus cases now pass, as does the gallery case.
@max-sixty
max-sixty merged commit 759490d into main Oct 10, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/ci-37929061293-margin branch October 10, 2026 08:53
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