Commit graph

489 commits

Author SHA1 Message Date
Joshua A. Horton
01d0019d86 chore(web): removes package.json references to old @npm/types versions 2024-05-07 14:38:41 +07:00
Marc Durdin
29f6204e45 chore(common): rename build-utils.md to builder.md 2024-05-03 05:58:06 +07:00
Marc Durdin
41af90053e chore(common): reset KEYMAN_ROOT if not readonly
This prevents issues where Windows-style path pollutes path strings
with $KEYMAN_ROOT variable. It typically will only be readonly if we are
setting the variable in our own scripts
2024-05-02 15:54:34 +07:00
Marc Durdin
58db259fd3 chore(common): typo in test 2024-05-02 15:54:34 +07:00
Marc Durdin
c921881a19 chore(common): typo in include 2024-05-02 15:54:33 +07:00
Marc Durdin
cd8121ef65 chore(common): builder scripts now use /resources/build/builder.inc.sh
Note: there is a bit of potential confusion about the difference between
/resources/builder.inc.sh (the full implementation for builder scripts),
and /resources/build/builder.inc.sh (the source script that builder
scripts should always use).

This allows us to make assumptions that will always be true for builder
scripts that may not be true for other scripts, such as setting base
folder.
2024-05-02 15:54:31 +07:00
Marc Durdin
0f390d47cc chore(common): maintenance on build scripts - cd
Fixes #11324.

* Always `cd "$THIS_SCRIPT_PATH"`
* Remove unnecessary `cd` from all build.sh
* Remove unnecessary `set -eu` from all build.sh (and `# set -x`)
* Replace old build-utils.sh incantation in a few build.sh scripts
2024-05-02 15:54:29 +07:00
Marc Durdin
f119682cf0
Merge branch 'master' into chore/a18s1-merge-beta-into-master 2024-05-02 14:48:58 +10:00
sgschantz
e7b2855baa chore(ios): change from set -eu to set -e
Ignore unbound variables for now to get past script failure
2024-04-30 10:09:18 +07:00
sgschantz
fbd4367f2b chore(ios): create script to upload sentry debug symbol file
Wrap call to script with xcode-wrap.sh to retain env
2024-04-30 08:04:43 +07:00
sgschantz
ec64a98562 chore(ios): modify version scripts
Wrap scripts for FirstVoices so that environment variables are retained
2024-04-29 15:52:00 +07:00
Darcy Wong
b1409dd5d1 fix(common): Add retries to curl for downloads.keyman.com query 2024-04-29 10:04:50 +07:00
Darcy Wong
aab6c1c6fb fix(common): Retry curl downloads up to 5 times 2024-04-29 09:49:03 +07:00
sgschantz
00e850c557 add script to update version string in settings 2024-04-23 13:24:40 +07:00
sgschantz
28806614a5 tagged and untagged versions of set-bundle-versions script 2024-04-23 12:32:28 +07:00
sgschantz
534741aff6 create separate script for setting the version of the bundle 2024-04-23 10:10:13 +07:00
sgschantz
985d49b856 script to call another script without cleaning environment 2024-04-22 15:28:10 +07:00
Marc Durdin
db514e0dc5 fix(common): update emoji stripping for Unicode 15.1
Fixes #11220.

Replaces the sed script for matching emoji in ios prepRelease with a
tiny node project that uses emoji-regex package, to reduce future
maintenance.

Also strips lingering emoji and :xxx: emoji shortcut strings from
HISTORY.md. Note that :xxx: are not stripped programatically at this
time.
2024-04-18 09:05:30 +07:00
Marc Durdin
02812af97f fix(common): specify title explicitly when opening PR with hub
Fixes #11125.

Discussion in #11125; looks like it may be due to a race in hub?
2024-04-05 09:20:23 +07:00
Marc Durdin
92899752c6 fix(common): add unit test for --debug flag for builder
Fixes #10957. The builder --debug flag appears to be passed correctly,
according to this test. This is a good test to keep, so won't remove it,
but there is something else going on in the base test.
2024-03-11 05:44:45 -05:00
Marc Durdin
d1aef64460 chore(developer): deploy compiler messages to help site
Fixes #10889.

This involved a bit more refactoring to help-keyman-com.sh in order to
allow for multiple paths to be uploaded.

I opted _not_ to move the entire Keyman Developer documentation into
this repository, partly because a number of pages are still in PHP
rather than Markdown.
2024-03-01 11:01:47 +07:00
Marc Durdin
99e5b1951e feat(developer): publish api documentation to help.keyman.com
Relates to #10207.
2024-02-26 13:48:32 +07:00
Marc Durdin
d7411ec4c4 fix(developer): version string matches for sentry
Fixes two things:
* $VERSION_GIT_TAG was being misinterpreted by mkver as
  $VERSION + "_GIT_TAG". This has been addressed by making the $VERSION
  match the last one in the replaceVersionStrings_Mkver function, and
  also have moved to using the newer $VersionGitTag and $Environment
  vartiables instead.
* The 'dist' property was being set in sentry-cli sourcemap uploads,
  though we never set the dist prop when we initialize sentry.
2024-02-22 11:48:56 +07:00
Marc Durdin
2ce3bb4fbd chore: add from and to params to increment-version 2024-02-15 13:12:56 +07:00
Marc Durdin
fdc2cd438e chore: workaround release inc build block
Fixes #10721.

This arose partly because of the change from release- to release@ in at
17.0.30-alpha (triggered by sentry req). Will require a corresponding
patch to CI script to pass the --from and --to parameters.
2024-02-15 12:51:02 +07:00
Eberhard Beilharz
ba2db9fd58
chore(linux): Don't set VERSION_TAG to …-local in .deb packages
Previously we didn't detect that we were building a .deb package on
Launchpad or a Debian server, so we set VERSION_TAG to end in `-local`.
This change now checks the `KEYMAN_PKG_BUILD` environment variable which
will be set during .deb package builds (set in `debian/rules`). The
downside of this solution is that now `-local` also gets omitted if
we build a .deb package on a local dev machine, but that probably doesn't
happen too often, and even less often with modified source code. The
majority of builds where we want `-local` are local builds that get
installed locally, and those cases are covered by this change. And what
is more important is that for release builds we no longer append `-local`.
2024-02-08 16:45:07 +01:00
Marc Durdin
09e971d3ca chore: tweak script for stability 2024-02-01 16:16:19 +07:00
Marc Durdin
7c8003a0f7 chore(common): cancel earlier builds when new test builds triggered
Fixes #10590.

Cancels existing running or queued test builds on TeamCity when a new
build is started for the same 'branch' (aka branch or PR).

Does not touch release builds or other projects -- only touches
recognized test build configurations.
2024-02-01 16:02:23 +07:00
Eberhard Beilharz
a5f2d5fc96
fix(linux): Fix packaging GHA
For some reason with some PR builds we got an incorrect base ref. This
change makes better use of the information that GitHub provides and so
should work around the problem.
2023-11-16 22:15:25 +01:00
Eberhard Beilharz
c3750a6edc
fix(linux): Improve triggering of packaging GHA
We now pass the SHA for the base ref. Hopefully this will fix the failures
with API verification.
2023-11-14 18:50:15 +01:00
Eberhard Beilharz
0303a81eb8
chore(linux): Merge branch 'master' into chore/linux/9801_coreversion 2023-11-13 19:14:31 +01:00
Eberhard Beilharz
afc63278b8
chore(linux): Address code review comments 2023-11-13 18:14:55 +01:00
Eberhard Beilharz
5cc027b3b5
Merge pull request #9968 from keymanapp/fix/linux/trigger
fix(linux): Fix trigger for baseline tests
2023-11-08 13:44:17 +07:00
Eberhard Beilharz
71c9cda362
fix(linux): Fix trigger for baseline tests
When the baseline tests change we want to trigger a Linux build.
2023-11-08 12:26:48 +07:00
Eberhard Beilharz
32f3074273
chore(linux): Fix GHA triggering
When we build a PR on TC we use `pull/ID/head` for the build, not
`pull/ID/merge`, i.e. the tip of the feature branch and not a merge
with the base branch. This means that during the build `pull/ID/merge`
is unknown. This change modifies the trigger to use `pull/ID/head` for
GHA builds as well.

It's still a mystery why `pull/ID/merge` was known to builds in most
cases but failed for some PRs.
2023-11-08 10:42:30 +07:00
Eberhard Beilharz
0967e120d3
Merge branch 'master' into chore/linux/9801_coreversion 2023-11-04 21:49:33 +07:00
Eberhard Beilharz
8c508051b7
Merge pull request #9865 from keymanapp/chore/linux/9548_manualTrigger
chore(linux): Improve repository_dispatch 🎬
2023-11-03 10:12:07 +07:00
Eberhard Beilharz
517c300abc
chore(linux): Revert to repository_dispatch
This addresses code review comments. Also add readme how to manually
trigger a GHA build, e.g. for testing changes to the GHA.
2023-11-02 22:42:49 +07:00
Marc Durdin
0448fbd681 chore: include ci/pull-requests.inc.sh for help uploads 2023-10-31 04:50:28 +07:00
Marc Durdin
6c00656849 chore(common): unify pull-request creation scripts
Fixes #9886.
2023-10-30 06:22:52 +07:00
Eberhard Beilharz
30250e3d8d
chore(linux): Enhance GHA API check
This change adds additional checks for the symbols file:

- if a line with a method name gets changed, the package version number
  in that line also needs to be updated
- for major API changes (methods renamed or removed) the API version
  numbers needs to be incremented
- the API version numbers in the .symbols file and in `CORE_API_VERSION.md`
  need to match
2023-10-26 18:04:43 +02:00
Eberhard Beilharz
1a2a85affd
chore(linux): Use workflow_dispatch instead of repository_dispatch
This makes it possible to manually trigger workflow runs.

Closes #9548.
2023-10-26 17:16:05 +02:00
Marc Durdin
4f44ac6e2a fix: path for ESM increment-version, and exit code
* Fixes the path for the increment-version module
* Uses exit code 50 instead of 1 to indicate 'success, but no change',
  so that low-value error exit codes as used by node.js don't
  indavertently continue the build
2023-10-11 09:39:03 +07:00
Marc Durdin
e511e3910e
Merge pull request #9731 from keymanapp/chore/builder-inc-sh-cleanup
chore: clean up a few minor discrepancies in builder.inc.sh
2023-10-11 13:09:36 +11:00
Marc Durdin
b33f476c8d chore: clean up a few minor discrepancies in builder.inc.sh
- Some uses of `KEYMAN_ROOT` (not cross-repo compatible)
- `set -eu` and `SHLVL` now set there as well
2023-10-10 16:36:24 +07:00
Marc Durdin
6c944cff65 chore: Merge branch 'epic/package-metadata' into chore/merge-master-into-package-metadata 2023-10-06 11:52:13 +07:00
Marc Durdin
d4e4992714 chore(common): cleanup final Typescript non-ESM metadata
Fixes #9262.
2023-10-04 12:55:51 +07:00
Marc Durdin
fbd9a4b5e8 chore(common): convert resources/build/version to ES Modules
Fixes #9677.
2023-10-04 11:50:53 +07:00
Marc Durdin
d99388fc68
Merge branch 'epic/package-metadata' into chore/merge-master-into-package-metadata 2023-09-29 09:31:53 +02:00
Marc Durdin
65d95d39fc
Merge pull request #9535 from keymanapp/feat/developer/eliminate-source-info-files
feat(developer): eliminate source .model_info and .keyboard_info files 🎺
2023-09-28 10:54:08 +02:00