Skip to content

fix(tests): finish the public build before closing the popup; widen the messages loading-state wait (release-1.12.0) - #14596

Merged
erichare merged 1 commit into
release-1.12.0from
fix/nightly-31907290063-shards-1.12
Aug 15, 2026
Merged

fix(tests): finish the public build before closing the popup; widen the messages loading-state wait (release-1.12.0)#14596
erichare merged 1 commit into
release-1.12.0from
fix/nightly-31907290063-shards-1.12

Conversation

@erichare

@erichare erichare commented Aug 15, 2026

Copy link
Copy Markdown
Member

Summary

Clean cherry-pick of #14595 (main) onto release-1.12.0 — same commit, no conflicts; both spec files were byte-identical between the branches.

Nightly 31907290063 failed exactly two Playwright shards, and the release branch has identical exposure (same @release suite, same SQLAlchemy 2.0.51 / aiosqlite 0.22.1, and #14593 already ported):

  • Windows 24/70 — messages.a11y.spec.ts "scans the named loading state": the expect right after page.goto("/settings/messages") used the default 5s; the trace shows the messages page mounting 7.0s / 7.5s after goto (post-load app boot: auto_login 1.6–3.0s → whoami → config → lazy route). Now TIMEOUTS.standard, matching the identical loading scan in knowledge-bases.a11y.
  • Linux 41/70 — publish-flow.spec.ts: the spec closed the shareable-playground popup 30ms after sending, mid-build. Aborting that request mid-write left the backend with a ~60s window where every SQLite writer stalled while reads answered in ms (un-publish PATCH never answered; retry's auto_login hung 34s+; sibling worker's build took 71s vs 0.66s). Now runs the send through sendPlaygroundMessage(newPage, "Hello", { surface: "shareable" }), which waits for the Stop button to appear and clear before the popup closes — and asserts the published playground actually completes a run.

Full trace/backend-log analysis in #14595.

Test plan

  • Cherry-pick applied without conflicts; biome clean
  • Same change verified locally on main against the full Playwright stack (both tests pass, 34.8s / 43.7s)
  • CI shards green

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Improved reliability of accessibility checks for message loading states by allowing sufficient time for the status to appear.
    • Strengthened publish-flow coverage by validating the complete shareable playground experience through the standard messaging flow.
    • Removed redundant test steps and unused configuration, making automated coverage more consistent and maintainable.

…he messages loading-state wait

Nightly 31907290063 (main @ b40b405) failed exactly two Playwright shards.

Windows 24/70 - messages.a11y "scans the named loading state": the expect
after `page.goto("/settings/messages")` used the default 5s. The trace shows
goto returning at `load`, then auto_login (1.6-3.0s) -> whoami -> config ->
the lazy settings route; the messages query mounted 7.0s / 7.5s after goto,
1.4s / 1.7s after the expect gave up. The aria snapshot at failure was the
app-level "Loading..." page, not SessionView's status. Use TIMEOUTS.standard,
which the identical held-response loading scan in knowledge-bases.a11y
already uses.

Linux 41/70 - publish-flow: the spec sent a message in the shareable
playground popup and closed it 30ms later, while the public build was still
in flight. Aborting that request mid-write made the backend terminate its
aiosqlite connections under cancellation; the trace + backend log show a
~60s window where every SQLite writer stalled (the un-publish PATCH never
answered, the retry's auto_login hung 34s+, the sibling worker's build took
71s instead of 0.66s) while reads kept answering in ms. Wait for the build
to finish (Stop visible -> hidden via the shared sendPlaygroundMessage
helper) before closing the popup, which also proves the published playground
completes a run rather than merely starting one.

Verified locally against the full Playwright stack: both tests pass.

(cherry picked from commit 517765c)
@erichare
erichare merged commit 8bc0ed2 into release-1.12.0 Aug 15, 2026
15 of 16 checks passed
@erichare
erichare deleted the fix/nightly-31907290063-shards-1.12 branch August 15, 2026 21:53
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: bdf8f66f-30c9-4dce-b8c0-6ef865b21fe9

📥 Commits

Reviewing files that changed from the base of the PR and between b0588d0 and bcfb961.

📒 Files selected for processing (2)
  • src/frontend/tests/a11y/messages.a11y.spec.ts
  • src/frontend/tests/core/features/publish-flow.spec.ts

Walkthrough

The PR updates two Playwright tests. The accessibility test uses the standard loading timeout. The publish-flow test uses sendPlaygroundMessage to complete the shareable playground flow.

Changes

Playwright test reliability

Layer / File(s) Summary
Loading-state timeout
src/frontend/tests/a11y/messages.a11y.spec.ts
The loading-state assertion uses TIMEOUTS.standard.
Publish-flow message helper
src/frontend/tests/core/features/publish-flow.spec.ts
The test replaces manual chat interaction with sendPlaygroundMessage, which sends "Hello" and waits for completion before capturing the page URL. It removes the unused TEXTS import.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels: bug, test

Suggested reviewers: cristhianzl

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/nightly-31907290063-shards-1.12

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the bug Something isn't working label Aug 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Test Coverage Advisor

No source changes detected without accompanying tests. Thanks for keeping coverage up! 🎉

Advisory check only — never blocks merge.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant