Commit graph

101 commits

Author SHA1 Message Date
Brian Seeders
b030cc967d
[FTR] Add test suite metrics tracking/output (#62515) (#64000)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-23 15:14:31 -04:00
Brian Seeders
6582ff435d
[FTR] Add support for --include and --exclude files via tags (#60123) (#60384) 2020-03-17 14:23:43 -04:00
Spencer
d2fcbb42ca
[7.6] [failed-test-report] if one test fails twice don't creat… (#59161)
* [failed-test-report] if one test fails twice don't create two issues

* fix type check error

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-03 11:42:52 -07:00
Brian Seeders
0ee6a05aee
[CI] Pipeline refactoring (#56447) (#59078) 2020-03-02 17:04:46 -05:00
Spencer
14d8f8a308
[7.x] [kbn/pm] add caching to bootstrap (#53622) (#53953)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

# Conflicts:
#	packages/kbn-pm/dist/index.js
2020-01-03 12:33:11 -07:00
Spencer
fc3161b735
[7.x] associate metadata with runnables (#53245) (#53323) 2019-12-17 17:06:05 -07:00
Spencer
83b2e27db1
[7.x] [failedTests] fix reportMessageIter and add unit test (#… (#52997)
* [failedTests] fix reportMessageIter and add unit test

* update related snapshots
2019-12-13 16:04:14 -07:00
Spencer
cc23912403
[7.x] [kbnClient] Retry uiSettings.replace() calls up to 5 tim… (#52779)
* [kbn/dev-utils] target ES2019 to transpile ??

* Retry uiSettings.replace() calls up to 5 times

* share logic for selecting junit report name to ensure they are unique

* convert to junit report path helper

# Conflicts:
#	src/dev/jest/junit_reporter.js
2019-12-12 06:35:55 -07:00
Spencer
7118e48c06
[7.x] Add failure screenshot links to JUnit failures (#52449) (#52775)
# Conflicts:
#	src/dev/mocha/junit_report_generation.js
2019-12-11 22:06:29 -07:00
Spencer
c72fae4ddf
[7.x] [ftr/lifecycle] refactor to be typesafe (#52453) (#52598)
* [ftr/lifecycle] refactor to be typesafe

* update test fixture

# Conflicts:
#	packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts
#	test/functional/services/remote/poll_for_log_entry.ts
#	test/functional/services/remote/remote.ts
#	test/functional/services/remote/webdriver.ts
2019-12-09 20:29:39 -07:00
Spencer
e36afbc8d9
[7.x] [failed_tests_cli] update reports with links to github i… (#52303)
* [failed_tests_cli] update reports with links to github issues (#52048)

* [failed_tests_cli] update reports with links to github issues

* reorder test report hooks so that published Junit includes modified reports

* force failures and enable dry-run mode for debugging

* auto-switch to --dry-run when running in non-tracked branches/prs

* add --skip-junit-update flag to skip mutating the reports

* remove comma after URL to support auto-linking in Jenkins

* Revert "force failures and enable dry-run mode for debugging"

This reverts commit ac0c287a3f.

* fix method call

* extend TestResult to include relevence flag rather than wrapping

* fix createFailureIssue() tests

* make report messages more consistent, append when not dry-run

* rename module

* update snapshots to not contain valid xml

* don't send authorization header if no token defined

* merge with master modified fixtures

* [ci/reportFailures] --dry-run is overloaded, split it up (#52314)

* [ci/reportFailures] --dry-run is overloaded, split it up

* force some failures to verify the fix

* Revert "force some failures to verify the fix"

This reverts commit cf2a58e139.

* update readme to mention new flags

* remove unnecessary commas

(cherry picked from commit 8e8571bae0)
2019-12-05 14:43:33 -07:00
Spencer
704fd01c96
filter out downstream failures with updated error message (#51623) (#52117) 2019-12-03 16:17:47 -07:00
Spencer
257ee130bf
[7.x] run mocha tests from x-pack with root mocha script (#513… (#51624)
* run mocha tests from x-pack with root mocha script

* Only run Karma tests in xpack intake job

* disable failing suites

* fix typo

* skip correct suite (there are multiple root suites)

* support disabling junit reporting with $DISABLE_JUNIT_REPORTER

* don't generate junit in ispec_plugin tests

# Conflicts:
#	x-pack/tasks/test.ts
2019-11-25 13:33:20 -07:00
Dmitry Lemeshko
79da1e2075
[page_objects/common_page] convert to ts (#50771) (#50968)
* [page_objects/common_page] convert to ts

* fix lint errors

* descrease navigation timeouts

* use template literal for log messages
2019-11-18 23:00:27 +01:00
Spencer
f1bba139fc
Update dependency rxjs to ^6.5.3 (#49837) (#49985)
* Update dependency rxjs to ^6.5.3

* move argument type def up for better coverage

* adapt to possibly undefined helpExtension

* complete definition of deprecation$ type

* define types that bindNodeCallback can no longer infer

* define more types that bindNodeCallback can't infer

* be more explicit and accurate about the types for a subject/observable pair

* fix interface error, TS now identifies it

* ignore a return type flaw because types are not being managed properly

* avoid overspecifying types

* allow types to be inferred where possible

* remove unnecessary withLatestFrom()

* reduce number of rxjs versions installed

* update kbn/pm dist
2019-11-02 09:41:18 -07:00
Brian Seeders
74f4281802
[7.x] Ensure es/kibana cleanup always happens when using scrip… (#49112) 2019-10-24 11:24:23 -04:00
Spencer
4bd85e3194
[7.x] Remove rimraf (#48985) (#49187)
* Update dependency del to v5

* unify del/rimraf usage with del v5

* update yarn.lock

* update kbn-pm distributable

* remove poorly transformed code

* force some deletes from tmp

* mock less of the fs module

* force tmp deletion in a few more suites

* please make this the last force

# Conflicts:
#	packages/kbn-plugin-helpers/package.json
2019-10-24 08:10:17 -07:00
Spencer
7919ed60da
[7.x] standardize notice-comment usage (#48677) (#48814)
* standardize notice-comment usage

* regenerate notice.txt
2019-10-21 15:55:00 -07:00
Spencer
6b1d8733f3
[7.x] [failedTestsReporter] load github issues on demand (#479… (#48002) 2019-10-11 11:08:27 -07:00
Spencer
566cd69a98
[7.x] fix indentation of failure issue bodies (#47864) (#47887) 2019-10-10 14:36:32 -07:00
Spencer
b5220c648d
[7.x] [ci/failed_tests_reporter] when Github 500s, retry up to… (#47853)
* [ci/failed_tests_reporter] when Github 500s, retry up to 5 times

* remove unused import

* properly handle non-string headers
2019-10-10 12:53:03 -07:00
Spencer
3fadf26699
[7.x] refactor failed_tests_reporter to use TS, no octokit (#4… (#47631)
* refactor failed_tests_reporter to use TS, no octokit

* update renovate config

* ensure that all kbn-test files are in ts project

* fix some type errors

* add some more tests

* [kbn-test/githubapi] cleanup and document

* collect log messages as strings instead of message objects

* ensure issue is open when updating body

* improve readability of getKibanaIssues

* expose axios helpers from dev-utils

* fix request params for fetching github issues and validate locally

* include a README for failed_tests_reporter

* improve axios error helpers

# Conflicts:
#	packages/kbn-test/src/index.ts
#	renovate.json5
2019-10-08 15:18:34 -07:00
Tre
4256ec2937
[7.x] [FTR] Support for new and old es clients (#47377) (#47601)
* Add dep for new es client,
refactor all mentions of the old client
to the new.
2019-10-08 12:00:32 -06:00
Lee Drengenberg
6c07708859
[7.x] Add option for Internet Explorer IE11 to FTR (#42967) (#47465)
* merge 7.x

* remove --csp.strict=false in 7.x

Only needed on master (at least at this point)
2019-10-07 10:59:23 -05:00
Spencer
ef6727cc52
[7.x] Update gulp related packages (major) (#46665 and #47421) (#47409)
* Update gulp related packages (major) (#46665)

* Update gulp related packages

* ts-ify and gulp4-ify x-pack tasks, remove unused canvas tasks

* remove unnecessary gulp.TaskFunction usage

* fix old references

* update renovate config

* move constants into helpers directory

* typo

* compact tasks a bit, remove unnecessary paths

* fix build directories

* deprecate testonly task

* rather than justifying an unjustifiable ts-ignore, ts-ify the imported module

* update renovate config

* update browser download tests to mock axios

* add root index.d.ts to tsconfig

* export BrowserType

* remove unnecessary `@ts-ignore`

* use consistent casing

* correct import for createAutoJUnitReporter

* Update gulp related packages (#47421)

(cherry picked from commit 35751f9828)
2019-10-06 22:49:28 -07:00
Spencer
9cdc7b1b4c
[7.x] Update dependency tar-fs to ^1.16.3 (#47341) (#47395) 2019-10-05 15:48:33 -07:00
Spencer
610661980b
Update mocha related packages (major) (#43915) (#47010)
* Update mocha related packages

* update snapshots

* upgrade gulp-mocha so that it uses new mocha too

* fix async/cb overspecification

# Conflicts:
#	yarn.lock
2019-10-01 09:01:00 -07:00
Spencer
7c0acf05a4
[7.x] [ftr/savedObjects] add simple saved object api client to… (#45940)
* [ftr/savedObjects] add simple saved object api client to ftr services

* fix typo

* use consistent spacing

* fix types and TS-ify the rest of kibanaServer service

* expose server urls with better API

* tweak status api response types

* fix http body param name

* second arg to axios post is the post data

* use standardized error handling behavior

* Revert "use standardized error handling behavior"

This reverts commit 7e9a7f8dc5.

* revert unnecessary changes
2019-09-17 14:45:56 -07:00
Brian Seeders
17670959dc 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

(cherry picked from commit 27d23c4184)

# Conflicts:
#	src/dev/ci_setup/setup.sh
#	src/dev/failed_tests/cli.js
2019-09-11 12:23:33 -07:00
Spencer
124f91c48b
[ftr] support --kibana-install-dir flag (#44552) (#44935)
* [ftr] support --kibana-install-dir flag

* improve spacing/style of success message

* Remove unused var
2019-09-06 10:50:00 -07:00
Spencer
24208ace6c
Update dependency del to ^4.1.1 (#44806) (#44825)
# Conflicts:
#	packages/kbn-plugin-helpers/package.json
2019-09-05 11:14:29 -07:00
Spencer
fe25ee98c3
[7.x] Update dependency chalk to ^2.4.2 (#44032) (#44210)
* Update dependency chalk to ^2.4.2

* update kbn-pm dist

(cherry picked from commit dfddf3dbdd)
2019-08-29 08:48:12 -07:00
Dmitry Lemeshko
89d97368c7
fix logging 'undefined' on tests completion (#43983) (#44015) 2019-08-27 17:28:02 +02:00
Spencer
31e7eec1ce
[7.x] Update babel related packages (#43595) (#43837)
* 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

* Update package.json

* update yarn.lock
2019-08-23 08:24:52 -07:00
Spencer
4023cf1d6d
[mocha] fix test selectors to get everything in packages (#43797) (#43838)
* [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

# Conflicts:
#	src/dev/mocha/run_mocha_cli.js
2019-08-23 07:02:28 -07:00
Spencer
c1d6ec0dbb
Move src/dev/run to @kbn/dev-utils (#43387) (#43454)
* move src/dev/run into `@kbn/dev-utils`

* forgot to save a replacement

# Conflicts:
#	src/dev/renovate/run_build_renovate_config_cli.ts
2019-08-16 08:42:41 -07:00
Spencer
e7bcb3568f
[7.x] [watcher] add missing await (#41351) (#43384)
* [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 12:58:46 -07:00
Mike Côté
c91bc3ad71
Add Elasticsearch SSL support for integration tests (#41765) (#42992)
* 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 19:49:10 -04:00
Mike Côté
58c91ac67d
Add SSL support when starting Elasticsearch from yarn es (#42527) (#42839)
* 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 11:48:54 -04:00
Tre
a1df3e8b07
[FTR] Refactor FTR to live under KBN-TEST (#42547) (#42788)
Refactor the FTR to live under KBN-TEST . 

Next, refactor any and all files that the
FTR needs to live under KBN-TEST,
as needed.
2019-08-06 17:35:05 -06:00
Aleh Zasypkin
7ded0b6f2e
[7.x][@kbn/es] Add a predefined list of Elasticsearch secure settings to be added into keystore. Re-enable OIDC tests. (#42424) 2019-08-01 10:40:54 +02:00
Greg Thompson
4a4d29eee2
[7.x] Upgrade EUI to v10.0.1 (#35112) (#40533)
* Upgrade EUI to v10.0.1 (#35112)

* eui@10.0.0; tsconfig update

* limit key lookups to strings

* Search Profiler hightlight details flyout classes

* bump

* snapshot updates

* x-pack snapshot updates

* keyofstringsonly update
2019-07-08 16:41:44 -05:00
spalger
f663e18cb8 [7.x] [prettier] upgrade to 1.18.2 (#40229)
* [prettier] upgrade to 1.18.2

* autofix prettier violations

(cherry picked from commit a95ae8c037)
2019-07-03 13:00:44 -07:00
Mikhail Shustov
2466399929
New Platform and Legacy platform servers integration (#39047) (#39263)
* New and Legacy platforms share http server instance.

Required to use a common security interceptor for incoming http requests

* generate docs

* remove excessive contract method

* add test for New platform compatibility

* address comments part #1

* log server running only for http server

* fix test. mutate hapi request headers for BWC with legacy

* return 503 on start

* address @eli comments

* address @joshdover comments
2019-06-19 17:41:50 +02:00
liza-mae
9ce96bc567
[WIP] FTR Percy changes (#36897) (#38996)
* [ftr/percy] integrate percy with functional test runner

* execute ftr within `percy exec`

* share PERCY_BIN and GRUNT_BIN vars in setup

* [license] whitelist `(Unlicense OR Apache-2.0)`

* [percy] include pr/parallel info in env

* echo the actual variable value

* destructure required modules

* [ci] calculate percy env in a script

* remove outdated eslint overrides

* oops, nonce should be the same for each build

* take snapshots in context tests

* add percy snapshots to some dashboard tests

* account for extra execution of PERCY_BIN

* remove usage of percy service

* rename service to `visualTesting`

* write a simple test

* switch left-over percy test to visualTesting

* set log level for percy agent

* trigger ci

* try using the system chrome install instead of downloading one

* fix export definition

* Don't skip chromium download

* Add Spencer's fix to point to chrome installation

* Attempting to split tests into own ci job and test files

* Renumber job

* Add tag to decorations file

* Try new files with existing CI job

* Try again to create a new CI job

* Fix eslint problem with space

* eslint updates

* fix console test

* make test names unique

* Update ci group names

* Try old name again

* save

* add separate visual_regression ci job

* add visual regression ci job

* add new job to jobs.yml

* update path to take_percy_snapshot script

* use fixed percy job total

* fix common services import

* move visual_create_and_add_embeddables to visual_regression project

* finish moving create_and_add_embeddables

* add x-pack visual regression job

* migrate dashboard_snapshots tests to visual_regression

* remove references to removed test files

* restore some unnecessary changes

* reimplement the login page tests

* yarn.lock update

* fix test

* remove old CI_GROUP 100 block

* update failed_tests trap

* reduce yarn.lock changes

* disable debug logging

* disable visual-regression tests for now, we can enable them in specific prs
2019-06-14 12:16:48 -06:00
Spencer
45920c0d78
[7.x] Update dependency tmp to v0.1.0 (#38590) (#38621) 2019-06-11 09:34:28 -07:00
Spencer
7aea62aa61
[7.x] FTR: add support for Firefox browser (#32509) (#37750)
* skip and adjust functional tests for Firefox

* downgrade geckodriver to 0.22.0

* [ftr] add firefox specific config file

* remove hard coded firefox adjustments

* remove firefox specific screenshot directory

* run functional tests in firefox in x-pack

* pass the logger to readConfigFile()

* rename local var

* skip xpack firefox config

* run xpack firefox functional tests in separate command

* update report name for XPack firefox results

* adjust viz shared item test

* skip shared item test

* [test/feature_controls] increase timeout to 20 sec & use forceLogout

* FF timeout on TSVB, refresh page on failure for url navigation

* [feature_controls/visualize_security] increase timeout to 20 sec

* skip dev_tools_spaces tests on FF

* run all groups 3 times

* skip more func tests

* skip more tests

* skip all feature controls tests for Firefox

* revert back changes in feature controls tests

* rename xpack report for chrome

* skip tile map for FF, wait for render before saving

* Revert "run all groups 3 times"

This reverts commit 12b4f69627.

* revert refresh on login

* apply feedback
2019-05-31 17:18:31 -07:00
Spencer
3fe5c954bf
[7.x] dependency updated (#37406) (#37465)
* Pin dependencies (#37406)

* Pin dependencies

* include core-js in babel packages

* specify core-js version when using `useBuiltIns`

* dedupe @babel/types to avoid "range of null" problem

* chore(deps): update dependency del to v4 (#37466)

* chore(deps): update dependency del to v4

* remove @types/del since they ship with the package now

(cherry picked from commit c60e3491a2)

* Update gulp related packages (#37456)

(cherry picked from commit 62893ec0bc)

* Update babel related packages (#37464)

(cherry picked from commit 830bd1f0ca)
2019-05-30 14:57:56 -07:00
Aleh Zasypkin
c62833b204
[7.x] Introduce Kerberos authentication provider. (#37313) 2019-05-29 11:59:04 +03:00
Spencer
3bb33c0cb0
[7.x] [cli/dev] allow running --dev without kibana.dev.yml (#36400) (#36707)
* [cli/dev] allow running --dev without kibana.dev.yml

* disable kibana.dev.yml for functional test servers

* [cli/dev] automatically strip xpack config when running --oss

* revert bad merge artifact
2019-05-20 12:08:36 -07:00