Commit graph

137 commits

Author SHA1 Message Date
Kibana Machine 7f5cd8ece6
[ci-stats] Collects additional timings for cli tools (#113030) (#113908)
* [ci-stats] Collects additional metrics about bootstrap

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* test reporting

* [ci-stats] Collects additional metrics about bootstrap

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Move ts timing to build_ts_refs_cli script

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Add timings to run

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* info debug level

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* fix build

* Move report function to dev-utils
align name of tests
report from functional test runner

* report snapshot install \ ready times
fix event names

* Report memory usage and branch hash

* fix eslint

* fix integration test

* build

* mergy merge

* mergy merge 2

* eslint

* eslint

* ready events

* Update packages/kbn-es/src/cli_commands/snapshot.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-es/src/cluster.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-es/src/cli_commands/snapshot.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-test/src/functional_tests/cli/start_servers/cli.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update src/dev/run_check_published_api_changes.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-test/src/jest/run.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update src/dev/run_i18n_check.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-test/src/functional_test_runner/cli.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* code review

* pm

* merge

* dist

* jest fix

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>
2021-10-05 08:25:32 -04:00
Kibana Machine c2f054f7a6
[ci] bump Jenkins worker memory and es JVM size (#111760) (#111787)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-09 20:39:43 +00:00
Kibana Machine 7336717d61
chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217)
* chore(NA): replace babel config files by inline presets by default in the js_ts_transpiler rule

* chore(NA): update @kbn/ace build to exclude worker file

* chore(NA): remove config file support

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-09-03 18:41:32 -04:00
Kibana Machine c6fdc334ab
Enable Product check from @elastic/elasticsearch-js (#107663) (#110250)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-08-26 16:59:25 +00:00
Spencer 79e45f2190
[build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139)
* [build_ts_refs] improve caches, allow building a subset of projects

* cleanup project def script and update refs in type check script

* rename browser_bazel config to avoid kebab-case

* remove execInProjects() helper

* list references for tsconfig.types.json for api-extractor workload

* disable composite features of tsconfig.types.json for api-extractor

* set declaration: true to avoid weird debug error

* fix jest tests

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	.gitignore
#	examples/hello_world/tsconfig.json
#	tsconfig.json
#	tsconfig.refs.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 05:08:54 -04:00
Alejandro Fernández Haro 209b062454
[7.x] Disable Product check in @elastic/elasticsearch-js (#107642) (#107825)
* Disable Product check in @elastic/elasticsearch-js (#107642)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	yarn.lock

* Bump @elastic/elasticsearch-js version
2021-08-06 06:56:56 -04:00
Kibana Machine 7fef2821a8
chore(NA): moving @kbn/es to babel transpiler (#107577) (#107595)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-03 19:26:00 -04:00
Kibana Machine 112f03d8e5
[kbn/dev-utils] pull in extract() helper (#106277) (#106324)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-20 18:37:56 -04:00
Luke Elmers 6f31a759f4
[migrations v2] Integration test for multi-node cluster. (#100957) (#103559)
# Conflicts:
#	packages/kbn-test/src/es/test_es_cluster.ts
2021-06-28 18:34:31 -04:00
Tiago Costa 1972311f6f
fix(NA): windows ts_project outside sandbox compilation (#100947) (#101305)
* fix(NA): windows ts_project outside sandbox compilation adding tsconfig paths for packages

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): missing @kbn paths for node_modules so types can work

* chore(NA): organizing deps on non ts_project packages

* chore(NA): change order to find @kbn packages on node_modules first

* chore(NA): add @kbn/expect typings setting on package.json

* chore(NA): fix typechecking

* chore(NA): add missing change on tsconfig file

* chore(NA): unblock windows build by not depending on the pkg_npm rule symlink in the package.json

* chore(NA): add missing depedencies on BUILD.bazel file for io-ts-list-types

* chore(NA): remove rootDirs configs

* chore(NA): change kbn/monaco targets order

* chore(NA): update kbn-monaco build

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-06-03 14:53:36 -04:00
Kibana Machine c635144ebe
chore(NA): correctly setup dep order on js_library to fix windows build (#100420) (#100428)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-20 20:57:21 -04:00
Kibana Machine f627ed57ca
[kbn-es] Allow overriding of Java heap (#99517) (#99794)
* [kbn-es] Allow overriding of Java heap

Fixes #99494

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-05-11 12:31:37 -04:00
Kibana Machine 1152586e03
chore(NA): moving @kbn/es into bazel (#99371) (#99405)
* chore(NA): moving @kbn/es into bazel

* chore(NA): remove build scripts from pkg json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-06 02:07:43 +00:00
Kibana Machine b3fc91c6d8
chore(NA): moving @kbn/dev-utils into bazel (#98496) (#98696)
* chore(NA): moving @kbn/dev-utils into bazel

* docs(NA): updated generated plugin list

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-29 00:50:19 +00:00
Spencer d773e4f78a
[kbn/es] disable geoip downloader at the root (#98372) (#98533)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es/src/cluster.js
2021-04-27 16:34:23 -04:00
Kibana Machine 385ed29080
[kbn-es] Increase ES heap (#97905) (#97932)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-04-21 17:06:35 -07:00
Kibana Machine a5f590d826
chore(NA): moving @kbn/babel-preset into bazel (#97271) (#97436)
* chore(NA): moving @kbn/babel-preset into bazel

* chore(NA): remove unused deps from xpack package.json

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-19 08:50:36 -04:00
Spencer 684edffa1d
[7.x] [es] disable wildcards in destructive actions (#88986) (#90804)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-09 13:15:14 -05:00
Spencer a3b55577b1
[kbn/es] avoid splitting string esArgs into separate args (#90253) (#90257)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es/src/cluster.js
2021-02-03 23:52:51 -07:00
Brandon Kobel 57af8462e4
[7.x] Elastic License 2.0 (#90192)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:39:13 -08:00
Patrick Mueller 7c9028ac08
[data] change KQL node builder to not generate recursive and/or clauses (#89345) (#89890)
resolves https://github.com/elastic/kibana/issues/88367

Prior to this PR, the KQL node_builder code was using recursion to generate
"and" & "or" expressions.  Eg, `and(foo1=bar1, foo2=bar2, foo3=bar3)` would
be generated as if was specified as `and(foo1=bar1, and(foo2=bar2, foo3=bar3))`.

Calls to the builder with long lists of expressions would generate nested JSON
as deep as the lists are long.  This is problematic, as Elasticsearch is
changing the default limit on nested bools to 20 levels, and alerting already
generates nested bools greater than that limit.
See: https://github.com/elastic/elasticsearch/issues/55303

This PR changes the generated shape of above, so that all the nodes are at the
same level, instead of the previous "recursive" treatment.
2021-02-01 14:31:50 -05:00
Spencer 30efb21112
[7.x] [kbn/pm] throw an error if package doesn't have a script (#89438) (#89462)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 11:48:28 -07:00
Brian Seeders d2eaedcdab
[kbn-es] Always use bundled JDK when starting Elasticsearch (#89437) (#89491) 2021-01-29 12:01:49 -05:00
Tyler Smalley baf56d80c4
[7.x] Updating the License (#88343) (#88745)
* Updating the Licenses, except for applying eslint, building

* Applying ESLint rules,building @kbn/pm, regenerating api docs

Co-authored-by: kobelb <brandon.kobel@elastic.co>
2021-01-19 17:54:11 -08:00
spalger b81af939d3 [kbn/es] start es with raised indices.query.bool.max_nested_depth
(cherry picked from commit e914a60ba8c335a187e8a269596e5072ed4502ee)
(cherry picked from commit 28beb60d79)
(cherry picked from commit 2fc6214627)
2021-01-13 22:07:25 -07:00
Brian Seeders 5ec653f170
Explicitly set Elasticsearch heap size during CI and local development (#86513) (#86573) 2020-12-18 19:56:24 -05:00
Tyler Smalley f9fd733a12
Jest multi-project configuration (#77894) (#84826)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js
#	src/plugins/console/jest.config.js
#	x-pack/plugins/canvas/scripts/jest.js
2020-12-02 14:02:21 -08:00
Tiago Costa 620cbc8ba5
chore(NA): move into single pkg json (#80015) (#82378)
* chore(NA): update gitignore to include first changes from moving into a single package.json

* chore(NA): update gitignore

* chore(NA): move all the dependencies into the single package.json and apply changes to bootstrap

* chore(NA): fix types problems after the single package json

* chore(NA): include code to find the dependencies used across the code

* chore(NA): introduce pure lockfile for install dependencies on build

* chore(NA): update clean task to not delete anything from xpack node_modules

* chore(NA): update gitignore to remove development temporary rules

* chore(NA): update notice file

* chore(NA): update jest snapshots

* chore(NA): fix whitelisted licenses to include a new specify form of an already included one

* chore(NA): remove check lockfile symlinks from child projects

* chore(NA): fix eslint and add missing declared deps on single pkg json

* chore(NA): correctly update notice

* chore(NA): fix failing jest test for storyshots.test.tsx

* chore(NA): fix cypress multi reporter path

* chore(NA): fix Project tests check

* chore(NA): fix problem with logic to detect used dependes on oss build

* chore(NA): include correct x-pack plugins dep discovery

* chore(NA): discover entries under dynamic requires on vis_type_timelion

* chore(NA): remove canvas

* test(NA): fix jest unit tests

* chore(NA): remove double react declaration from storyshot test file

* chore(NA): try removing isOSS check

* chore(NA): support for plugin development

* chore(NA): update logic to fix unit tests and typechecking

* chore(NA): support to run npm scripts in child kbn projects across all envs

* chore(NA): support github checks reporter on x-pack and remove cpy types as the package correctly provides them

* chore(NA): update cpy version

* chore(NA): include last kbn pm changes

* chore(NA): update style on build_production_projects.ts

* chore(NA): remove any cast fom telemetry opt in stats

* chore(NA): remove del and re-use rm -rf again

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/kbn-pm/dist/index.js
#	x-pack/package.json
#	yarn.lock
2020-11-02 23:22:35 +00:00
Mikhail Shustov d1b1023552
bump elastic/elasticsearch-js version to 7.10.0-rc1 (#81288) (#81386) 2020-10-22 07:58:49 +02:00
Spencer 1122493db9
[7.x] [kbn/bootstrap] validate that certain deps don't ship in production (#80549) (#80710)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js
2020-10-15 12:00:44 -07:00
Tyler Smalley ff54de0b31
[7.x] Bumps Jest related packages (#78720) (#79524)
* Bumps Jest related packages (#78720)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	packages/kbn-optimizer/package.json
#	yarn.lock

* Updates kbn-pm dist

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-05 13:03:54 -07:00
Tiago Costa 86f628d318
chore(NA): merge and solve conflicts with 7.x (#79237) 2020-10-02 02:40:18 +01:00
Tyler Smalley ce28f6944f
Aligns several module versions across the repository (#78327) (#78714)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/kbn-spec-to-console/package.json
#	x-pack/package.json
#	yarn.lock
2020-09-29 07:12:06 -07:00
Spencer 941fdca61a
[7.x] [kbn/es] use a basic build process (#78090) (#78659)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:47:05 -07:00
Thomas Watson 3abeedfef5
[7.x] Bump node-fetch to 2.6.1 (#77445) (#77710) 2020-09-17 10:58:13 +02:00
Mikhail Shustov bd66fab861
Introduce TS incremental builds & move src/test_utils to TS project (#76082) (#76632)
* move test_helpers to the core

* create base tsconfig

* all tsconfigs use the base one

* use test_helpers exposed from the src/core

* move getFieldFormatsRegistry to data plugin

* add test_utils project

* compile types after checkout

* add a stub for platform tsconfig.json

* fix broken import

* fix broken path to the base config

* set tsBuildInfoFile for project without outDir

* do not commit tsbuildinfo file

* do not check output d.ts files

* fix type error

* use separate config to build types

* rollback changes to include paths

* mute import zone error

* rename files to avoid references to tsd

* do not use tsd for type tests

* include all ts files in project

* run buildRefs before type check to ensure the latest version

* store tsbuildinfo locally

* update paths to base config

* comment out core/tsconfig.json

* remove ui path

* fix wrong tsbuildinfo path
2020-09-03 23:02:05 +02:00
Thomas Watson 802f101fa7
[7.x] Bump bl sub-dependency (#76260) (#76301)
# Conflicts:
#	yarn.lock
2020-09-01 09:25:21 +02:00
Tyler Smalley 173cae0028
Bump chalk to 4.1.0 (#73397) (#74762)
https://github.com/chalk/chalk/releases

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js
2020-08-11 09:09:37 -07:00
Mikhail Shustov 939f434ae0
[7.x] Bump @elastic/elasticsearch to v7.9.0-rc1 (#72231) (#72595)
* Bump @elastic/elasticsearch to v7.9.0-rc1 (#72231)

* bump @elastic/elasticsearch to 7.9.0-rc1

* bump other packages using @elastic/elasticsearch

* bump es client to rc2

* update code for new typings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-21 15:36:22 +02:00
Spencer 632836f62f
[7.x] [kbn/es] only make one attempt in tests to avoid timeout (#69197) (#69298)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 12:13:24 -07:00
Spencer 34c5445313
[7.x] upgrade npm-run-path (#68539) (#68549)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-08 13:08:37 -07:00
restrry 2fefd60e90 update code style 2020-05-22 10:35:02 +02:00
Spencer 7da55b0486
[kbn/es] retry fetching native realm users (#66511) (#66618) 2020-05-14 15:07:41 -07:00
Joe Portner ded2238fac
[7.x] Add lockfile symlinks (#66211) 2020-05-12 12:59:26 -04:00
Brian Seeders d45b0ca6ed
Throw error in kbn-es when no reserved users found (#65911) (#66233) 2020-05-12 12:33:05 -04:00
Larry Gregory 84ecd64a98
Deprecate kibana user in favor of kibana_system user (#63186) (#65285) 2020-05-05 13:24:27 -04:00
Brian Seeders 57d68c7741
kbn-es: Support choosing the correct architecture (#61096) (#61130) 2020-03-24 17:11:10 -04:00
Spencer 459cb8a324
[7.x] upgrade execa to get stdout/stderr in error messages (#6… (#60588)
* upgrade execa to get stdout/stderr in error messages

* rebuild kbn/pm

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-18 20:22:00 -07:00
Brandon Kobel 9daaa2f52b
Updating tree-kill to 1.2.2 (#55889) (#56925)
* Updating tree-kill to 1.2.2

* Building more stuff

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-05 18:52:27 -08:00
Brian Seeders 85b02e27b9
Fix failing snapshot artifact tests when using env var (#56063) (#56173) 2020-01-28 16:57:39 -05:00