Skip to content

Report one render-gate finding for a page that declares it cannot start, whichever wait reads it - #7111

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7110
Nov 25, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7110

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The render gate gave one page either of two findings, depending on timing. It waits first for the runtime to start, then for the widget layer to upgrade. Each wait ends on the page's own declaration that it cannot start, but the first reported no-runtime and the second never-upgraded. A widget module that fails to link makes that declaration just after the runtime's chrome stands, so which finding the gate reported depended on which poll saw it first. That is how test_a_render_check_names_the_import_a_package_module_fails_to_link failed on main in run 45516663690 (assert 'never-upgraded' == 'no-runtime'), while it passes locally.

A declaration that the page cannot start is now no-runtime, whichever wait reads it. Its text now reads "the runtime never started" in place of "never injected its chrome", which is false once the chrome stands before the failure. #6899's intent, naming the module and the missing export within seconds, is unchanged.

Verification. The test gains a once-read case. Its widget module is imported only once the gate's upgrade wait first reads the page's lfReadiness, which forces the losing ordering from CI. On the old gate that case fails with CI's exact assertion. With the change, both cases pass, and so do the render gate's other no-runtime test and the findings model tests.

Why the race exists

The gate's runtimeStarted probe looks for .lf-floating-panel. The static panel row that bootstrap stands at first paint (#6383) carries that class, so the start wait succeeds at its first poll. A trace of the original module shows the order: row, then the runtime's own panel, then the startup-error mark. The widget import runs in upgradeWidgets, after the runtime has created its panel. So the declaration can land on either side of the wait boundary. Making the probe ignore the static row (:not([data-lf-served])) did not remove the race, so this change leaves the probe as it is.

Refs #7110 — automated triage

…rt, whichever wait reads it

The render gate waited first for the runtime to start, then for the widget layer to upgrade, and each wait ended on the page's own declaration that it cannot start. The first reported `no-runtime` and the second `never-upgraded`. A widget module that fails to link declares this just after the runtime's chrome stands, so for the same page the gate gave either finding depending on which poll saw the declaration first. On main, `test_a_render_check_names_the_import_a_package_module_fails_to_link` failed this way in run 45516663690 and passes locally.

A declaration that the page cannot start is now `no-runtime` from both waits. `no-runtime` now reads "the runtime never started" in place of "never injected its chrome", which is false once the chrome stands before the failure. The test gains a case whose module is imported only once the gate's upgrade wait first reads the page's readiness. That case fails on the old gate with the CI assertion (`'never-upgraded' == 'no-runtime'`) and passes now.

The render check's intent from #6899, naming the module and the missing export within seconds, is unchanged.

Closes #7110
@leaf-agent
leaf-agent merged commit b5eda2e into main Nov 25, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7110 branch November 25, 2026 02:35
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.

1 participant