Commit graph

127 commits

Author SHA1 Message Date
Spencer 98c57063f7
[7.16] [eslint] enable type-specific lint rules (#114184) (#117451)
* [eslint] enable type-specific lint rules

(cherry picked from commit e824fdc2c8)

* autofix all violations

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-03 23:58:42 -06:00
Kibana Machine 9d6ab983ca
[kbn/optimizer] dll @babel/runtime modules used by entry bundles (#113453) (#116871)
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-10-30 02:25:42 +01:00
Kibana Machine c7b98c59c9
Remove Angular (#115464) (#115609)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-10-19 15:46:56 -04:00
Kibana Machine b245dd424f
[kbn/optimizer] fix --update-limit docs (#114840) (#114878)
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-10-15 21:52:33 +01:00
Kibana Machine b0907db6f2
[kbn/optimizer] log about high-level optimizer progress (#103354) (#114398)
* [kbn/optimizer] log about high-level optimizer progress

* restore logOptimizerProgress helper to fix tests

* fix lint error

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

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-08 18:51:33 -04:00
Kibana Machine 44b1a2e4cf
[ci-stats] Local metrics fixes (#113492) (#113710)
* Rename `{ group: 'yarn start', id: 'started' }` to `{ group: 'scripts/kibana', id: 'dev server started' }` for consistency
* Rename `{ group: '@kbn/optimizer' }` to `{ group: 'scripts/build_kibana_platform_plugins' }` for consistency
* Include email for Elastic employees
* Standardize on Unix paths
* Set `subProcess: true` if the timing is already captured by a parent.
* Move nestedTiming to global and use normalize-path

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-03 18:34:03 -04:00
Kibana Machine 49c986fb1a
[ci-stats] Collects additional timings about bootstrap (#112919) (#113348)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-28 23:24:36 -04:00
Kibana Machine 100f04e961
[7.x] [kbn/optimizer] mangle variables in optimizer bundles (#112435) and (#113119) (#112498)
* [kbn/optimizer] mangle variables in optimizer bundles (#112435)

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

* [optimizer] keep classnames to support constructor.name (#113119)

Co-authored-by: spalger <spalger@users.noreply.github.com>
(cherry picked from commit 6612f2b533)

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-27 20:34:49 +00:00
Tyler Smalley c16480e849
[7.x][DX] Upgrade prettier to v2.4.0 (#112359) (#112524)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:46 -07:00
Spencer bd60405ec7
[kbn/ui-shared-deps] split into two packages (#110558) (#112475)
* [kbn/ui-shared-deps] split into two packages

* fix asset categorizer

* update snapshots

* reference npm dll from optimizer

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	src/plugins/interactive_setup/public/single_chars_field.tsx
#	test/scripts/jenkins_build_kibana.sh
2021-09-16 18:02:17 -04:00
Stacey Gammon e7dbd91d3d
[7.x] Make owner attribute required on kibana.json (#108231) (#110215)
* Make owner attribute required on kibana.json (#108231)

* make owner attribute required

* Add owner properties in more places

* add test for owner attribute

* add error check too in the test

* Fix tests

* fix tests and update docs

* wip

* More test fixes

* Fix All The Errorz

* Adding more owner attributes

* Update x-pack/test/saved_object_api_integration/common/fixtures/saved_object_test_plugin/kibana.json

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/test/ui_capabilities/common/fixtures/plugins/foo_plugin/kibana.json

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* commeeeooonnnn

* Update docs

* soooo many kibanajsons

* adjust plugin generator to add an owner

* Add owner to the plugin generator scripts

* update snapshot

* Fix snapshot

* review updates

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	dev_docs/tutorials/building_a_plugin.mdx
#	src/dev/code_coverage/ingest_coverage/integration_tests/fixtures/test_plugin/kibana.json
#	test/common/fixtures/plugins/coverage/kibana.json

* Update kibana.json

Add owner attribute

* Remove this json file. It was deleted.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 16:19:52 -04:00
Kibana Machine d41c9aea0d
add script to update VSCode config with proper excludes (#110161) (#110554)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-30 22:04:55 -04:00
Kibana Machine d92391df74
Bump node-sass to 6.0.1 (#109930) (#110543)
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-08-30 20:01:09 -04:00
Kibana Machine fb8af4d7d3
chore(NA): moving @kbn/ui-shared-deps to babel transpiler (#109323) (#109509)
* chore(NA): moving @kbn/ui-shared-deps to babel transpiler

* fix(NA): missing correct paths on package.json files

* chore(NA): update jest integration snapshots

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-20 14:45:32 -04:00
Kibana Machine 3f01f1fd59
[kbn/optimizer] store references to bazel target for all package files (#106171) (#106271)
* [kbn/optimizer] store references to bazel target for all package files

* update jest snapshots

* remove unnecessary fixtures

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 13:40:18 -04:00
Kibana Machine 528c29e217
[kbn/optimizer] rewrite bazel-out paths to source paths (#105154) (#105369)
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-12 20:22:58 -04:00
Spencer 6dee8d8fbc
[7.x] [theme] default to v8 theme (#94370) (#105290)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-12 16:29:09 -07:00
Kibana Machine 862426ab4b
[kbn/optimizer] maintain bundle ref support when using --filter (#104512) (#104545)
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-06 22:51:55 +00:00
Kibana Machine a35147a28f
[kbn/optimizer] fix optimizerCache creation (#103190) (#103532)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-28 16:39:31 -04:00
Kibana Machine 5df616f29d
chore(NA): moving @kbn/optimizer into bazel (#102965) (#103066)
* chore(NA): moving @kbn/optimizer into bazel

* chore(NA): fix source import from kbn optimizer

* chore(NA): update snapshots

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-24 03:47:24 +00:00
Tiago Costa 3cfbe71203
[7.x] chore(NA): moving @kbn/ui-shared-deps into bazel (#101669) (#102666)
* chore(NA): moving @kbn/ui-shared-deps into bazel (#101669)

* chore(NA): moving @kbn/io-ts-utils into bazel

* chore(NA): moving @kbn/ui-shared-deps into bazel

* chore(NA): compelte working build for @kbn/ui-shared-deps

* chore(NA): solve eslint problems

* chore(NA): solve typechecking

* chore(NA): debugger changes

* chore(NA): update optimizer basic integration tests

* chore(NA): ship kbn/ui-shared-deps metrics.json from new location at shared_built_assets

* chore(NA): use correct ui-shared-deps metrics file location

* chore(NA): remove webpack bazel config

* chore(NA): implement improvements on webpack config

* chore(NA): remove extra comment

* chore(NA): try esbuild-loader minimizer

* Revert "chore(NA): try esbuild-loader minimizer"

This reverts commit bffc49aaae.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh

* chore(NA): last file containing old path for metrics.json file
2021-06-18 20:39:29 -04:00
Brian Seeders 95eff5c7a8
[CI] Buildkite support with Baseline pipeline (#100492) (#101108) 2021-06-03 12:00:25 -04:00
Kibana Machine 0195e666d2
Upgrade globby dependency (8.0.111.0.3). (#96287)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-04-06 07:01:42 -04:00
Kibana Machine 1cd153e5c7
[kbn/optimizer] import source-map-support in script to avoid breaking jest snapshots (#96011) (#96013)
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-03-31 23:49:31 -04:00
Tiago Costa 69bec3f49f
chore(NA): enable preserve symlinks for ts without breaking packages development (#95433) (#95884)
* chore(NA): move elastic-datemath into a ts package

* chore(NA): finish elastic-datemath

* chore(NA): finish elastic-datemath

* chore(NA): source folder for elastic-datemath

* chore(NA): add source-maps ace, analytics, apm-config-loader and apm-utils packages

* chore(NA): add sourcemaps to packages on typescript

* chore(NA): move test fixtures within source

* chore(NA): correct exclusions on packages

* chore(NA): correct package.json on all packages

* chore(NA): correct package.json on all packages

* chore(NA): complete kbn pm

* chore(NA): default export on elastic-datemath

* chore(NA): include logs on kbn-logging

* chore(NA): update bundle ref module to last code used in the webpack upstream

* chore(NA): update bundle ref module to last code used in the webpack upstream - refactored

* chore(NA): remove override method for exportsArgument

* fix(NA): typechecking problems by use @internal at javascript import sources on kbn-test package

* fix(NA): typescript projects check

* fix(NA): run optimizer integration tests from source

* chore(NA): fix usage from target for kbn optimizer

* chore(NA): path on tsconfig

* chore(NA): move tsignore into ts-expect-error

* chore(NA): include souce maps on kbn cli dev

* chore(NA): include souce maps on kbn-crypto, kbn-server-http-tools and kbn-telemetry-tools

* chore(NA): add issue links into the ts-expect-error comments
# Conflicts:
#	packages/elastic-datemath/README.md
#	packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
2021-03-30 23:54:44 -04:00
Kibana Machine 7c53bc8de2
[cli-dev-mode/optimizer] omit pageLoadAssetSizeLimit from cache (#95826) (#95856)
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-03-30 20:16:11 -04:00
Kibana Machine 3d6df8ea18
[optimizer] Compress sass assets in production (#94846) (#95794)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-03-30 12:15:08 -04:00
Kibana Machine cef122f9db
[optimizer] Compress javascript assets (#94717) (#94946)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-03-18 14:42:54 -04:00
Kibana Machine a1e09d7ca7
[kbn/optimizer] report timings when run from CLI or build (#94764) (#94862)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-17 19:25:09 -04:00
Tiago Costa e3c70f51fc
chore(NA): ensure scripts run with --preserve-symlinks (#94046) (#94636)
* chore(NA): ensure scripts run with --preserve-symlinks

* chore(NA): run webpack configs with symlinks: false

* chore(NA): fix pkg json load on kbn test

* chore(NA): add script into setup node env

* chore(NA): fix kbn test for relative improt

* chore(NA): fix change on docs

* chore(NA): move ensure node preserve symlinks into setup node env

* chore(NA): update changed docs

* chore(NA): update jest unit test

* chore(NA): fix wrapper script exit code

* chore(NA): updated generated plugin list docs

* fix(NA): make functional test runner use kbn utils repo_root

* chore(NA): fix eslint imports

* chore(NA): missing react correct config on eslint package

* chore(NA): use correct value to make test pass locally

* chore(NA): fix jest tests

* chore(NA): try remove extra preserve symlinks

* chore(NA): fix windows environment

* chore(NA): fix kbn-optimizer to run with preserve-symlinks

* chore(NA): fix integration jest test for kbn/optimizer

* chore(NA): remove require.resolve from eslintrc.js

* chore(NA): avoid load json file

* chore(NA): move kbn/utils import into kbn/dev-utils

* chore(NA): use correct dependencies on eslint config package

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-15 18:57:30 -04:00
Spencer c7bfd74ebc
[ci-stats] ship timings, collect overall bootstrap time (#93557) (#94460)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	docs/developer/index.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-11 15:30:24 -05:00
Spencer 92f82a0643
[kbn/optimizer/node] use shorter cache keys to avoid overflowing limit (#93316) (#93444)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/src/node/node_auto_tranpilation.ts
2021-03-03 12:51:21 -05:00
Kibana Machine e7195f482a
[kbn/optimizer] allow customizing the limits path from the script (#93153) (#93356)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-02 22:45:54 -05:00
Spencer d3c37cde22
[7.x] [kbn/optimizer][ci-stats] ship metrics separate from build (#90482) (#90659)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 16:40:11 -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
Tiago Costa 1c6adb44e5
[7.x] chore(NA): introduce new yarn kbn reset command to support bazel workflow (#89597) (#90244)
* chore(NA): introduce new yarn kbn reset command to support bazel workflow (#89597)

* chore(NA): introduce new yarn kbn destroy command to support bazel workflow

* chore(NA): update wording for new kbn pm changes

* chore(NA): update .bazelrc.common

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

* chore(NA): update .bazelrc

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

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

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

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

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

* chore(NA): rename destroy command into reset

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): restore old behaviour on kbn clean

* chore(NA): update reset command to delete bazel caches on disk

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): update prefix to match bazel defined one for cache settings

* chore(NA): update kbn pm dist file

* chore(NA): update kbn pm dist

* chore(NA): update gitignore

* chore(NA): add new ignore files after changed bazel aggregated folder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js

* chore(NA): update changes on kbm pm

* chore(NA): fix jest test
2021-02-04 00:00:12 +00:00
Wylie Conlon abc5b82d40
Tinymath is now a Kibana package (#89383) (#89621)
* Tinymath is now a Kibana package

* Rename to @kbn/tinymath

* Update import style

* Update README

* Use commonjs import syntax

* Fix to commonjs export

* More commonjs fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-30 07:36:24 -05:00
Spencer 8f31cdfae5
[7.x] [browserslist] remove unnecessary browsers (#89186) (#89250)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-25 18:22:34 -07: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
Jonathan Budzenski 1dc3276e74
[7.x] [dev] Replace sass-lint with stylelint (#86177) (#88498)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>

Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
2021-01-15 14:36:34 -06:00
Spencer 79d4646bdd
[7.x] [kbn/optimizer/node] properly separate lmdb databases, log better (#83849) (#83941)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-20 11:39:55 -07:00
Spencer 426bf9cc9d
[7.x] Revert lmdb-store upgrade (#83830) (#83857)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-19 15:00:08 -07:00
Tiago Costa f3b4cd427c
chore(NA): update lmdb store to v0.8.15 (#83726) (#83749)
* chore(NA): upgrade lmdb-store to v0.8.15

* chore(NA): remove unused ts-error statements
2020-11-19 02:03:56 +00:00
Spencer bb11cc699f
[7.x] upgrade to lmdb-store 0.8 (#83479) (#83492)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-11-16 16:49:31 -07:00
Thomas Watson 3c82fde4f7
Upgrade Node.js to version 12 (#61587) (#83343) 2020-11-13 10:07:13 +01:00
Tyler Smalley 9d5f6d353b
[browserlist] Excludes browsers not supporting es6-class (#81431) (#81968)
* Updates browserlist to exclude those not supporting es6-class

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-29 10:11:28 -07:00
Spencer dbc4904a03
[kbn/optimizer] ignore missing metrics when updating limits with --focus (#81696) (#81711)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-26 20:30:16 -07:00
Mikhail Shustov cf9c0e1192
Add script to identify plugin dependencies for TS project references migration (#80463) (#80811)
* move kbn-dev-utils plugin helpers under a dedicated folder

* use getPluginSearchPaths in kbn-config & kbn-optimizer

* add a script to find plugin dependencies not migrated to TS project refs

* update docs

* add a script reporting all circular deps between plugins

based on kibana.json declaration, so it doesn't provide all the cases

* fix optimizer scan logic. removed by mistake

* revert changes. fails on CI

* remove prod depenedency on kbn/dev-utils

* remove last export

* only run plugin discovery once to speed up circular dep detection

* address comments

* address comments

* update fixtures

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

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-16 13:34:03 +02:00
Nathan L Smith d07839f68e
Add Storybook a11y addon (#80069) (#80778) 2020-10-15 19:43:11 -05:00
Spencer e88ac42fb3
[kbn/optimizer] tweak split chunks options (#80444) (#80763)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-15 16:00:01 -07:00