Skip to content

[9.3] Add local Moon-based validation via scripts/check (#256599)#262386

Merged
tylersmalley merged 1 commit intoelastic:9.3from
tylersmalley:backport/9.3/pr-256599
Apr 10, 2026
Merged

[9.3] Add local Moon-based validation via scripts/check (#256599)#262386
tylersmalley merged 1 commit intoelastic:9.3from
tylersmalley:backport/9.3/pr-256599

Conversation

@tylersmalley
Copy link
Copy Markdown
Member

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

Introduce a new `scripts/check` entrypoint that uses Moon changed-file
resolution to run eslint, jest, and type_check against local, staged, or
branch-scoped changes.

Keep the existing `eslint`, `jest`, and `type_check` commands intact for
their default direct usage, and only route them through the new
validation contract when scoped validation flags are present. This also
adds dedicated contract runners for jest, eslint, and type_check, plus
clearer help and shallow-repo warnings for the new workflow.

Updates elastic#255391

---------

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3a3c8c5)
@tylersmalley tylersmalley added the backport This PR is a backport of another PR label Apr 9, 2026
@tylersmalley tylersmalley enabled auto-merge (squash) April 9, 2026 21:33
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/test 349 366 +17
@kbn/ts-type-check-cli 0 13 +13
total +30

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/test 1 4 +3
Unknown metric groups

API count

id before after diff
@kbn/test 418 438 +20
@kbn/ts-type-check-cli 0 16 +16
total +36

@tylersmalley tylersmalley disabled auto-merge April 10, 2026 03:21
@tylersmalley tylersmalley merged commit c810ab1 into elastic:9.3 Apr 10, 2026
15 checks passed
@tylersmalley tylersmalley deleted the backport/9.3/pr-256599 branch April 10, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants