RFR: 8339233: Test javax/swing/JButton/SwingButtonResizeTestWithOpenGL.java#id failed: Button renderings are different after window resize

Manukumar V S mvs at openjdk.org
Sat Aug 31 09:12:22 UTC 2024


On Thu, 29 Aug 2024 19:07:29 GMT, Manukumar V S <mvs at openjdk.org> wrote:

> This is a highly intermittent failure, and it failed only once in CI on a particular windows machine and passed on all other runs. 
> 
> Failure reason:
> When the button was displayed for the first time, the focus rectangle drawn on the button text(Button A) was not seen(failure images attached in the bug).
> 
> Fix:
> To stabilize the test, I have added a line -> button.setFocusPainted(false), so that the focus rectangle will not be painted

> After going through the test runs which you have shared, I suggest some stabilization is required along with FocusPaint fix. As attached here, in one of your test runs, failure is caused due to capture of distorted image. ![image2](https://private-user-images.githubusercontent.com/94159358/363084865-5744cb82-24da-45c3-a5d9-e88b7864bae3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwOTU0NjgsIm5iZiI6MTcyNTA5NTE2OCwicGF0aCI6Ii85NDE1OTM1OC8zNjMwODQ4NjUtNTc0NGNiODItMjRkYS00NWMzLWE1ZDktZTg4Yjc4NjRiYWUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMxVDA5MDYwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwODc2N2Q4MDM5MjJmMzYwYTE5ZTgwODc3MmUxYzFhNTEyOGFjNmNmY2Y4MGI5ZDE5MjhjZGNjN2NhMmUwOTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb
 19pZD0wIn0.A2c6iE8KJsIv9W2_uyRyHTnfIpE3cjy_9Rs9uGUXnP4)

I have further stabilised the test by increasing the delay before taking the screenshot and I ran it 100 times on the same machine where it failed earlier and now all the runs are passed. Latest Mach5 links are attached in the bug.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20777#issuecomment-2322836951


More information about the client-libs-dev mailing list