Skip to content

fix(windows): fix download failing when cache.json missing 🍒 🏠#14207

Merged
rc-swag merged 10 commits intostable-18.0from
fix/windows/cherry-pick/not-downloaded-after-3-attempts
Jun 24, 2025
Merged

fix(windows): fix download failing when cache.json missing 🍒 🏠#14207
rc-swag merged 10 commits intostable-18.0from
fix/windows/cherry-pick/not-downloaded-after-3-attempts

Conversation

@rc-swag
Copy link
Copy Markdown
Contributor

@rc-swag rc-swag commented Jun 19, 2025

Fixes: #13767
Cherry-pick-of: #14095
Cherry-pick-of: #14166
Test-bot: skip

rc-swag added 5 commits June 19, 2025 11:20
or stale. This commit adds a precondition check when entering the
Download state. It checks to see if the cache.json file still exists
then it checks if there are packages or installer files to download.
This will also check the version with ucrsUpdateReady, so if the
installed version is already newer it will not attempt the download.
If the check fails it will removed any cached files and return to
the idle state and check for updates.

Fixes: #13767
When determining whether to move to the update available the
ucrsUpdateReady is now taken into account, not just the wucSuccess
flag. All the cases that check if there is Keyman installer file in
the metadata now check for this, and this was the original intent.
A two new function HasKeymanInstallFileUpdate and
CheckMetaDataForUpdate have been added to aid this check.
is invalid or the version is not newer then currently installed
@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot bot commented Jun 19, 2025

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S5 milestone Jun 19, 2025
rc-swag and others added 4 commits June 19, 2025 11:46
TRemoteUpdateCheckResult now has wucUpdateAvailable and
wucNotChecked to avoid confusion
There will be no `firstrun` for kmshell.exe if it is a keyboard only
install. We can therefore return to the idle state in the current
process
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
@rc-swag rc-swag changed the base branch from master to stable-18.0 June 19, 2025 01:53
@keymanapp-test-bot keymanapp-test-bot bot changed the title fix(windows): cherry pick 14095 not downloaded after 3 attempts 🍒 fix(windows): cherry pick 14095 not downloaded after 3 attempts 🍒 🏠 Jun 19, 2025
@rc-swag rc-swag self-assigned this Jun 19, 2025
@mcdurdin
Copy link
Copy Markdown
Member

mcdurdin commented Jun 22, 2025

process nits:

  • Fixes# 13767 -> Fixes: #13767
  • Added Cherry-pick-of: #14095 into PR body
  • Do not use words cherry pick in PR title
  • Use the same title as the cherry-picked PR
  • Labels were not added so I have manually added them

@mcdurdin mcdurdin added windows/ cherry-pick Change already merged into another (stable) branch fix labels Jun 22, 2025
@mcdurdin mcdurdin changed the title fix(windows): cherry pick 14095 not downloaded after 3 attempts 🍒 🏠 fix(windows): fix download failing when cache.json missing 🍒 🏠 Jun 22, 2025
@keyman-server keyman-server modified the milestones: A19S5, A19S6 Jun 22, 2025
…wuc-enum-result

fix(windows): add values wucUpdateAvailable and wucNotChecked to TRemoteUpdateCheckResult enum 🍒 🏠
@rc-swag rc-swag merged commit 6d06ce3 into stable-18.0 Jun 24, 2025
6 checks passed
@rc-swag rc-swag deleted the fix/windows/cherry-pick/not-downloaded-after-3-attempts branch June 24, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Change already merged into another (stable) branch fix stable windows/config/ windows/

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants