Skip to content

test: deflake clipboard read/write specs #47752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged

Conversation

codebytere
Copy link
Member

Description of Change

Deflake the following failure:

Screenshot 2025-07-15 at 11 31 57 AM

https://github.com/electron/electron/actions/runs/16273281729/job/45949205666?pr=47744

Checklist

Release Notes

Notes: none

@codebytere codebytere added semver/none target/36-x-y PR should also be added to the "36-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. labels Jul 15, 2025
Copy link
Member

@dsanders11 dsanders11 left a comment

Choose a reason for hiding this comment

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

LGTM. It might be more ironclad if we just always called focus since checking the state first does allow for a bit of a race condition, depending on what is causing the window to not be already focused. But there's still a race after focusing it and the rest of the test so on the whole it's probably minimal how much of a difference that would make.

@codebytere codebytere merged commit 5128ebe into main Jul 16, 2025
110 of 113 checks passed
@codebytere codebytere deleted the deflake-clipboard-focus branch July 16, 2025 16:27
@release-clerk
Copy link

release-clerk bot commented Jul 16, 2025

No Release Notes

@trop
Copy link
Contributor

trop bot commented Jul 16, 2025

I have automatically backported this PR to "36-x-y", please check out #47786

@trop
Copy link
Contributor

trop bot commented Jul 16, 2025

I have automatically backported this PR to "38-x-y", please check out #47787

@trop
Copy link
Contributor

trop bot commented Jul 16, 2025

I have automatically backported this PR to "37-x-y", please check out #47788

@trop trop bot added in-flight/37-x-y merged/38-x-y PR was merged to the "38-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. and removed target/36-x-y PR should also be added to the "36-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. in-flight/38-x-y in-flight/37-x-y in-flight/36-x-y labels Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/36-x-y PR was merged to the "36-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. merged/38-x-y PR was merged to the "38-x-y" branch. semver/none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants