Skip to content

Restore compiled preview recovery checks and copied runtime builds - #2788

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38471630809
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38471630809

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main CI run failed three copied-runtime preview tests and one visual-inventory render check after #2767 switched developer previews and browser tests to the compiled kernel. This PR restores those checks while keeping the compiled runtime.

A copied runtime has no Git metadata, so preparation now copies its payload from the filesystem. A preview selecting that runtime clears an inherited LEAF_HOST_LAUNCHER, which otherwise redirects its page commands to the host checkout and prevents runtime edits from triggering a re-vendor. The preview fixture supplies the development compiler dependencies and tests startup failures using resources the compiled page loads. The render check continues to require the TypeError and its explanation without depending on a function name lost to minification.

Verification: the four failed cases and the distribution cache tests passed together (17 tests); the stopped-service case passed again after restoring its real network-failure arrangement. Ruff check and format checks passed on the changed files.

Preview workers must use the runtime they selected even when a host launcher is inherited. Copy an extracted runtime without Git metadata, give the test checkout its compiler dependencies, and assert startup recovery against resources the compiled kernel loads. The render gate keeps checking the actual visual error without depending on a minified function name.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The code review found no actionable issue in this diff, but the website verification step failed: its POST /examples/heat-loss/api/media timed out after 120 seconds. In the CI checkout, the changed distribution.prepare still takes the existing Git extraction path; the other changed paths are preview code and tests. I have not verified this timeout on main, so its cause remains open. CI has not supplied a terminal passing result for this head.

@leaf-agent
leaf-agent merged commit c2391a2 into main Oct 13, 2026
3 of 4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38471630809 branch October 13, 2026 23:56
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