8000 maint(web): improve TC build script for Keyman Web/Test 🔗 by ermshiperete · Pull Request #14051 · keymanapp/keyman · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

maint(web): improve TC build script for Keyman Web/Test 🔗 #14051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 5, 2025

Conversation

ermshiperete
Copy link
Contributor
@ermshiperete ermshiperete commented May 26, 2025

This refactors the build script and makes some changes so that it is possible to run in a docker container on a developer's machine.

Part-of: #13399
Test-bot: skip

This refactors the build script and makes some changes so that it is
possible to run in a docker container on a developer's machine.

Part-of: #13399
Test-bot: skip
@github-project-automation github-project-automation bot moved this to Todo in Keyman May 26, 2025
@github-actions github-actions bot added resources/ maint Maintenance work -- continuous integration, build scripts, infrastructure web/ labels May 26, 2025
@ermshiperete ermshiperete requested a review from mcdurdin May 26, 2025 16:40
@keymanapp-test-bot
Copy link
keymanapp-test-bot bot commented May 27, 2025

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S4 milestone May 27, 2025
@ermshiperete ermshiperete changed the title maint(web): improve TC build script for Keyman Web/Test maint(web): improve TC build script for Keyman Web/Test 🔗 May 27, 2025
When building playwright complained about missing dependencies, so
this change adds them.
@github-actions github-actions bot added web/ and removed web/ labels May 27, 2025
@ermshiperete ermshiperete requested a review from mcdurdin June 3, 2025 16:10
@github-actions github-actions bot added web/ and removed web/ labels Jun 3, 2025
Copy link
Member
@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

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

See discussion in #14059 (comment) as well on installing deps in a build agent automatically

Comment on lines +56 to 57
builder_run_action test web_test_action
builder_run_action test check_build_size_action
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't check_build_size_action be just check_build_size and a part of web_test_action?

Copy link
Contributor Author
@ermshiperete ermshiperete Jun 4, 2025

Choose a reason for hiding this comment

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

That would make sense. However, web_test_action is also used from keyman-web-release.sh and there we don't check the size. So we could
a) change the release build to also check the size
b) have two versions of web_test_action, one with and the other without checking the size
c) integrate check_build_size_action into web_test_action but make it run depending on a parameter we pass
d) leave it as is and continue to call check_build_size_action separately.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha, let's leave it with option (d) for now; it will be a little confusing in the logs to see test run twice but we can manage.

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (C) 2025 SIL International. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

We should be usin the standard header in all our scripts

Copy link
Contributor Author
@ermshiperete ermshiperete Jun 4, 2025

Choose a reason for hiding this comment

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

done in parent #14049

Comment on lines 1 to 5
#!/usr/bin/env bash
# Copyright (C) 2025 SIL International
# Distributed under the MIT License. See LICENSE.md file in the project
# root for full license information.
#
Copy link
Member

Choose a reason for hiding this comment

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

Ditto on header

Copy link
Contributor Author
@ermshiperete ermshiperete Jun 4, 2025

Choose a reason for hiding this comment

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

done in parent #14049

Base automatically changed from maint/web/13399_tc-config to master June 4, 2025 16:07
Copy link
Member
@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

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

LGTM, but will need changes later per outcome of build agent stability discussion

@ermshiperete ermshiperete merged commit 962eb76 into master Jun 5, 2025
27 checks passed
@ermshiperete ermshiperete deleted the maint/web/13399_tc-config_refactor branch June 5, 2025 10:32
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Jun 5, 2025
@keyman-server
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android/ common/ core/ Keyman Core developer/ ios/ linux/ mac/ maint Maintenance work -- continuous integration, build scripts, infrastructure resources/ web/ windows/
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
0