Skip to content

maint(windows): consider GO_FAST env variable in add_zip_files 🗜️#14338

Merged
ermshiperete merged 5 commits intomasterfrom
maint/windows/addzip
Jul 23, 2025
Merged

maint(windows): consider GO_FAST env variable in add_zip_files 🗜️#14338
ermshiperete merged 5 commits intomasterfrom
maint/windows/addzip

Conversation

@ermshiperete
Copy link
Copy Markdown
Contributor

@ermshiperete ermshiperete commented Jul 10, 2025

This changes makes use of the logic that used to be in win/zip.inc.sh: if the environment variable GO_FAST is set to 1, we use a low compression level, resulting in faster builds. If it is set to 0 we use maximum compression, resulting in slower builds. If GO_FAST is not set we don't specify the compression level and rely on the defaults.

Also make use of the new functionality by replacing the use of the wzzip function.

Note: GO_FAST gets set in some existing scripts.

Test-bot: skip

@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot bot commented Jul 10, 2025

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S7 milestone Jul 10, 2025
@github-actions github-actions bot added windows/ developer/ oem/ oem/fv/ oem/fv/windows/ windows/config/ resources/ maint Maintenance work -- continuous integration, build scripts, infrastructure labels Jul 10, 2025
@ermshiperete ermshiperete changed the title maint(windows): consider GO_FAST env variable maint(windows): consider GO_FAST env variable in add_zip_files 🗜️ Jul 10, 2025
Copy link
Copy Markdown
Contributor

@rc-swag rc-swag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
Is it correct the GO_FAST ability has been added but it isn't actually used in the build script?

@darcywong00
Copy link
Copy Markdown
Contributor

Looked up some of the history of GO_FAST
#13812 (comment)

Seems like the use case to make test builds faster

@darcywong00
Copy link
Copy Markdown
Contributor

Is there another usage at

. "$KEYMAN_ROOT/resources/build/win/zip.inc.sh"
?

@ermshiperete
Copy link
Copy Markdown
Contributor Author

Is there another usage at

. "$KEYMAN_ROOT/resources/build/win/zip.inc.sh"

?

I overlooked that file reference. It doesn't do anything with the file, so I just removed the reference. Thanks!

Copy link
Copy Markdown
Contributor

@rc-swag rc-swag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@keyman-server keyman-server modified the milestones: A19S7, A19S8 Jul 20, 2025
This changes makes use of the logic that used to be in `win/zip.inc.sh`:
if the environment variable `GO_FAST` is set to 1, we use a low
compression level, resulting in faster builds. If it is set to 0 we
use maximum compression, resulting in slower builds. If `GO_FAST` is
not set we don't specify the compression level and rely on the defaults.

Test-bot: skip
This makes use of the new functionality refactored in the previous
commit by replacing the use of the `wzzip` function with `add_zip_files`.

Test-bot: skip
@ermshiperete ermshiperete force-pushed the maint/windows/addzip branch from 57aaa35 to e4c1867 Compare July 21, 2025 08:27
@ermshiperete ermshiperete changed the base branch from maint/common/zipfile to master July 21, 2025 08:27
@ermshiperete ermshiperete force-pushed the maint/windows/addzip branch from 41cd44a to 71af4a9 Compare July 22, 2025 15:30
@ermshiperete ermshiperete merged commit 193fb75 into master Jul 23, 2025
29 checks passed
@ermshiperete ermshiperete deleted the maint/windows/addzip branch July 23, 2025 05:55
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Jul 23, 2025
@keyman-server
Copy link
Copy Markdown
Collaborator

Changes in this pull request will be available for download in Keyman version 19.0.88-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants