Commit graph

2072 commits

Author SHA1 Message Date
Eberhard Beilharz
addd8b2471
docs(common): document new builder_is_running_on_teamcity function 2025-05-07 11:03:06 +02:00
Joshua Horton
849014687b
Merge pull request #13827 from keymanapp/maint/common/local-builds-as-debug
maint(common): automatically set --debug option for local-environment builder-script uses
2025-05-07 10:17:59 +07:00
Joshua Horton
e145163fc0 fix(common): change --debug shorthand use from builder test script 2025-05-07 08:36:29 +07:00
Joshua Horton
c389267a22
docs(common): comment removed per PR review
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-05-07 08:29:35 +07:00
Eberhard Beilharz
af1f2629dd
maint(common): use function to detect if running on TC
This change makes use of the new builder script function to detect if
the script is running on TeamCity.
2025-05-06 17:42:25 +02:00
Eberhard Beilharz
0c6ea615b3
Merge pull request #13810 from keymanapp/maint/common/tcblocks
This change adds support for TC blocks of service messages (https://www.jetbrains.com/help/teamcity/service-messages.html#Blocks+of+Service+Messages) and starts/ends a block in the `builder_start_action`/`builder_finish_action` functions. We output the TC block service messages only if we're running on TC, i.e. if the `TEAMCITY_GIT_PATH` environment variable is set.

Part-of:  #13399
2025-05-06 17:41:44 +02:00
Eberhard Beilharz
adace45fac
maint(common): fixed tests 2025-05-06 16:29:42 +02:00
Eberhard Beilharz
b83002ca85
maint(common): add builder_is_running_on_teamcity function
Addresses code review comments.

Co-authored-by: Marc Durdin <marc@durdin.net>
2025-05-06 16:26:22 +02:00
Eberhard Beilharz
d661905c60
Merge pull request #13779 from keymanapp/maint/linux/tcnoble
This change overrides a check added in Ubuntu 24.04+ that prevents mixing Python packages installed through apt and through pip. This allows to install the necessary Python package for TC which isn't available as Debian package. This change allows builds on Ubuntu 24.04 based TC agents.
2025-05-06 14:56:12 +02:00
Joshua Horton
9b2d21ff2d maint(common): use booleans, not strings for is_release
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-05-06 13:58:36 +07:00
Joshua Horton
e2fe3861aa maint(common): builder_release -> is_release, other review concerns
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-05-06 13:56:02 +07:00
Darcy Wong
f44858a895 chore(common): Merge branch 'master' into maint/common/7z-inc-sh
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2025-05-06 07:32:48 +07:00
Eberhard Beilharz
c95cb5f0c2
maint(common): output script identifier in front of block name 2025-05-05 20:00:55 +02:00
Joshua Horton
51649bb8d3 maint(common): builder_release var should be local 2025-05-05 12:50:05 +07:00
Joshua Horton
ab9ed717aa maint(common): add --release option to force release builds in local environment
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-05-05 12:48:55 +07:00
Joshua Horton
519a5b79e9 maint(common): address builder.sh test script review comments
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-05-05 12:36:01 +07:00
Darcy Wong
e1e785e37f
Merge pull request #13813 from keymanapp/maint/common/write-download-info
maint(common): Update write_download_info() to be cross-platform
2025-05-05 11:34:48 +07:00
Darcy Wong
8d0b183788 fix(common): Fix logic 2025-05-05 10:26:42 +07:00
Darcy Wong
875cc303cf fix(common): Test for BSD vs coreutils 2025-05-05 10:24:45 +07:00
Darcy Wong
00b2a0cf30 maint(common): Fallback to 7z 2025-05-03 09:13:09 +07:00
Darcy Wong
15fd72eadd maint(common): Handle coreutils stat 2025-05-03 09:12:25 +07:00
Joshua Horton
85046ceb6d fix(common): builder.inc.sh test script patchup for automatic local --debug 2025-05-02 15:37:39 +07:00
Joshua Horton
5af26297d9 maint(common): automatically set --debug option in local-environment builder scripts
Fixes: #11106
2025-05-02 15:02:04 +07:00
Darcy Wong
32ed422fd5 maint(common): Add zip_files() to zip.inc.sh 2025-05-02 13:43:03 +07:00
Marc Durdin
5f772c10f8
Merge pull request #13803 from keymanapp/maint/common/13582-test-resource-minimum-versions
maint(common): test imported resource versions
2025-05-02 13:40:34 +07:00
Marc Durdin
43cf66a9d4
Merge pull request #13796 from keymanapp/maint/meson-versioning-improvements
maint(common): cleanup meson versioning
2025-05-02 13:39:47 +07:00
Marc Durdin
76e9a789b0 chore(common): restore gosh.js 2025-05-02 13:04:39 +07:00
Marc Durdin
17ff99a18b chore(common): /bin/bash to launch the shell 2025-05-02 12:50:14 +07:00
Marc Durdin
b32c236103 maint(common): rename gosh.sh to gosh and use /usr/bin/env bash
Fixes: #13822
2025-05-02 12:45:52 +07:00
Darcy Wong
d9751b39dd maint(common): Rename sevenz.inc.sh to zip.inc.sh 2025-05-02 10:44:02 +07:00
Darcy Wong
85a25446cb fix(common): Tweak BUILDER_OS check 2025-05-02 10:07:05 +07:00
Joshua Horton
209e4e579e
Merge pull request #13807 from keymanapp/maint/disconnect-pred-text-only-ci-config
maint(web): merge LMLayer CI build config with standard Web CI build config
2025-05-02 09:55:37 +07:00
Darcy Wong
afe9b9fe16 test(common): Debug statement on BUILDER_OS 2025-05-02 09:34:57 +07:00
Darcy Wong
bc318915bb
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-05-02 08:26:28 +07:00
Marc Durdin
830664c8b2 docs: add --deps flags and move builder.md into /docs 2025-05-02 05:15:27 +07:00
Darcy Wong
e8ba5f8016 maint(common): Update write_download_info() to be cross-platform
* Handle stat flags based on `BUILDER_OS`
* Change from md5 to md5sum
2025-05-01 14:45:27 +07:00
Darcy Wong
d92c91673e maint(common): Add sevenz.inc.sh
Setup 7z environment variable according to the user's system
2025-05-01 09:07:04 +07:00
Eberhard Beilharz
92a903ddd8
maint(common): add support for TC blocks
This change adds support for TC blocks of service messages
(https://www.jetbrains.com/help/teamcity/service-messages.html#Blocks+of+Service+Messages)
and starts/ends a block in the `builder_start_action`/`builder_finish_action`
functions. We output the TC block service messages only if we're running
on TC, i.e. if the `TEAMCITY_GIT_PATH` environment variable is set.

Part-of:  #13399
Test-bot: skip
2025-04-30 20:39:09 +02:00
Joshua Horton
c505663046 maint: remove triggers for LMLayer-specific build configuration 2025-04-30 15:05:48 +07:00
Marc Durdin
1f3de1dc0a chore(common): tweak tests for cross-platform compat 2025-04-30 15:01:27 +07:00
Marc Durdin
61a114e937 maint(common): test imported resource versions
Examines imported resources such as standards data for version
information, and compares against our published minimum-versions.inc.sh
data. This test will be run in CI in common/tests.

Fixes: #13582
Test-bot: skip
2025-04-30 10:31:21 +07:00
Marc Durdin
9d2db4faf3 maint(common): consolidate standard.meson.build configuration
Use a shared function standard_meson_build to prep the
resources/meson.build folder for consistency. A future cleanup would be
to use meson-utils.inc.sh for all meson build scripts.
2025-04-30 09:16:43 +07:00
Marc Durdin
926be6e946 maint(common): only read VERSION_WITH_TAG.md if it exists 2025-04-30 08:48:26 +07:00
Marc Durdin
f8917d2454 maint(common): cleanup meson versioning
* Adds `VERSION_WITH_TAG` variable to standard.meson.build
* Consistently uses `file('VERSION.md')` to retrieve version number

Note that VERSION_WITH_TAG is not yet used but should be used for
version tagged files later.
2025-04-30 08:23:05 +07:00
Eberhard Beilharz
0f8999a736
fix(common): fix configure step in check-markdown
The check-markdown tool gets called as part of a TC build. The
configure action in `build.sh` will select the correct node version
and set the necessary environment variables. However, previously this
failed because `${KEYMAN_ROOT}/node_modules` might already exist even
though we didn't configure check-markdown before.

This change checks a local directory as output of the configure action
and thus allows to build on a Noble based TC agent.
2025-04-29 11:54:39 +02:00
Marc Durdin
42cbe1f988
Merge pull request #13780 from keymanapp/maint/common/labels
chore(common): rename `chore` GH label to `maint`
2025-04-29 11:16:14 +07:00
Eberhard Beilharz
8a37b5f5b0
chore(common): rename chore GH label to maint
During the "M3: Maintenance Sprints" session of the April 2025 planning
conference we discussed that we'd rename the `chore` GH label to `maint`.

However, this change doesn't remove the existing `chore` label because
that is also used for merge commits.
2025-04-28 18:30:54 +02:00
Marc Durdin
b8cef28538 chore: additional tweaks to scopes/labels 2025-04-28 09:21:12 +07:00
Marc Durdin
84b3c18282 chore: update scopes to match labeler 2025-04-28 07:45:56 +07:00
Marc Durdin
cafa503124 chore: use explicit node: prefix on more module imports 2025-04-03 08:10:50 +07:00