Repository navigation
Report one render-gate finding for a page that declares it cannot start, whichever wait reads it - #7111
Merged
Conversation
…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
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.
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-runtimeand the secondnever-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 howtest_a_render_check_names_the_import_a_package_module_fails_to_linkfailed 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-readcase. Its widget module is imported only once the gate's upgrade wait first reads the page'slfReadiness, 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 otherno-runtimetest and the findings model tests.Why the race exists
The gate's
runtimeStartedprobe 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 inupgradeWidgets, 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