Commit graph

701 commits

Author SHA1 Message Date
Dmitry Lemeshko a33909a480
Change data-test-subj selector logic to support value with spaces (#43682)
* update test-subj-selector

* update locators

* adjust whitespaces removal

* fix another locator

* fix ML test locators
2019-09-12 09:48:09 +02:00
Tre 93e6041ac8
[Plugin Generator] Enhance Integration Test (#45401)
* Add the missing blank line.
Add a test verify it.

* Less code is the best code.  Thanks Spencer :)
2019-09-11 15:10:47 -06:00
Brian Seeders 27d23c4184 Jenkins pipeline with parallel cigroups (#45285)
* Pipeline

* WIP some work for parallelization with ciGroups

* Fix xpack kibana install dir, and add some debugging

* Attempt to quick fix a few tests

* Revert "Revert "Revert "[ci] compress jobs for CI stability" (#44584)""

This reverts commit 078ac2897f.

* Recombine test groups, and try runbld again

* Mostly cleanup, and fix failed_tests reporting to hopefully work for both pipeline and non-pipeline

* Fix typo in shell script

* Remove some debug code

* Add support for changing es transport.port during testing via TEST_ES_TRANSPORT_PORT

* Fix test that uses hard-coded es transport port and add it back in to parallel groups

* Disable checks reporter again for now

* Set env var for TEST_ES_TRANSPORT_PORT in pipeline

* Update Jenkinsfile for shorter testrunner labels

* Fix another hard-coded transport port

* Fix a new test with hard-coded URLs

* Jenkinsfile cleanup and fix one of the groups

* Fix double slash

* Testing vault credentials on jenkins server

* Add a non-existent credential

* Revert "Add a non-existent credential"

This reverts commit 0dc234c465a5483b1a994cb510a182fef766e9cc.

* Try github-checks-reporter again

* github-checks-reporter should only run for elastic/kibana, forks won't work

* Clean up some debug code

* Changing names around to try to make BlueOcean UI a little better

* Add more stages

* Make some changes to stage structure to mirror a nested example from CloudBees

* Handle TODOs, and some cleanup in Jenkinsfile

* Pass GIT_BRANCH when started without GHPRB, fix branch check

* Fix mailer problem and add code that ensures all tests are in cigroups back in

* Test adding worker/job name to junit report paths

* Remove some duplication from ci_setup scripts

* Fix unit test that uses junit path

* Don't reinstall node every time setup_env is run

* Fix yarn install logic

* Fix another unit test that uses junit output dir

* Download latest ES snapshot after kibana builds

* Make sure junit reports are always processed

* Add two failing tests for testing purposes

* Add support to Jenkinsfile for kibana build e-mails

* Remove some debug code for email sending

* Change JOB env handling in junit paths and move it to a sub-directory

* Revert "Add two failing tests for testing purposes"

This reverts commit 5715203e26922a93483feb0ebb8bb3fdcc3daf8c.

* Fix junit report path in test

* Don't send kibana emails on build abort

* Address PR feedback, formatting and use built-in url formatting library

* Fix path formatting for functional test

* Add email sending back in to Jenkinsfile

* Fix another unit test with path problem
2019-09-11 11:58:28 -07:00
renovate[bot] 25b0e2caeb Update dependency lru-cache to ^4.1.5 (#45157) 2019-09-09 13:33:31 -07:00
renovate[bot] 1e0389afaa Update dependency highlight.js to v9.15.10 (#45156) 2019-09-09 13:30:08 -07:00
renovate[bot] f051184d5e Update dependency debug to ^2.6.9 (#45155) 2019-09-09 13:29:02 -07:00
Tre ef4a73a491
[Plugin Generator] Add integration test (#43219)
Addresses https://github.com/elastic/kibana/issues/17061

### Features Covered 
 - generating a plugin

#### Then from within the generated plugin's directory
 - running `yarn build`
 - running `yarn test:browser`
 - running `yarn test:server`
 - running `yarn start`
 - running `yarn preinstall`
 - running `yarn lint`
 - running `yarn kbn --help`
 - running `yarn es --help`
2019-09-06 13:10:47 -06:00
Spencer 16eb033a24
[ftr] support --kibana-install-dir flag (#44552)
* [ftr] support --kibana-install-dir flag

* improve spacing/style of success message

* Remove unused var
2019-09-05 13:06:10 -07:00
renovate[bot] 0001c74370 Update dependency del to ^4.1.1 (#44806) 2019-09-04 13:15:59 -07:00
Peter Pisljar 2f5306ea42
expression service (#42337) 2019-09-04 14:09:38 +02:00
renovate[bot] 739cb22e26 Update sinon related packages (#43952)
* Update sinon related packages

* fix stub types to be compatible
2019-09-03 16:09:24 -07:00
renovate[bot] 06852ed576 Update dependency cmd-shim to ^2.1.0 (#44034)
* Update dependency cmd-shim to ^2.1.0

* rebuild kbn/pm
2019-08-30 12:12:41 -07:00
Spencer 4f4bb02299
manually setup module transforms so to support async imports in webpack (#44413) 2019-08-29 14:04:12 -07:00
Tyler Smalley dd7ea467a0
[@kbn/analytics] Updates dependencies and browser entry (#44316)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-29 10:43:36 -07:00
Jonathan Budzenski bad947d7d1
move optimize into data folder (#25944)
* move optimize into data folder

* path

* replace optimize with data in notice glob

* update docs

* more updates

* update snapshots

* re-add folder references

* prettier

* save changes

* rm optimize from .eslintignore

* rm extra file

* fix merge
2019-08-28 10:09:58 -05:00
renovate[bot] dfddf3dbdd Update dependency chalk to ^2.4.2 (#44032)
* Update dependency chalk to ^2.4.2

* update kbn-pm dist
2019-08-27 21:58:53 -07:00
Spencer 1595abebe6
[babel-preset/webpack] use corejs 3 (#44154) 2019-08-27 18:12:49 -07:00
renovate[bot] 075c68baf3 Update dependency babel-eslint to ^10.0.3 (#44029) 2019-08-27 13:57:15 -07:00
Tiago Costa a5c63537a2
chore(NA): fix babel plugin discover for thread-loader-warmup (#44106)
* chore(NA): fix babel plugin discover for thread-loader-warmup

* chore(NA): apply changes accordingly the PR review
2019-08-27 18:17:47 +01:00
Chris Davies f188b292c8
Modify I18nProvider so that it does not generate new React components (#43556)
This fixes some edge-cases that caused infinite loops: React thinks the tree has changed because of a new root component, effects fire off which change the state and cause a re-render, React thinks the tree has changed because of a new root component...
2019-08-27 10:32:20 -04:00
renovate[bot] 63ad141b3c Update node-fetch related packages (#43948) 2019-08-26 12:37:43 -07:00
renovate[bot] aeb6e2c1e8 Update dependency @types/wrap-ansi to ^2.0.15 (#43955) 2019-08-26 12:35:31 -07:00
Dmitry Lemeshko d859b79a98
fix logging 'undefined' on tests completion (#43983) 2019-08-26 19:44:43 +02:00
renovate[bot] 76d8dbde72 Update webpack related packages (#43903)
* Update webpack related packages

* update kbn-pm dist

* update kbn/pm dist
2019-08-26 08:17:52 -07:00
renovate[bot] 0fb213714c Update read-pkg related packages (major) (#43118)
* Update read-pkg related packages

* update kbn/pm dist

* fix call style

* only pass directories to readPackageJson
2019-08-25 14:01:17 -07:00
renovate[bot] bf7e066cc9 Update dependency @elastic/elasticsearch to ^7.3.0 (#43911) 2019-08-25 13:55:03 -07:00
renovate[bot] b1d48d949e Update eslint related packages (#43902) 2019-08-23 14:38:02 -07:00
renovate[bot] 5e7b8f943e Update dependency write-pkg to v4 (#43226)
* Update dependency write-pkg to v4

* rebuild kbn-pm and point worker_threads to built-in module
2019-08-23 13:50:07 -07:00
renovate[bot] b318ebe6bb Update dependency @babel/cli to v7.5.5 (#43836) 2019-08-23 08:26:25 -07:00
Spencer 90de95822b
[mocha] fix test selectors to get everything in packages (#43797)
* [mocha] fix test selectors to get everything in packages

* fix paths in tests

* ignore test files that make it into target directories

* [@kbn/test] don't build test files

* move tests from datemath and test-subj pkgs into __tests__ dirs

* [kbn/test-subj] remove test script

* update yarn.lock
2019-08-22 18:49:01 -07:00
renovate[bot] 572274b779 Update babel related packages (#43595)
* upgrade all babel related modules, and bump lodash minors

* update kbn-pm dist

* update fetch-mock, necessary to use core-js 3

* use regenerator transform in jest tests, as required by EUI

* disable useBuiltIns rather than using regenerator plugin

* remove extra regenerator-runtime import
2019-08-22 18:40:57 -07:00
Tyler Smalley daa86da4cf
Transpile @kbn/analytics with Babel (#43407)
Since this is being imported by the UI as a package, we need to transpile for the
browsers we need to support.

Fixes #42782

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-22 12:58:51 -07:00
Josh Dover c2ef2c8f51
Add support for dynamic imports (#43716) 2019-08-22 09:48:39 -05:00
Sébastien Loix 1b164c1902
[Console] Update autocomplete api definition (#43651) 2019-08-22 07:35:35 +02:00
Jean-Louis Leysens 357e929bd2
Backport spec_to_console script to work with new JSON file format. (#43427)
* Backport spec_to_console script to work with new JSON file format.

* Updated test fixture to use new JSON file pattern

* Fix if statement
2019-08-19 12:26:33 -07:00
Spencer e8409c0160
Move src/dev/run to @kbn/dev-utils (#43387)
* move src/dev/run into `@kbn/dev-utils`

* forgot to save a replacement
2019-08-16 07:13:54 -07:00
Tre 5d8ad40c5c
[FTR] Refactor mocha under @kbn/test (#42862)
* Run prettier on the files that will be refactored under @kbn/test, in a follow-up pr.

* Fixup all paths to mocha,
under kbn-test, with needed
exports/imports.

* Fixed borked path (bad refactor).

* Fixup one more borked path.

* Fixup tsconfig for xml.ts

* Drop setup_node_env as it's already
in KIBANA/scripts/mocha.js.
Also, fixup cwd for globby as we are
exec-ing from a different directory.
2019-08-15 15:48:39 -06:00
Spencer 7739f5da9e
ts-ify @kbn/dev-utils (#43383) 2019-08-15 12:34:03 -07:00
Spencer b2515c780d
[watcher] add missing await (#41351)
* [watcher] add missing await

* run x-pack-firefoxSmoke ciGroup 40 times, run watcher tests 20 times per job

* Fix failing watcher test

* Revert "run x-pack-firefoxSmoke ciGroup 40 times, run watcher tests 20 times per job"

This reverts commit c5d891d44d.

* Clean up watches via api

* fix linting errors

* don't swallow errors, wait for completion

* strip trailing numbers in suite tags

* run x-pack-firefoxSmoke group 40 times

* Revert "run x-pack-firefoxSmoke group 40 times"

This reverts commit cc4eb6ce54.

* run x-pack-firefoxSmoke group 40 times

# Conflicts:
#	.ci/jobs.yml

* run tests 80 times

* Revert "run tests 80 times"

This reverts commit 4320c9488a.

* Revert "run x-pack-firefoxSmoke group 40 times"

This reverts commit cf0d4056d7.
2019-08-15 10:49:36 -07:00
Jonathan Budzenski e6e92ac2bf
[test] remove x-pack mocha configuration (#42979)
* update scripts

* run mocha from root

* rm mocha grunt task

* rm x-pack mocha setup

* rm x-pack/mocha*

* Revert "rm x-pack/mocha*"

This reverts commit fb56005e77.
2019-08-15 12:21:42 -05:00
Tiago Costa 1d6d1027ca
fix(NA): get dll entries across platforms (#43224)
* fix(NA): get dll entries across platforms

* chore(NA): some more improvements
2019-08-14 03:44:53 +01:00
Patrick Mueller 19fa802697
fix schema.nullable() to support non-strings (#42891)
The previous implementation of `schema.nullable()` ends up having
a problem - it only works right for `schema.nullable(schema.string())`.
For other types, like `schema.number()` and `schema.boolean()`, a `null`
value passed in does not validate.

I poked around a bit, but "it's complicated".  So, went with the
suggested approach of using a `schema.maybe([V, null])` validation,
which works for number and boolean.

Added some additional tests on the `nullable` type.
2019-08-13 21:38:15 -04:00
Tiago Costa e4830625d6
chore(NA): correctly set kibanaRoot on kibana plugin helpers for new generated plugins (#42616)
* chore(NA): correctly set kibanaRoot on kibana plugin helpers for new generated plugins

* chore(NA): support both kibana-extra and plugins dir
2019-08-13 16:16:44 +01:00
renovate[bot] b178de1975 Update dependency supports-color to v7 (#43064) 2019-08-12 12:43:27 -06:00
Vadim Dalecky 48df3c8893
Utility types (#41246)
* feat: 🎸 add @kbn/utility-types

* feat: 🎸 improve @kbn/utility-types

* chore: 🤖 move @kbn/utility-types to dev deps

* chore: 🤖 change @kbn/utility-types build setup

* fix: 🐛 implement review suggestions

* feat: 🎸 add ShallowPromise type

* Update packages/kbn-utility-types/README.md

Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>

* test: 💍 add tests for utility-types

* chore: 🤖 add utility-types tests to TypeScript config

* test: 💍 remove negative tests to not cause TypeScript fail

* chore: 🤖 remove ref to type defs to try fix CI tests

* Update packages/kbn-utility-types/index.ts

Co-Authored-By: Spencer <email@spalger.com>

* chore: 🤖 add TS types index to fix `grunt run:test_projects`

* chore: 🤖 use similar tsconfig.json as in other packages

* chore: 🤖 add "clean" script

* chore: 🤖 add kbn:bootstrap script
2019-08-12 15:45:32 +02:00
renovate[bot] 7b39137ce8 Update dependency commander to v3 (#43041) 2019-08-09 16:13:31 -06:00
Tyler Smalley 35d33b7fbf
[kbn-es] Support for passing regex value to ES (#42651)
We test each value to determine if it's a file, in which case we move it to the
config directory. This is required to support things like SSL certificates which
are required to be within the ES directory. path.isAbsolute evalues to true for
a regular expression. In order to resolve this, we also verify that the file
exists.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-08 18:03:03 -07:00
Mike Côté cb0cabf0cc
Add Elasticsearch SSL support for integration tests (#41765)
* Allow tests to use SSL between Kibana and Elasticsearch

* Fix cert path

* By default no tests will use the new ssl feature
2019-08-08 18:38:16 -04:00
Tre 1681f78a52
Drop explicit dependency, to fixup #42867 (#42886) 2019-08-07 16:59:06 -06:00
Mike Côté aaea5679d0
Add SSL support when starting Elasticsearch from yarn es (#42527)
* Initial work

* Add integration tests

* Use constants

* Fix broken code

* Handle scenario where esArgs is a string

* Remove || []

* Apply PR feedback

* Use const format
2019-08-07 10:34:44 -04:00