Skip to content

Conversation

HeikoKlare
Copy link
Contributor

The Win32 KeyEvent tests started to fail on GitHub Actions when the environment was updated to Windows Server 2025. Using the print screen button opens the Windows snipping tools which, for yet unknown reason, now receives the focus and does not close automatically when processing further key events, like it did before and does on Windows 11 systems.

To keep the tests working properly, this change excludes the PtrScr key as a system hotkey when not combined with any modifier key. It reverts the complete disablement of the tests performed in #2559.

Fixes #2516

@jonahgraham this is an extended version of your experiment jonahgraham#2
It limits the exclusion of the PtrScr key to the case where no state modifier is used, as this seems to be sufficient and ensures that we preserve testing of the other key combinations. I've successfully run this configuration three time in HeikoKlare#2.



The Win32 KeyEvent tests started to fail on GitHub Actions when the
environment was updated to Windows Server 2025. Using the print screen
button opens the Windows snipping tools which, for yet unknown reason,
now receives the focus and does not close automatically when processing
further key events, like it did before and does on Windows 11 systems.

To keep the tests working properly, this change excludes the PtrScr key
as a system hotkey when not combined with any modifier key.

Fixes eclipse-platform#2516

Co-authored-by: Jonah Graham <jonah@kichwacoders.com>
Copy link
Contributor

github-actions bot commented Oct 4, 2025

Test Results

  118 files  ±0    118 suites  ±0   9m 41s ⏱️ - 1m 7s
4 583 tests ±0  4 566 ✅ +19  17 💤  - 19  0 ❌ ±0 
  330 runs  ±0    326 ✅ +19   4 💤  - 19  0 ❌ ±0 

Results for commit 2a481ef. ± Comparison against base commit 12ac449.

This pull request removes 22 and adds 22 tests. Note that renamed tests count towards both.
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testBengali_digits
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testBulgarian_trivialCases
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishDvorak_trivialCases
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishInternational_deadKey_Shift6
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_CtrlBreak
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_CtrlEnter_CtrlBack
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_LEDs
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_altNumpadDigitsUnicode
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_multipleLetters
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_numpad
…
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testBengali_digits
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testBulgarian_trivialCases
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishDvorak_trivialCases
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishInternational_deadKey_Shift6
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_CtrlBreak
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_CtrlEnter_CtrlBack
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_LEDs
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_altNumpadDigitsUnicode
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_multipleLetters
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_numpad
…
This pull request removes 22 skipped tests and adds 3 skipped tests. Note that renamed tests count towards both.
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testBengali_digits
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testBulgarian_trivialCases
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishDvorak_trivialCases
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishInternational_deadKey_Shift6
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_CtrlBreak
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_CtrlEnter_CtrlBack
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_LEDs
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_altNumpadDigitsUnicode
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_multipleLetters
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_numpad
…
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_multipleLetters
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_unorderedCtrlC
AllWin32Tests Test_org_eclipse_swt_events_KeyEvent ‑ testEnglishUs_unpairedKeyUp

@jonahgraham
Copy link
Contributor

Thanks @HeikoKlare for tracking down minimal modification needed to keep as many tests running as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some Test_org_eclipse_swt_events_KeyEvent tests are failing with Windows Server 2025 on GHA
2 participants