Skip to content

fix(windows): add manual check arg to handlecheck - #16550

Open
rc-swag wants to merge 2 commits into
masterfrom
fix/windows/add-arg-to-handle-check
Open

fix(windows): add manual check arg to handlecheck#16550
rc-swag wants to merge 2 commits into
masterfrom
fix/windows/add-arg-to-handle-check

Conversation

@rc-swag

@rc-swag rc-swag commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Adds a manual check argument to handlecheck which is now also added to RemoteUpdateCheck. Previously a HandleCheck event in the statemachine was considered to be a manual check, versus via HandleKmShell were auto checks via boot or via kmshell starting Keyman for the first time in a session. However, the HandleCheck event is called when kmshell is run using the -buc command line switch which is used by an external time scheduled event. In the current case it is a timer in the main Keyman app.

Fixes: #15419

@mcdurdin is there a way to have manual test case for this. e.g. finding the request on the server side. Or setting up a local server?

Adds a manual check argument to handlecheck which is now
also added to RemoteUpdateCheck. Previously HandleCheck events in the
statemachine was considered to be a manual check, versus via
HandleKmShell where auto checks via boot, via kmshell starting Keyman
for the first time in a session. However, the HandleCheck event
is called when kmshell is run using the -buc command which is
used by an external time scheduled event. In the current case
it is a timer in the main Keyman app.

Fixes: #15419
@rc-swag rc-swag self-assigned this Sep 10, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Keyman Sep 10, 2026
@keymanapp-test-bot keymanapp-test-bot Bot added the user-test-missing User tests have not yet been defined for the PR label Sep 10, 2026
@keymanapp-test-bot

keymanapp-test-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

User Test Results

Test specification and instructions

ERROR: user tests have not yet been defined

Test Artifacts

  • Windows (no artifacts on BuildLevel "build")
    • Keyman for Windows - build : ✅ all tests passed
    • FirstVoices Keyboards for Windows - build : ✅ all tests passed
    • Text Editor (ARM64) - build : ✅ all tests passed
    • Text Editor (x64) - build : ✅ all tests passed
    • Text Editor (x86) - build : ✅ all tests passed

@keymanapp-test-bot keymanapp-test-bot Bot added this to the B19S1 milestone Sep 10, 2026
@rc-swag
rc-swag requested a review from mcdurdin September 11, 2026 01:18
@rc-swag
rc-swag marked this pull request as ready for review September 11, 2026 01:18
@mcdurdin

Copy link
Copy Markdown
Member

@mcdurdin is there a way to have manual test case for this. e.g. finding the request on the server side. Or setting up a local server?

Yes, we could test this with a local api.keyman.com with a minor tweak to /script/windows/14.0/update/index.php to log the request to a temp file on the server, something like:

  file_put_contents('/tmp/req', print_r($_REQUEST, true));

Run the test, then check the temp file through Docker to see if the right parameters were passed in. This may be outside a normal user test scope though!

@keyman-server keyman-server modified the milestones: B19S1, B19S2 Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix user-test-missing User tests have not yet been defined for the PR windows/config/ windows/

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

bug(windows): add a argument to "handle check" events for "manual" or "automatic"

3 participants