Skip to content

test(web): take upstream's fix for the flaky OpenInPicker announcement test - #1150

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/cherry-pick-openinpicker-flake
Nov 22, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/cherry-pick-openinpicker-flake

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

Problem

apps/web/src/components/chat/OpenInPicker.browser.test.tsx flakes in J5 CI: "speaks only after the shortcut opened the editor, from the picker or the fallback" fails with expected 'Opened in VS Code' to be ''. It failed on j5/main at 6149e83 and on #1148, and both passed on rerun. The test before it opens an editor successfully, which schedules a real 250 ms announce() that fires during the next test.

Fix

This cherry-picks upstream's own fix, pingdotgg#33139 (920ffcdd04, merged 2026-11-09). It's two test-only lines: the preceding test's openUrl resolves false, so nothing is announced. The commit keeps its upstream author, and -x records the source.

There's no FORK.md entry: this is upstream's own commit, and the next advance brings it in unchanged. Upstream's separate vi.advanceTimersByTime(250) change (pingdotgg#31676) is deliberately not taken.

Checklist

  • One concern
  • Tests: test-only change; the file passes locally (3/3)
  • UI changes: none
  • Live testing: not applicable (test-only)
  • Upstream-owned files: the file is upstream's. The change is upstream's own commit, so it arrives again at the next advance and needs no FORK.md entry.
  • Upstream product: unchanged
  • Surfaces: none
  • Docs: none

Cherry-picked by Claude Opus 5.5 in Claude Code (J5 Code).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 22, 2026 4:04am UTC

Request Review

@Jacksondr5
Jacksondr5 enabled auto-merge (squash) November 22, 2026 04:03
@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 22, 2026
@github-actions github-actions Bot added the size:XS 0-9 effective changed lines (test files excluded in mixed PRs). label Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The remote-editor fallback test now makes the first openUrl call resolve to false.

Changes: Remote editor fallback

Layer / File(s) Summary
Fallback test setup
apps/web/src/components/chat/OpenInPicker.browser.test.tsx
The test stubs the next openUrl call to return false instead of using the setup’s default successful result.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: juliusmarminge, t3dotgg

Merge Risk: Minimal · up to f3f2a

This test-only change stabilizes a flaky browser test by preventing a stray announcement timer from firing during a later test. It has no production impact and is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names a test-only change to the OpenInPicker browser test, which matches the raw summary (first openUrl call resolves false). It is specific, but it says 'take upstream's fix' rather than de…
Description check Passed The description follows the template's Problem, What changed, Live testing, Upstream impact and Checklist sections. The Problem section explains the flake and links the failing test. The Fix section d…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names a test-only change to the OpenInPicker browser test, which matches the raw summary (first openUrl call resolves false). It is specific, but it says 'take upstream's fix' rather than describing the fix itself, so it only partly states the change. It is not generic and does not describe unrelated work.

Full details: Description check

Explanation

The description follows the template's Problem, What changed, Live testing, Upstream impact and Checklist sections. The Problem section explains the flake and links the failing test. The Fix section describes the two-line test change and the upstream cherry-pick. The UI changes section is omitted, which the template allows because it applies only to UI changes. The Live testing section says it is not applicable. The Upstream impact section explains why no FORK.md entry is needed. The Problem section does not include a 'Closes #123' issue link, but the template requires one only for a tracking issue, and the PR links #1148 and upstream #33139 instead. The description has no 'Live testing' or 'Upstream impact' headings with exact template names, and it uses a Fix heading in place of What changed. These are minor deviations.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a10b003 and f3f2a07.

Files selected for processing: 1

  • apps/web/src/components/chat/OpenInPicker.browser.test.tsx

Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

@Jacksondr5
Jacksondr5 merged commit 0adbc92 into j5/main Nov 22, 2026
31 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/cherry-pick-openinpicker-flake branch November 22, 2026 04:20

This branch was successfully deployed

1 active deployment
Preview — f3f2a073 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants