Skip to content

Limit concurrent sample module loads - #2171

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-37929061293-corpus
Oct 9, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-37929061293-corpus

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Limit embedded sample allocation and module loading to three children at once. On the composed corpus, simultaneous child runtime imports can exhaust Chromium's request pool; a failed module then reports “Presentation failed: entry module did not load” during page check. The load slot is released as soon as the child document loads, so a slow state read does not block later samples. This repairs the corpus failure in main CI run 37929061293 and the same failure in #2162's test job. The affected corpus includes replacement markup from #2151; its check passed in the preceding complete main run.

Verification: the corpus check reproduced a net::ERR_INSUFFICIENT_RESOURCES module request before this change and passed after it. Four sample lifecycle cases and a case holding four child state reads pass, as do 275 runtime tests, the browser bundle check, and pre-commit. In a matched-source startup probe, both arms loaded 302 code requests with no layout shifts. The candidate added 1,057 code bytes and presented the composed page; it can delay an offscreen sample's load while other children load, which avoids the browser resource failure.

A corpus page starts many embedded Leaf documents at once. Their simultaneous runtime module requests exhausted Chromium’s request pool, making an entry module fail and page check report a presentation error. Limit child allocation and module loading to three at a time, releasing each slot when its document loads so a slow state response cannot starve another child. The corpus check failed before and passes after; sample lifecycle and slow-state tests, 275 runtime tests, browser bundle check, and pre-commit pass. A matched-source startup probe kept 302 code requests and no layout shifts; the candidate adds 1,057 code bytes and reliably presents the corpus.
@max-sixty
max-sixty merged commit 20c2816 into main Oct 9, 2026
6 of 7 checks passed
@max-sixty
max-sixty deleted the fix/ci-37929061293-corpus branch October 9, 2026 22:15
max-sixty added a commit that referenced this pull request Oct 10, 2026
The two datum replacement tests now expect the visible `Changed` status
when a saved quotation's words differ from the current value. Their
checks that the comment, draft, and mark follow the stable datum remain
in place. [#1770](#1770) added
this status for changed quoted words; these older datum tests still
expected no status. This repairs both datum failures in [main CI run
37929061293](https://github.com/max-sixty/leaf/actions/runs/37929061293).

Verification: both tests failed before the assertion update and pass
after it.


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_

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: Maximilian Roos <[email protected]>
max-sixty added a commit that referenced this pull request Oct 10, 2026
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](https://github.com/max-sixty/leaf/actions/runs/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_

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: Maximilian Roos <[email protected]>
max-sixty added a commit that referenced this pull request Oct 10, 2026
The shipped long-thread test now locates the reconnect margin row by its
authored section ID and still checks its accessible subject name. After
reducing the viewport height, the test brings that passage into view
before measuring its attached card: the current placement contract
carries the card offscreen with an offscreen passage. It uses declared
rendering completion and retains the height, internal scrolling,
metadata, settlement and keyboard assertions.

The interactive-reply dependency in #2167 and the bounded sample loader
in #2171 have landed and are included from current main. Verification:
the complete exact browser test passes locally (1 passed); independent
review found no actionable issues.

> _This was written by Codex on behalf of max-sixty_

---------

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: Maximilian Roos <[email protected]>
max-sixty added a commit that referenced this pull request Oct 10, 2026
The live-progress page now puts “checks passing” before “4 of 5” in a
definition list. Its comment test still expected the retired widget's
word order, so the main CI run failed even though the comment field
received the correct selected text. Update that assertion to match the
authored label while keeping the test's focus, draft, and scroll checks.

The [main CI
run](https://github.com/max-sixty/leaf/actions/runs/37929061293) failed
this test after #2151. I reproduced the failure locally and reran the
exact node after the change: 1 passed.


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_

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: Maximilian Roos <[email protected]>
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