Skip to content

AppImage E2E: count the app shell as rendered when the splash is already gone - #15764

Merged
danielhanchen merged 1 commit into
mainfrom
appimage-e2e-render-not-racing-splash
Oct 28, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
appimage-e2e-render-not-racing-splash

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

AppImage model download E2E fails intermittently on unrelated PRs, for example the header-only chore/desktop-release-agpl-header run and both attempts of the #15723 staging run:

AssertionError: Timed out waiting for the packaged frontend to render; last result: False

The app is fine in every one of these failures. The uploaded failure.png / failure-webview.json show it on tauri://localhost/chat with the sidebar rendered (6 nav-row-* rows on the agpl-header run), and tauri.log shows the same preflight, backend start and desktop auth sequence as passing runs.

The first wait in tests/studio/appimage_model_download_webdriver.py demands the transient Starting Unsloth... splash:

"return document.body && document.body.innerText.includes('Starting Unsloth')"

When the desktop handoff completes before the WebDriver session attaches and starts polling, the splash is already gone, so this can never become true, even though the next wait ("the deterministic desktop backend handoff", splash gone) would pass at once.

Change

The "rendered" wait now also accepts the app shell ([data-testid^="nav-row-"], the sidebar rows). The handoff wait after it is unchanged, so the run still has to see the splash gone before driving the Model hub.

Testing

The old and new predicates evaluated in Chromium:

Page old new
captured failure DOM (app on /chat) False True
splash only True True
blank #root False False
an error page with no shell False False

So the wait still fails when nothing rendered, and stops failing on the healthy page it used to reject.

  • tests/security/test_release_desktop_appimage.py + tests/studio/test_appimage_fixture_cors.py: 26 passed.
  • The E2E itself runs on this PR's desktop workflow (the script path is in its paths: filter).

…ady gone

The first wait demanded the transient 'Starting Unsloth' splash. When the
desktop handoff finishes before the WebDriver session attaches, the app is
fully up on /chat and the wait times out anyway. The handoff wait that
follows still requires the splash to be gone.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T12:54:09.870209Z 361c8f8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 361c8f8b4e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit c61340c into main Oct 28, 2026
0 of 22 checks passed
@danielhanchen
danielhanchen deleted the appimage-e2e-render-not-racing-splash branch October 28, 2026 13:00
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