Skip to content

Warm up Chrome before the timed server-visuals render test - #914

Merged
sambitcreate merged 2 commits into
mainfrom
fix/server-visuals-chrome-warmup
Nov 24, 2026
Merged

sambitcreate merged 2 commits into
mainfrom
fix/server-visuals-chrome-warmup

Conversation

@sambitcreate

Copy link
Copy Markdown
Owner

Summary

Fixes a CI flake in Desktop tests (renderer-other) that hits every branch: the test "an installed browser draws a chart offline into a picture and leaves no profile behind" in packages/cli/tests/server-visuals.test.mjs.

The test now draws one untimed warm-up picture with the same real Chrome before the timed render. No production code changes, the 15 s render limit is unchanged, and there are no retries.

Root cause

On a fresh hosted Linux runner, the first Chrome launch reads the browser from a cold disk. It took about 13.7 s to answer its first command (Target.createTarget), and the test timed that cold start against its 15 s drawing limit. Warm launches answer in about 170 ms and draw in about 1 s. This was confirmed by tracing on CI run 45356021801. The D-Bus errors in the log are noise: disabling D-Bus and running the file outside the parallel pool were both tried and changed nothing.

Failing runs:

Changes

  • packages/cli/tests/server-visuals.test.mjs: one untimed warm-up renderServerVisualImage call (120 s cap) before the profile count and the timed render.
  • .memory/inline-generative-ui.md: a short note recording the cause and the warm-up.

This is the net test change from 5a14a4c on #906, applied to main alone without that branch's experiment reverts. Once merged, it unblocks the renderer-other failures on #906, #907 and #909.

Testing

  • npm run test:cli locally (macOS): 368 tests, 365 pass, 0 fail, 3 skipped (pseudo-terminal tests that need util-linux script). The real-Chrome test ran and passed.

On a fresh hosted Linux runner the first Chrome launch reads the browser
from a cold disk and took up to ~14 s to answer its first command, which
the real-Chrome test timed against its 15 s render limit. Draw one
untimed warm-up first so the limit times the drawing, not the cold start.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ No critical issues — one cleanup-coverage gap inline.

Reviewed changes I reviewed the full two-file change that warms Chrome before the timed live-browser render test and records the CI diagnosis.

  • Chrome warmup — Adds a direct, minimally rendered Chrome launch with a 120-second cap before the existing production-path timing assertion.
  • Project memory — Records the observed cold-launch delay, warm-launch timing, and discarded D-Bus and parallelism hypotheses.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using GPT Sol | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes I reviewed the follow-up that fixes the temporary-profile cleanup coverage noted in the prior Pullfrog review.

  • Moved the profile baseline — Captured the aiden-visual-* profile count before the warm-up so the final assertion now detects cleanup failures from either browser launch.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏

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