On Wed, 17 Feb 2021 18:02:49 GMT, Phil Race <p...@openjdk.org> wrote:

>> This test was timing out in windows in mach5 nightly testing. Investigation 
>> reveals that 70% of the time, it is failing due to printer being chosen was 
>> Microsoft Print to PDF which opens up a File Save Dialog when "OK" was 
>> clicked in printer pagedialog. Since no user intervention is done to dismiss 
>> the modal filedialog, so subsequent pagedialog was not dismissed resulting 
>> in timeout.
>> Other times, it was found that "One Note" software printer was used as 
>> default printerservice which again, opens up a OneNote app which again gets 
>> focus and obscure pagedialog so PageDialog did not get dismissed.
>> Updated test to ignore "Print To PDF", "OneNote" and "XPS Document 
>> Writer"(which again opens filedialog like PDF printer) and run it for 
>> several iteration in mach5 platforms which is ok. Link in JBS.
>
> The problem I have with this is that it does not scale.
> It is a maintenance nightmare every possible "file printer" on Windows to 
> every test.
> and back porting it too ?
> removing or disabling one note and the rest s supposed to be part of the set 
> up of the test systems.
> 
> And when you say "70%" what is the other 30 % ?

other 30% is mixture of OneNote, XPS being used as printer service and timing 
issue which is why I moved the Thread start closer to actual pagedialog 
invocation.

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

PR: https://git.openjdk.java.net/jdk/pull/2598

Reply via email to