Commit graph

2799 commits

Author SHA1 Message Date
spalger
3186ead3bd skip flaky suite (#86602) 2021-11-17 12:30:57 -07:00
spalger
56fc7820f1 skip flaky suite (#86602) 2021-11-17 10:51:58 -07:00
Jonathan Budzenski
5543eb5b0e skip flaky suite. #29670 2021-07-01 16:10:22 -05:00
Thomas Watson
0997f4e783
[6.8] Use @commercial/hapi (#97605) 2021-06-29 16:57:46 +02:00
Thomas Watson
2a6387559c
[6.8] Upgrade from wreck v14.2.0 to @hapi/wreck v16.0.1 (#99508) 2021-05-19 20:19:30 +02:00
Thomas Watson
84fa5add86
[6.8] Upgrade some hapi related packages to their hapi-namespace counterparts (#98753) 2021-05-06 18:50:12 +02:00
Marta Bondyra
6ae11fc9cb
fix: comboBox timeout added (#73498) 2020-07-30 16:59:16 +02:00
Matthias Wilhelm
114c96c694
[6.8] [Discover] Unskip Discover histogram time range test (#71056) (#73771)
- Adaption of expected the time range when the histogram was brushed
2020-07-30 14:40:30 +02:00
Brian Seeders
ff81d1b02b
[CI] [6.8] Pipeline backports (#72293) 2020-07-23 14:22:20 -04:00
Dmitry Lemeshko
e8fa2dc9c5
optionally type char by char (#72666) 2020-07-21 19:17:49 +02:00
Brian Seeders
b6137002e5
Skip failing time series tests #31705 2020-04-23 12:12:39 -04:00
Spencer
7771f2c4d5
[6.8] [ci/es] always pull snapshots, break early when they're… (#62069)
* [ci/es] always pull snapshots, break early when they're not available

* move to setup.sh after deps are installed

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh
#	test/scripts/jenkins_xpack_build_kibana.sh
2020-03-31 14:48:54 -07:00
liza-mae
0e453cc1a7
[6.8] Add a way to disable certificate verification for FTR. (#58386) (#59187)
* Add a way to disable certificate verification for FTR. (#58386)

* Add a way to disable certificate verification for FTR.

* Remove other options

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

* Delete file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-03 11:33:41 -07:00
Brian Seeders
c2d53906c1
Backport/6.8 - lots of Pipeline updates (#51754)
* Re-add pipeline for flaky test runner job (#48781)

* Revert "Revert "Add pipeline for flaky test runner job (#46740)""

This reverts commit 7d96a13fad.

Also reconcile changes to Jenkinsfile since original revert happened

* Fix param parsing and add missed change

* Add missing variable

* Retry git clone up to 8 times before failing a build (#50734)

* Flaky test runner improvements/fixes (#49367)

* Allocate multiple flaky test runner agents as executions grow

* WIP support for deleting kibana install dir during CI

* Add setup script for testing scripts

* Add REMOVE_KIBANA_INSTALL_DIR=1 to flaky test runner

* Change flaky test runner worker processes from 8 to 12

* Add labels to shell scripts in Jenkins (#49657)

* Change pipeline timeout from 3 hours to 2 hours (#51098)

* Remove flaky pipeline step not relevant for 6.8

* Re-add failed_tests cli

* Fix PARALLEL_PIPELINE_WORKER_INDEX var
2019-12-02 15:03:59 -05:00
Spencer
9af8b55de3
[6.8] Fix disappearing screenshots in CI (#46382) (#46667)
# Conflicts:
#	test/functional/services/failure_debugging.ts
#	test/functional/services/screenshots.ts
#	test/functional/services/snapshots.ts
2019-09-26 07:32:41 -07:00
Dmitry Lemeshko
1a1a3ba736
Update chromedriver to 77 (#45614) (#46038)
* bump chromedriver to v77

* fix file import
2019-09-18 20:41:54 +02:00
Brian Seeders
00aa9f6e6d
Run pipeline scripts with runbld (#45844) (#46023)
Change how runbld is invoked, and skip junit processing by default
2019-09-18 13:16:49 -04:00
Spencer
c63826374b
[6.8] Call failure reporter directly from Jenkinsfile (#45551) (#45673)
* Call failure reporter directly from Jenkinsfile (#45551)

* Run failed_tests/cli once per node

* force failures for testing

* Revert "force failures for testing"

This reverts commit 3ddd9240fe.

# Conflicts:
#	test/scripts/jenkins_firefox_smoke.sh
#	test/scripts/jenkins_visual_regression.sh
#	test/scripts/jenkins_xpack_firefox_smoke.sh
#	test/scripts/jenkins_xpack_visual_regression.sh

* set NODE_OPTIONS for build
2019-09-16 11:34:54 -07:00
spalger
c2fbda6734 [kbn-es] make custom snapshot url a feature (#45750)
* [kbn-es] make custom snapshot url a feature

* download es snapshot first

(cherry picked from commit 510566d66b)
(cherry picked from commit f85c7402f6)
2019-09-15 08:18:38 -07:00
Spencer
2f67e77760
[6.8] Jenkins pipeline with parallel cigroups (#45285) (#45599)
* 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)

* remove reference to extract_bootstrap_cache.sh

* remove extra jobs from Jenkinsfile

* increment leadfoot server port for parallel workers

* add worker index to port number, rather than concatenating with it

* well, for some reason the PR job wasn't triggered for 351eaaf...

* huh, PR job wasn't triggered for 1b99c69 either...
2019-09-13 11:17:16 -07:00
Chandler Prall
45d93ba1de
Upgrade EUI 6.10.8 -> 6.10.9 (#44921) 2019-09-05 14:23:09 -06:00
Dmitry Lemeshko
06f6d7f025
[6.8] bump chromedriver version to 76 (#42468) (#42884)
* bump chromedriver version to 76 (#42468)

* bump chromedriver version to 76

* [test/interpreter_functional] update snapshots

* [test/interpreter_functional] skip failing tests

* Revert "[test/interpreter_functional] update snapshots"

This reverts commit 6401554882.

* [test/interpreter_functional] skip snapshot tests

* skip failing tests

* remove moveMouseTo for click

* Revert "skip failing tests"

This reverts commit 3371d93228.
2019-08-10 20:55:13 +02:00
Spencer
ec50f86b0c
[6.8] [jest] disallow invalid describe calls (#41378) (#41490)
* [jest] disallow invalid describe calls (#41378)

* [jest] disallow invalid describe calls

* correct other describe calls

* remove unnecessary glob

* cast decribe names to strings

* remove new async describe function

# Conflicts:
#	.eslintrc.js
#	src/legacy/core_plugins/data/public/filter/filter_manager/filter_manager.test.ts
#	src/legacy/ui/public/courier/fetch/request/serialize_fetch_params/serialize_fetch_params.test.js
#	src/legacy/ui/public/kfetch/kfetch.test.ts
#	test/api_integration/apis/management/saved_objects/relationships.js
#	test/functional/apps/dashboard/create_and_add_embeddables.js
#	test/functional/apps/dashboard/dashboard_filter_bar.js
#	test/functional/apps/dashboard/dashboard_filtering.js
#	test/functional/apps/dashboard/dashboard_listing.js
#	test/functional/apps/dashboard/dashboard_options.js
#	test/functional/apps/dashboard/dashboard_query_bar.js
#	test/functional/apps/dashboard/dashboard_time.js
#	test/functional/apps/dashboard/embed_mode.js
#	test/functional/apps/dashboard/empty_dashboard.js
#	test/functional/apps/dashboard/full_screen_mode.js
#	test/functional/apps/dashboard/view_edit.js
#	test/functional/apps/discover/_discover.js
#	test/functional/apps/visualize/_point_series_options.js
#	test/functional/apps/visualize/_visualize_listing.js
#	x-pack/legacy/plugins/canvas/migrations.test.js
#	x-pack/legacy/plugins/canvas/server/routes/workpad.test.js
#	x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/auto_follow_pattern_list.test.js
#	x-pack/legacy/plugins/cross_cluster_replication/__jest__/client_integration/follower_indices_list.test.js
#	x-pack/legacy/plugins/grokdebugger/server/lib/license_pre_routing_factory/__tests__/license_pre_routing_factory.js
#	x-pack/legacy/plugins/index_management/__jest__/client_integration/home.test.ts
#	x-pack/legacy/plugins/maps/public/connected_components/map/feature_properties.test.js
#	x-pack/legacy/plugins/maps/public/connected_components/map/feature_tooltip.test.js
#	x-pack/legacy/plugins/monitoring/server/lib/elasticsearch_settings/__tests__/find_reason.js
#	x-pack/legacy/plugins/remote_clusters/__jest__/client_integration/remote_clusters_list.test.js
#	x-pack/legacy/plugins/reporting/export_types/csv/server/__tests__/execute_job.js
#	x-pack/legacy/plugins/reporting/server/routes/jobs.test.js
#	x-pack/legacy/plugins/reporting/server/usage/get_reporting_usage_collector.test.js
#	x-pack/legacy/plugins/security/server/lib/authorization/privileges/privileges.test.ts
#	x-pack/legacy/plugins/siem/public/components/last_event_time/index.test.tsx
#	x-pack/legacy/plugins/siem/public/components/page/add_to_kql/index.test.tsx
#	x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
#	x-pack/test/api_integration/apis/management/index_lifecycle_management/nodes.js
#	x-pack/test/api_integration/apis/security/roles.js
#	x-pack/test/functional/apps/canvas/smoke_test.js
#	x-pack/test/functional/apps/discover/feature_controls/discover_spaces.ts
#	x-pack/test/functional/apps/maps/documents_source/top_hits.js
#	x-pack/test/functional/apps/maps/es_geo_grid_source.js
#	x-pack/test/functional/apps/rollup_job/rollup_jobs.js
#	x-pack/test/functional/apps/spaces/spaces_selection.ts
#	x-pack/test/functional/apps/uptime/monitor.ts
#	x-pack/test_utils/jest/integration_tests/example_integration.test.ts

* fix eslint violations
2019-07-18 23:24:26 -07:00
Spencer
77d4fac563
[6.8] [testFailureReporting] only run on master/version jobs (#38497) (#38549) 2019-06-10 08:35:23 -07:00
spalger
73c6be0865 skip failing test 2019-06-06 22:42:36 -07:00
Chris Roberson
866ad9bdfd
[6.8] [Monitoring] Fix 500 error from /api/stats (#36986) (#37087)
* Backport #36986 to 6.8

* Undo changes that aren't supposed to be here
2019-05-24 10:59:38 -04:00
dave.snider@gmail.com
5f790a10dc
[6.8] eui 6.10.8 (#37038) 2019-05-23 16:34:39 -07:00
Shaunak Kashyap
c8ecbda57a
[6.7] Exclude usage stats when exclude_usage flag is specified (#35691) (#35702)
* Exclude usage stats when `exclude_usage` flag is specified

* Entirely excluding the usage key altogether

* Adding API integration test

* Fixing param name in comment + adding more info to comment

* Fix API test copy-pasta

* Fixing test assertion syntax
2019-04-28 04:02:34 -07:00
Dmitry Lemeshko
a683b34b17
[6.7] bump chromedriver to 2.46.0 (#27302) (#35017)
* bump chromedriver to 2.46.0 (#27302)

* [services/leadfoot_element_wrapper] update Session.execute call

* [services/leadfoot_element_wrapper] fix clearValueWithKeyboard

* fix scripted fields tests

* fix heatmap functional test
2019-04-15 18:10:04 +02:00
Tim Roes
5e86ec3003
[6.7] Don't save the current timezone in visualizations (#34795) (#34927)
* Don't save the current timezone in visualizations (#34795)

* Don't save the current timezone in visualizations

* Add additional test

* Add test and switch migration number

* Don't clone object according to review feedback

* Better documentation

* Update src/legacy/core_plugins/kibana/migrations.js

Co-Authored-By: timroes <mail@timroes.de>

* Fix migrationVersion in integration tests

* Fix tests

* Fix migrationVersion in tests

* Fix more tests
2019-04-15 11:16:22 +02:00
Greg Thompson
a7819a5e9a [6.7] Upgrades EUI to 6.10.6 (backported browser-related fix) (#33883) (#33972)
* Upgrades EUI to 6.10.6 (backported browser-related fix) (#33883)

* eui to 6.10.6

* update snapshots related to onClick

* yarn.lock
2019-04-04 12:31:19 -07:00
Spencer
3280ab8ddc
[6.7] Refactor ES-related environment variables (#33036) (#33171)
Backports the following commits to 6.7:
 - Refactor ES-related environment variables  (#33036)
2019-03-13 13:20:41 -07:00
Nathan Reese
5ce2873cc6
fix flaky input controls functional test (#31970) (#32012) 2019-02-26 07:05:24 -07:00
Luke Elmers
14e4da8de3
[6.7] Share global filters & queries with coordinate maps vis. (#30595) (#31273) 2019-02-15 11:32:18 -07:00
Spencer
deae7357cf
[6.7] [ftr/defaultTimezone] make UTC the default timezone (#30460) (#31075)
Backports the following commits to 6.7:
 - [ftr/defaultTimezone] make UTC the default timezone  (#30460)
2019-02-14 13:50:33 -08:00
Peter Pisljar
c266134190
fixes vislib legend filters (#29592) 2019-02-13 22:38:14 -08:00
Spencer
f13b696018
[6.x] Remove dependency on doc versions (#29906) (#30036)
Backports the following commits to 6.x:
 - Remove dependency on doc versions  (#29906)
2019-02-13 21:07:26 -08:00
Chris Davies
91fa01a173
[6.7] Allow for compatibility with ES 7.x (#30636)
Make Kibana 6.7 compatible with 7.0, at least enough to unblock manual testing.
2019-02-12 14:29:16 -05:00
Spencer
4ce465c8a7
[ftr/uiSettingDefaults] disable telemetry by default (#30473) (#30672) 2019-02-11 11:11:13 -08:00
Court Ewing
8461561683
Introduce content security policy (CSP) (#29545) (#30686)
* csp: nonce and unsafe-eval for scripts

To kick things off, a rudimentary CSP implementation only allows
dynamically loading new JavaScript if it includes an associated nonce
that is generated on every load of the app.

A more sophisticated content security policy is necessary, particularly
one that bans eval for scripts, but one step at a time.

* img-src is not necessary if the goal is not to restrict

* configurable CSP owned by security team

* smoke test

* remove x-content-security-policy

* document csp.rules

* fix tsconfig for test

* switch integration test back to regular js

* stop looking for tsconfig in test

* grrr, linting errors not caught by precommit

* docs: people -> you for consistency sake

Co-Authored-By: epixa <court@epixa.com>
2019-02-11 13:48:59 -05:00
Spencer
908ce15a52
[ftr/services/kbnServer] set uiSetting defaults more often (#30459) (#30579)
* [ftr/services/kbnServer] set uiSetting defaults more often

* [ftr/services/uiSettings] only init defaults when they're defined
2019-02-09 13:22:33 -08:00
Nathan Reese
4795c82d3e
[Maps] add saved objects for all sample data sets (#28797) (#30033)
* [Maps] add saved objects for all sample data sets

* add functional tests that compare sample data maps to baseline images

* add check for layer loading in functional tests

* try something out in CI

* try map without EMS regions

* add weblogs test but hide region layer

* skip tests with EMS vector layers

* gis-map to map and ES_GEOHASH_GRID to ES_GEO_GRID

* add resolution property to ES_GEO_GRID source descriptor

* move alphaValue from style descriptor to layer descriptor and rename to alpha

* terms join label change 'group by' to 'of'

* ensure sample data sets work with no internet access

* get functional tests working with updated full screen snapshots

* delete gis folder left overs

* give time for visibility to toggle to fire

* make web logs screen comparision more forgiving

* wait for layers to load on full screen
2019-02-05 08:45:39 -07:00
Dmitry Lemeshko
8006e43aa9
[visualize/_point_series_options] update test with proper wait: fixes 29502 (#29950) (#30051) 2019-02-05 15:28:41 +01:00
Spencer
7bd313786e
[pageObjects/visualize] use testSubjects.setValue() to avoid partial input (#29903) (#29904)
Fixes https://github.com/elastic/kibana/issues/29373
Fixes https://github.com/elastic/kibana/issues/29833

This flaky test is caused by the filter input box not being filled in completely. I was able to reproduce this once locally, but only after running the tests a couple times. To fix this I tried switching to the `testSubjects.setValue()` function, which focuses the input and clears its value before attempting to type into the field. This seems to have a higher success rate as I was able to run the test 40 times after making the change without a failure.
2019-02-02 16:22:02 -08:00
Dmitry Lemeshko
d4e5f3d766
[page_objects/visual_builder_page] fixes #29670 with proper wait for visualization loaded (#29741) (#29815) 2019-02-01 11:56:32 +01:00
Matthew Kime
ad92f4b451
[6.x] Management: EUI Navigation sidebar (#25905) (#29490)
* Management: EUI Navigation sidebar (#25905)

* partial work - sidebar works, need to address rendering issues

* rendering fixes

* refactor sidenav into its own file

* refactor sidenav into its own file

* remove unneeded changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove more unneeded EuiPage

* remove more unneeded EuiPage

* snap snap

* remove unused dependencies

* functional tests

* sidebar tweaks, beats-cm

* lint

* properly sharing UI code

* fix eui export

* type fixes

* add test

* add test

* testy test

* partial progress

* attmpt to fix functional test

* from merge

* snap snap

* clean up management for side nav changes

* functional test fix

* snap, blank landing

* snap snap

* change management item order

* test fix

* disable tslint line

* ts fix

* functional test fix

* functional test fixes

* fix functional test

* minor cleanup

* simplify management registry callback

* remove comment

* react island with kibana version

* merge

* fix scss reference

* fix types

* remove mistaken commit

* remove k7 switch

* snapshot update

* fix sidebar nav headers

* landing page copy

* remove dummy text

* merge

* i18n and revert unneeded change

* Update edit_role_page.tsx

* i18n

* i18n

* snap snap

* better text

* snap snap

* mergi

* pop open nav on mobile

* add management section tests

* NOTICE

* fix subhead text, add padding to bottom of management nav

* Update sidebar_nav.tsx

* merge merge

* fix sass lint

* .

* snap snap

* snap snap
2019-01-31 14:31:18 -06:00
Nathan Reese
b04c882a92
merge with master (#29680) 2019-01-30 20:37:18 -07:00
Spencer
bd3dcf8b7e
[6.x] [pageObjects/visalize/waitForRenderingCount] wait for rendering count to be >= (#29366) (#29388)
Backports the following commits to 6.x:
 - [pageObjects/visalize/waitForRenderingCount] wait for rendering count to be >=  (#29366)
2019-01-25 14:40:09 -08:00
Spencer
48f01ba020
[es] when specifying path with vars always use encodeURIComponent (#29210) (#29236)
Fixes #29194

In node 10, urls are validated to not include any multi-byte characters, which wouldn't be possible if we were always encoding variables injected into URLs but we missed a couple places.
2019-01-23 19:21:39 -08:00
Dmitry Lemeshko
2d7fcfe348
Add data rendering count for visualisation (#28936) (#29196)
* add RENDERING_COUNT_ATTRIBUTE

* update tests with new wait for visualization

* update 'tile map visualize app' tests with await and waitForVisualization

* update tests with waitForVisualization

* remove waitVisualisationLoaded

* fix naming suggestion

* remove redundant waiting in functional tests
2019-01-23 19:08:10 +01:00