Commit graph

66 commits

Author SHA1 Message Date
Marc Durdin
c18ef54029 refactor(common): move core baseline tests into common
Decided to use the name `baseline` for this set of tests. They can be
used by any project in the repo now. Tests will be treated as shared,
and not modified (except in the case of a buggy test).

* Moves .kmn files, add `&NAME` line (don't use meson templating for
  these files)
* Generates reference .kmx files using kmcomp for use as a baseline with
  kmcmplib (kmc) tests, and for linux tests
* Updates references in core, kmcmplib, and linux builds
* Renames all the .kmn / .kmx to use a standardized, clean name format
  (this was needed for building packages in the core tests)
2023-03-28 05:20:45 +07:00
Marc Durdin
92ed99c4d6 chore(common): build script performance improvements
Improves build script performance by:
* using built-ins wherever possible (e.g. string splitting)
* eliminating redundant code
* using absolute (to $KEYMAN_ROOT) rather than relative paths to avoid realpath
* removing unnecessary `npm run` calls

BEFORE                         | AFTER
-------------------------------|----------------------
time ./core/build.sh --help    |
real    0m2.116s               | real    0m0.874s
user    0m0.578s               | user    0m0.198s
sys     0m0.984s               | sys     0m0.289s
-------------------------------|----------------------
time ./web/build.sh --help     |
real    0m3.523s               | real    0m0.757s
user    0m1.166s               | user    0m0.320s
sys     0m2.273s               | sys     0m0.455s
-------------------------------|----------------------
time ./web/build.sh -d         |
real    1m34.750s              | real    0m59.974s
user    0m9.721s               | user    0m6.284s
sys     0m19.652s              | sys     0m13.202s

@keymanapp-test-bot skip
2023-03-13 07:18:09 +07:00
Marc Durdin
ce864ea923 chore: update standard script prolog to use builtin instead of dirname 2023-02-22 11:04:15 +07:00
Marc Durdin
463c7ff907 chore: remove greadlink from standard script prolog 2023-02-22 10:43:06 +07:00
Marc Durdin
4d53a277f3 chore: use builder_die, remove fail 2023-02-20 09:15:38 +07:00
Marc Durdin
c475188c6b chore: use builder_die, remove die 2023-02-20 09:03:37 +07:00
Joshua A. Horton
889d347c02 chore(common): Merge branch 'master' into chore/common/js-ts-dependency-updates 2023-02-16 13:51:31 +07:00
Marc Durdin
4598f13ba8 chore(common): automatically apply _builder_check_color 2023-02-09 12:12:18 +07:00
Joshua A. Horton
24d3f35cc7 fix(developer): drops implicit 'dom' library from server tsconfig 2023-02-09 10:32:02 +07:00
Joshua Horton
1b220db622
Merge pull request #7894 from keymanapp/feat/common/srcmap-remap-module
feat(common): TS-based sourcemap remapping tool 📜
2023-02-02 09:21:08 +07:00
Joshua Horton
73be1a1af0
Merge pull request #7831 from keymanapp/chore/web/ci-step-extraction
chore(web): updates build product references, extracts CI test-build scripts 📜
2023-02-02 09:20:53 +07:00
Joshua A. Horton
fcd381e5b8 chore(web): Merge branch 'master' into change/web/reorg-tools 2023-02-02 09:20:04 +07:00
Joshua Horton
3fb4cdd005
Merge pull request #7515 from keymanapp/change/web/reorg-test-pages-cases
change(web): conversion to standard filesystem layout:  testing -> src/test/manual, unit_tests -> src/test/auto 📜
2023-02-02 09:19:30 +07:00
Joshua A. Horton
ede1068d51 chore(web): Merge branch 'master' into change/web/reorg-source-src-reorg 2023-02-02 09:18:46 +07:00
Joshua A. Horton
e2d1b17dec fix(common): some nits 2023-02-01 13:08:26 +07:00
Joshua A. Horton
61a4a3af0d fix(web): changed the docs in advance; forgot to change implementation 2023-01-10 10:09:18 +07:00
Joshua A. Horton
df3670deb8 change(web): param name tweak 2023-01-09 13:53:55 +07:00
Joshua A. Horton
e5738667b4 change(web): main web's source cleaner tool now based on new common tool 2023-01-09 13:45:32 +07:00
Joshua A. Horton
26bddf133a chore(web): Merge branch 'change/web/reorg-tools' into chore/web/ci-step-extraction 2022-12-01 10:51:49 +07:00
Joshua A. Horton
2abec678eb chore(web): Merge branch 'change/web/reorg-source-src-reorg' into change/web/reorg-test-pages-cases 2022-12-01 10:48:27 +07:00
Joshua A. Horton
5e961d91f0 chore(web): ye olde copy-paste cleanup 2022-12-01 10:46:06 +07:00
Joshua A. Horton
a210e5fe78 chore(web): Merge remote-tracking branch 'origin/change/web/reorg-tools' into change/web/reorg-tools 2022-12-01 10:44:39 +07:00
Joshua Horton
b91451b933
chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-12-01 10:44:47 +07:00
Joshua A. Horton
edcadb744b chore(web): Merge branch 'change/web/reorg-source-src-reorg' into change/web/reorg-tools 2022-12-01 10:42:47 +07:00
Joshua A. Horton
49ab4d4cef chore(web): a bit more cleanup 2022-12-01 08:28:58 +07:00
Joshua A. Horton
f5acaf6e08 fix(web): fixes kbd-script pathing for recorder when TC-served 2022-11-29 15:13:44 +07:00
Joshua A. Horton
a859170f35 fix(web): recorder resource path handling for user-testing artifact 2022-11-29 13:14:26 +07:00
Joshua A. Horton
c91875bbb1 fix(web): recorder test page's recording ability 2022-11-29 12:39:20 +07:00
Joshua A. Horton
e3b70c03d2 chore(web): recorder page path fixup, build retrigger for recorder resources 2022-11-29 12:19:25 +07:00
Joshua A. Horton
2c610f59a1 docs(web): decommissions a TODO (is now a to-done!) 2022-11-29 10:46:33 +07:00
Joshua A. Horton
4e78e5b435 fix(web): missing android-harness resources 2022-11-29 10:39:25 +07:00
Joshua A. Horton
7fcdeaf9c1 chore(web): extracts Web CI test-build scripts to in-repo script, updates refs 2022-11-29 09:48:43 +07:00
Joshua A. Horton
5fdf409f37 fix(web): engine bundle-build check path logic 2022-11-29 09:47:38 +07:00
Joshua A. Horton
12b3097bf7 fix(web): fixes unit-test require href 2022-11-29 09:47:37 +07:00
Joshua A. Horton
72f8de256d fix(web): builder dependency spec issues 2022-11-29 09:47:36 +07:00
Joshua A. Horton
a1a5cca79a fix(web): missing -f option on bulk_rendering clean rm cmd 2022-11-29 09:47:35 +07:00
Joshua A. Horton
11d6b7663b fix(web): fixes kbd-doc manual test page resource links 2022-11-29 09:47:33 +07:00
Joshua A. Horton
41729088f8 chore(web): web index page cleanups 2022-11-29 09:47:32 +07:00
Joshua A. Horton
eb9cd0c9e9 chore(web): script patch-up, new tools/testing/recorder script 2022-11-29 09:47:07 +07:00
Joshua A. Horton
9d82125725 change(web): moves bulk_rendering under tools/testing, adds clean action 2022-11-29 09:46:50 +07:00
Joshua A. Horton
fe95bfe04c change(web): separate src/engine build.sh 2022-11-29 09:46:49 +07:00
Joshua A. Horton
6bbb946743 docs(web): tools -> engine readme.md tweaks 2022-11-29 09:46:47 +07:00
Joshua A. Horton
6b53dbb4a0 fix(web): restores unit test operation 2022-11-29 09:46:42 +07:00
Joshua A. Horton
a57506a619 change(web): device-detect and element-wrappers as engine/ components 2022-11-29 09:45:53 +07:00
Joshua A. Horton
ba21cb06f5 change(web): src/engine -> src/engine/main 2022-11-29 09:45:44 +07:00
Joshua A. Horton
593fbd248e change(web): moves web/tools to web/src/tools/testing, restores base builds 2022-11-29 09:45:15 +07:00
Joshua A. Horton
0ece8cf752 change(web): moves sourcemap_root under src/tools/building 2022-11-29 09:45:14 +07:00
Joshua A. Horton
b40e62fb57 chore(web): one manual testing page didn't get moved 2022-11-29 09:39:19 +07:00
Joshua A. Horton
04c13dd8f8 chore(web): Merge branch 'change/web/reorg-source-src-reorg' into change/web/reorg-test-pages-cases 2022-11-28 10:29:40 +07:00
Joshua A. Horton
448fa44715 chore(web): Merge branch 'chore/web/top-level-build-script-rework' into change/web/reorg-source-src-reorg 2022-11-28 10:21:48 +07:00