Commit graph

178 commits

Author SHA1 Message Date
Spencer
20f9cf9fd4
[eslint] add rule for validating cross-boundary imports (#137116) 2022-07-25 18:49:17 -05:00
Tre
7a54e0c675
[QA] Drop dead code (#136639)
* [QA][Code Coverage] Drop dead code

I'm hoping these jenkins related code coverage
scripts are no longer needed and can be removed.

* Dropping more after chatting with Spencer:
https://elastic.slack.com/archives/C5UDAFZQU/p1658234270426099
2022-07-20 16:18:25 +01:00
Spencer
4f817ad8a0
[kbn/pm] rewrite to avoid needing a build process (#136207)
* [kbn/pm] rewrite to avoid needing a build process

* uncomment timing reporting

* throw in a few missing comments

* Update README.md

* remove extra SomeDevLog interface from ci-stats-core

* remove non-stdio logging from bazel_runner, improve output formatting

* use private fields instead of just ts private props

* promote args to a positional arg

* optionally require the ci-stats-reporter after each command

* allow opt-ing out of vscode config management

* reduce to a single import

* add bit of docs regarding weird imports and package deps of kbn/pm

* clean extraDirs from Kibana's package.json file too

* tweak logging of run-in-packages to use --quiet and not just CI=true

* remove unlazy-loader

* add readme for @kbn/yarn-lock-validator

* convert @kbn/some-dev-logs docs to mdx

* remove missing navigation id and fix id in dev-cli-runner docs

* fix title of some-dev-logs docs page

* typo
2022-07-18 08:46:13 -07:00
Tre
5e4d3c4c93
[Archive Migrations] Bash functions to facilitate es to kbn archive migrations (#135929) 2022-07-13 10:31:32 +01:00
Spencer
a3b2757e4e
[type-summarizer] reimplement for broader support (#135163)
* [type-summarizer] reimplement for broader support

* Enable sourceMaps in all packages

* include naming collision in summarizePackage test

* fix readmes

* remove unnecessary transient dependency

* remove code that was commented out

* remove outdated todo comment

* ensure errors triggered by untyped-exports are ligible

* remove unused import

* break out snippet generation from AstIndexer

* refactor several massive files into smaller pieces and add more inline docs

* fix typos

* update jest snapshots

* add sections to readme that points people to the useful parts of the source code along with a high-level overview of how the type-summarizer works

* remove --dump flag, it doesn't work

* use decName instead of calling names.get a second time

* include `export` as invalid name
2022-07-06 13:48:45 -05:00
Baturalp Gurdin
e5d73a1169
ingest performance metrics to ci-stats (#134792) 2022-06-22 15:44:11 -07:00
Pierre Gayvallet
10a5f9ac83
Remove old doc generation system for core APIs (#134313)
* Remove old doc generation system for core APIs

* delete docs/development/core folder
2022-06-21 17:43:17 +02:00
Dzmitry Lemechko
6f5b23b221
[packages] add kbn-scalability-simulation-generator package (#132631)
* add kbn-scalability-simulation-generator package

* update codeowners

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-14 10:08:26 +02:00
Søren Louv-Jansen
3df948cbbc
Bump backport to 8.5.0 (#133848) 2022-06-09 16:18:52 +01:00
Katerina Patticha
a3268dece2
[APM] Fix apm e2e tests (#133941)
* Fix integration policy e2e test

* Skip integration e2e

* Use type-only import for synthtrace package

* Fix synthrace script

* Revert "Skip integration e2e"

This reverts commit a5992d5ba9.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2022-06-09 14:39:39 +02:00
Spencer
e1ff02012a
[kbn/optimizer] fix --update-limits (#133945) 2022-06-08 15:50:58 -05:00
Søren Louv-Jansen
702aa29e56
[APM] Fix Synthtrace script (#133620) 2022-06-08 09:24:04 -07:00
Søren Louv-Jansen
6cba3d786b
[APM] Synthtrace improvements (#133303) 2022-06-01 09:30:52 -07:00
Brian Seeders
ec2f5e1d81
[CI] Add a check to ensure all FTR configs are in the manifest (#132857) 2022-05-26 11:18:13 -04:00
Brian Seeders
eb6a061a93
[docs] Add 'yarn dev-docs' for managing and starting dev docs (#132647) 2022-05-20 13:57:49 -07:00
Dzmitry Lemechko
7f62a784df
[packages] add kbn-performance-testing-dataset-extractor (#131631) 2022-05-06 04:11:51 +02:00
Alejandro Fernández Haro
f7a1739dc0
Use target_web to ensure browser compatibility (#130874) 2022-05-05 21:20:51 +02:00
Spencer
542b381fa5
[ftr] automatically determine config run order (#130983)
* [ftr] automatically determine config run order

* split lens config into two groups

* support ftr configs always running against CI

* Split detection_engine_api_integration rule exception list tests

* Add configs from previous commit

* [ftr] remove testMetadata and maintain a unique lifecycle instance per run

* Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run"

This reverts commit d2b4fdb824.

* Split alerting_api_integration/security_and_spaces tests

* Add groups to yaml

* Revert "Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run""

This reverts commit 56232eea68.

* stop ES more forcefully and fix timeout

* only cleanup lifecycle phases when the cleanup is totally complete

* only use kill when cleaning up an esTestInstance

* fix broken import

* fix runOptions.alwaysUseSource implementation

* fix config access

* fix x-pack/ccs config

* fix ml import file paths

* update kibana build id

* revert array.concat() change

* fix baseConfig usage

* fix pie chart data

* split up maps tests

* pull in all of group5 so that es archives are loaded correctly

* add to ftr configs.yml

* fix pie chart data without breaking legacy version

* fix more pie_chart stuff in new vis lib

* restore normal PR tasks

* bump kibana-buildkite-library

* remove ciGroup validation

* remove the script which is no longer called from checks.sh

* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'

* adapt flaky test runner scripts to handle ftrConfig paths

* fix types in alerting_api_integration

* improve flaky config parsing and use non-local var name for passing explicit configs to ftr_configs.sh

* Split xpack dashboard tests

* Add configs

* [flaky] remove key from ftr-config steps

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* restore cypress builds

* remove ciGroups from FTR config files

* fixup some docs

* add temporary script to hunt for FTR config files

* use config.base.js naming for clarity

* use script to power ftr_configs.yml

* remove usage of removed x-pack/scripts/functional_tests

* fix test names in dashboard snapshots

* bump kibana-buildkite-library

* Try retrying only failed configs

* be a little quieter about trying to get testStats from configs with testRunners defined

* Remove test code

* bump kibana-buildkite-library

* update es_snapshot and on_merge jobs too

* track duration and exit code for each config and print it at the end of the script

* store results in order, rather than by key, in case there are duplicates in $config

* bash is hard

* fix env source and use +e rather than disabling e for whole file

* bash sucks

* print config summary in jest jobs too

* define results in jest_parallel.sh

* simplify config summary print, format times a little better

* fix reference to unbound time variable, use better variable name

* skip the newline between each result

* finish with the nitpicking

* sync changes with ftr_configs.sh

* refuse to execute config files which aren't listed in the .buildkite/ftr_configs.yml

* fix config.edge.js base config import paths

* fix some readmes

* resolve paths from ftr_configs manifest

* fix readConfigFile tests

* just allow __fixtures__ configs

* list a few more cypress config files

* install the main branch of kibana-buildkite-library

* split up lens group1

* move ml data_visualizer tests to their own config

* fix import paths

* fix more imports

* install specific commit of buildkite-pipeline-library

* sort configs in ftr_configs.yml

* bump kibana-buildkite-library

* remove temporary script

* fix env var for limiting config types

* Update docs/developer/contributing/development-functional-tests.asciidoc

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

* produce a JUnit report for saved objects field count

* apply standard concurrency limits from flaky test runner

* support customizing FTR concurrency via the env

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2022-05-04 17:05:58 -05:00
Alejandro Fernández Haro
ac8df39f07
Move node-libs-browser to ui-shared-deps-npm (#130877)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-26 20:27:30 +02:00
spalger
3730dd0779 fix all violations 2022-04-16 01:37:30 -05:00
spalger
bd8171c13e [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
John Dorlus
fbd38a7b22
Paramaterized Discover tests (#129684)
* Migrated Discover visualize tests to use CCS.

* Fixed.

* Forgot to add the config file to the functional tests command,

* Fixed nits in PR.

* Removed unused references.

* Removed unused references.

* Removed test file that was removed in the merge.

* Added saved_queries test to run when CCS is enabled and put test that wasn't supposed to be removed back.

* Used conditional in index pattern.
2022-04-12 21:34:41 -04:00
Spencer
0bf745ed2e
[type-summarizer] build types with sourcemaps for @kbn/mapbox-gl (#127529) 2022-03-14 15:46:47 -07:00
Spencer
ad0eb60772
[kbn/generate] add basic package generator (#127095) 2022-03-08 18:04:45 -07:00
Spencer
daace920d7
[kbn/pm] add timings for more parts of bootstrap (#127157) 2022-03-08 14:11:15 -07:00
Spencer
0821c31fa5
[ftr] implement support for accessing ES through CCS (#126547)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-07 15:27:41 -07:00
Spencer
eb68e95acd
[ts] enable sourcemaps in summarized types of @kbn/crypto (#126410)
* [ts] enable sourcemaps in summarized types of @kbn/crypto

* update snapshots

* remove unnecessary exports of @kbn/type-summarizer package

* remove tsc from the build process

* use `@kbn/type-summarizer` to summarize its own types

* add tests for interface and function

* switch to export type where necessary

* ignore __tmp__ in global jest preset

* ignore __tmp__ globally

* remove `@kbn/crypto` types path
2022-03-04 08:02:02 -06:00
John Dorlus
1e16db4d18
Added CCS test for data view functionality. (#124586)
* Added CCS test for data view functionality.

* Changed how we are approaching the test. Just adding a remote to exercise the CCS functionality.

* Adjusted test to use correct port for remote cluster.

* Added and corrected config for the tests to be able to run.

* Changed test title.

* Added functional ccs suite to functional test runner script.

* Changed config.ts to config.js

* Moved es to before clause.

* Added await for an async call.

* Added await for an async call.

* Updated saved queries test to use CCS. One test is failing, all others are passing.

* Merge branch 'main' of github.com:elastic/kibana into CCS_Functional_Test_POC

* Fixed a reference.

* Removed the OSS tests since we created CCS versions of them.

* Removed tests from index file.

* Restored test files per comment with matthias.

* Did some cleanup of comments.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-24 16:33:11 -05:00
Tyler Smalley
e9d82d104b
Updates to Jest configuration (#125727) 2022-02-15 19:06:13 -07:00
Dzmitry Lemechko
f121c545cf
Collect code coverage for server side (#124277)
* [code coverage] collect coverage on server side

* fix script

* copy server coverage to functional

* [code coverage] run all e2e and api tests

* enable all configs for coverage, fix reportDir

* [code coverage] use KIBANA_DIR var

* create target/kibana-coverage/functional if not exist

* remove empty lines and unused code

* adjust include/exclude filters

* exclude more test-related paths

* Update functional nyc config

* Update server nyc config

* exclude more dirs

* exclude stub/
2022-02-07 17:17:48 +01:00
Dzmitry Lemechko
022a9efa5e
Save github PR list in csv (#123276)
* save PR list for release testing in csv

* use paginate to simplify code

* fix

* Update src/dev/github/get_prs_cli.ts

Co-authored-by: Spencer <email@spalger.com>

* review fix

* update example with OR logic

* fix optional flags check

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-20 20:28:09 +01:00
Søren Louv-Jansen
ed62bdbc07
Fix backport script (#122402) 2022-01-05 17:12:52 -07:00
Spencer
5a4a38148d
[docs] rewrite docs cli to show logs and use modern apis (#117767)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-06 20:31:22 -05:00
Spencer
4385ac4d83
[eslint] enable type-specific lint rules (#114184)
* [eslint] enable type-specific lint rules

* autofix violations

* duplicate eslint-disable to new export statement

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-03 16:56:17 -06:00
Spencer
2797fab000
[kbn/optimizer] dll @babel/runtime modules used by entry bundles (#113453)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-29 18:08:20 -05:00
Thom Heymann
99d07acfce
Interactive setup functional tests (#115274) 2021-10-26 19:03:00 +01:00
Thom Heymann
b879a9a497
Add interactive setup CLI (#114493)
* Add interactive setup CLI

* Added tsconfig

* ignore all CLI dev.js files when building

* add cli_init to the root TS project and setup necessary ref

* Fix type errors

* Added suggestions from code review

* ts fix

* fixed build dependencies

* Added suggestions from code review

* fix type definitions

* fix types

* upgraded commander to fix ts issues

* Revert "upgraded commander to fix ts issues"

This reverts commit 52b8943222.

* upgraded commander

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-20 22:17:45 +01:00
Aleh Zasypkin
025861c189
Add API integration tests for Interactive Setup. (#111879) 2021-10-14 20:14:01 +02:00
Joe Portner
64f37e7414
Remove securityOss plugin (#113946) 2021-10-07 17:57:37 +02:00
Thom Heymann
db5cf95724
Verification code CLI (#111707)
* Add verification code CLI

* Added suggestion from code review

* Fixed types

* Added extra test

* Added CLI dist scripts

* Fixed typo

* Write code to data instead of config directory
2021-09-14 21:58:25 +01:00
Mikhail Shustov
4a2acad218
Functional tests for execution context propagation in alerting and task manager plugins (#111179)
* move execution context tests to x-pack folder

* add execution context tests for alerts and tasks

* cleanup tests

* remove obsolete test folder

* use ToolingLog instead of console.log
2021-09-14 11:52:33 +02:00
Stratoula Kalafateli
182533f565
[Datatable] Removes the old implementation (#111339)
* [Datatable] Removes the angular implementation

* Fix i18n errors

* Fix types

* Remove unecessary funtional tests

* Fix documentation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 11:57:42 +03:00
Mikhail Shustov
641cef7ca6
Functional tests for execution context (#110299)
* remove unnecessary ts-ignore

* add context propagation to x-opaque-id header tests

* run tests on CI

* simplify logging. the action purpose follows from the context name

* extend tests with the assertion against execution_context from the Kibana logs

* split JSON log records only

* apply suggestions proposed by Spencer
2021-09-03 05:48:32 -04:00
Spencer
1500534a51
add script to update VSCode config with proper excludes (#110161)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 16:43:28 -07:00
Spencer
7e2bd4fd54
[ftr] rework ciGroup validation to remove JOBS.yml and avoid duplication (#109149)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-19 11:40:23 -05:00
Tre
8a571c2f7d
[QA][SO INFO SVC] Add cli (#108353)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 13:36:22 +01:00
Spencer
c0395c9ef6
[build_ts_refs] improve caches, allow building a subset of projects (#107981)
* [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>
2021-08-10 22:12:45 -07:00
Tiago Costa
b9acd3ce74
chore(NA): moving @kbn/dev-utils to babel transpiler (#107245)
* chore(NA): moving @kbn/dev-utils to babel transpiler

* chore(NA): fix types field on tsconfig files for packages missing it

* chore(NA): update package.jsons

* chore(NA): update kbn/pm dist

* chore(NA): update types field on package jsons

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-30 16:03:42 -04:00
Tiago Costa
22d5c90855
chore(NA): moving @kbn/spec-to-console into bazel (#103470)
* chore(NA): moving @kbn/spec-to-console into bazel

* chore(NA): fix licenses
2021-06-28 15:58:41 +01:00
Tim Roes
2744f70466
Remove the no longer used release-notes script (#97806)
* Remove the no longer used release-notes script

* Commit missing file
2021-04-21 20:58:39 +02:00