Commit graph

65 commits

Author SHA1 Message Date
Joel Griffith
48001fc3c9
[7.x] [Reporting] Move code out of Legacy (#67904) (#68201)
* [Reporting] Move code out of Legacy (#67904)

* [Reporting] Move code out of Legacy

* Elasticsearch is not a plugin dep

* add data as plugin dependo

* diff cleanup 1

* log the browser download

* Update paths in outside code for new Reporting home

* fix download test

* add numeral typing for x-pack/test

* Fix jest tests for np migration

* Shorten import paths

* remove this file, add typings to the node module

* remove local typing that has been provided by node module

* Add optional security plugin dep

* revert conflicting apm typings removal

* fix i18n

* fix snakecase whitelist

Co-authored-by: Joel Griffith <joel.griffith@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.ci/packer_cache.sh
#	src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js
#	src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/coverage-summary-manual-mix.json
#	x-pack/plugins/reporting/server/export_types/printable_pdf/server/create_job/index.ts

* Add back in legacy bwc route

* Kill code_coverage since it's not supposed to be here...

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2020-06-03 20:50:23 -07:00
Victor Martinez
c16be20e8e
[7.x] ci(jenkins): use APM e2e in the CI (#61803) #67948 2020-06-02 16:48:05 +01:00
Tiago Costa
d3901716fb
chore(NA): add support for accessibility test group on jenkins flaky test runner (#67652) (#67655) 2020-05-28 18:35:45 +01:00
Brian Seeders
5f622ebeb4
[CI] Change slack notifications icon to yellow heart for unstable (#66896) (#67518) 2020-05-27 17:39:41 -04:00
Spencer
654ca0b646
[7.x] [ci-stats] track baseline job (#66440) (#66480) 2020-05-13 16:07:57 -07:00
Brian Seeders
c44a93b91b
Increase verify es job timeout to 2.5 hours (#65313) (#65321) 2020-05-05 14:20:42 -04:00
Brian Seeders
3d1024ca6a
[CI] Slack alerts - Elasticsearch snapshot failures (#64724) (#65270) 2020-05-05 12:02:48 -04:00
Brian Seeders
284c9e3083
Add 2 flaky retries to es snapshot jobs (#64553) (#65134) 2020-05-04 16:49:50 -04:00
Brian Seeders
ee158cca43
Increase es verify job timeout to match normal ci 2020-04-24 10:35:42 -04:00
Spencer
fec6b7c37e
[7.x] [jenkins] refer to sizes in most pipeline code (#62082) (#62549)
* [jenkins] refer to sizes in most pipeline code

* switch back to `linux && immutable` for small instances

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

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-04 10:24:00 -07:00
Uladzislau Lasitsa
4c7ad1f8e1
Migrate test plugins ⇒ NP (kbn_tp_sample_panel_action) (#60749) (#62315)
* Migrated sample_action to NP. Panel action tests returned to the test flow.

* fixed names

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-02 18:24:26 +03:00
Spencer
5cfc73d196
Fix visual baseline job (#59348) (#59470)
* Establish Percy baselines

* move Jenkinsfile changed back to `.ci` directory

* rename xpack workers

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-06 08:40:17 -07:00
Spencer
35baae38b3
[7.x] [ci] add Jenkinsfile for visual baseline job (#52154) (#59255)
* [ci] add Jenkinsfile for visual baseline job

* fixup the jenkinsfile

* update jenkinsfile syntax
2020-03-03 20:21:33 -07:00
Brian Seeders
62ea6e63cd
[CI] Pipeline refactoring (#56447) (#59077) 2020-03-02 17:24:57 -05:00
Brian Seeders
2de2658f4d
Remove matrix build support (#54202) (#56170) 2020-01-28 16:55:29 -05:00
Brian Seeders
5ffb19b7d3
[7.x] Flaky test runner improvements/fixes (#49367) (#54591)
* 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
2020-01-13 12:14:42 -05:00
Brian Seeders
b4523ee672
[7.x] Fix number of executions per agent in flaky test job (#5… (#54347) 2020-01-09 14:07:14 -05:00
Brian Seeders
896ae06cb6
[7.x] Elasticsearch snapshots automation (#53706) (#54150) 2020-01-08 10:27:17 -05:00
Stacey Gammon
9ed3fe0ccf
Add top level examples folder and command to run, --run-examples. (#52027) (#52739)
* Add top level examples folder and command to run, `--run-examples`.

* Add comment explaining reason --run-examples flag turns off base path.
2019-12-11 10:38:49 -05:00
Spencer
938f8b2663
[7.x] add serverMocha config for flaky job (#51508) (#51656)
* add serverMocha config for flaky job

* fix typo

* no reason to setup everything over and over, just call scripts/mocha

* force CI_GROUP param for testing

* define local CI_GROUP_PARAM that can be assigned alternate values temporarily

* add additional metadata to job description

* add workerNumber param to worker block

* use kibanaPipeline.getPostBuildWorker to define wrapper function

* use kibanaPipeline specific bash function

* revert changes made for debugging
2019-11-25 16:28:27 -07:00
Spencer
9a6724c3ed
[7.x] [a11y] add initial accessibility functional tests (#4358… (#50086)
* [a11y] add initial accessibility functional tests

* add accessibility jobs

* fix config path

* remove percy setup from scripts

* disable color-contrast rule

* apply changes from @myasonik

* define aria-controls/owns props even when suggestions aren't visible

* [ftr/a11y] only throw error when there are errors

* adding tests for management page

* add a11y test for management page

* adding ignore rules' to a11y

* accessibility test for kibana home

* 7 passing tests, 0 failures

* jest snapshot update

* support a11y test in pipeline job

* update a11y test script for pipelines

* use oss compatible ci setup

* fix exclude syntax

* add default exclusion syntax
2019-11-20 13:34:47 -07:00
Brian Seeders
3a078811f8
[7.x] Add labels to shell scripts in Jenkins (#49657) (#50794) 2019-11-15 14:47:14 -05:00
Brian Seeders
ec705654c8
[7.x] Re-add pipeline for flaky test runner job (#48781) (#49905)
* 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
2019-11-15 11:56:26 -05:00
liza-mae
b2f42c10bd
Enable visual tests (#47861) (#49800)
* Enable visual tests

* Uncomment visual tests jobs

* More testing - use dev token and only run visual tests

* Fix dev token

* Fix token again

* Skip infra tests

* Set style of table

* Try setting discover sample size

* Fix Jenkinsfile

* Remove login_page test from config (it skipped but failing)

* Remove line

* Prep to merge, revert token and update Jenkinsfile

* Try skipping at Security level, instead of removing from config
2019-10-31 15:49:17 -06:00
Spencer
2e2e1ea39b
[7.x] Re-split ciGroups after pipeline rollout (#46375) (#46643)
* Re-split ciGroups after pipeline rollout

Revert "Revert "Revert "Revert "Revert "[ci] compress jobs for CI stab… (#45454)"

This reverts commit 9a109f2170.

Revert "set IS_PIPELINE_JOB in intake jobs (#45850)"

This reverts commit b1a01effa8.

* Split one of the slow test suites up to try to make overall CI faster

* Disable visualRegression groups, they are being handled in other work

* Revert "Split one of the slow test suites up to try to make overall CI faster"

This reverts commit 1213239545.

* Move some different xpack ciGroup8 suites around
2019-09-25 17:21:47 -07:00
Brian Seeders
e8659817d2
[7.x] Run pipeline scripts with runbld (#45844) (#46020)
Change how runbld is invoked, and skip junit processing by default
2019-09-18 13:17:09 -04:00
Spencer
5fc3d0639f Revert "Revert "Revert "Revert "[ci] compress jobs for CI stab… (#45454)
* Revert "Revert "Revert "Revert "[ci] compress jobs for CI stability" (#44584)"""

This reverts commit 148b8c0f90.

* sync changes with Jenkinsfile

(cherry picked from commit 9a109f2170)
2019-09-11 15:28:14 -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
spalger
65003f0cbc Revert "Revert "[ci] compress jobs for CI stability" (#44584) (#44673)"
This reverts commit 2584383be1.
2019-09-10 09:04:36 -07:00
Yulong
9a1b17a46e
[Code] try fix ts-lang shutdown unit test (#37618) (#44730) 2019-09-04 12:13:01 +08:00
Spencer
2584383be1
Revert "[ci] compress jobs for CI stability" (#44584) (#44673)
This reverts commit debf8c62b4.
2019-09-03 12:25:06 -07:00
Spencer
408bf82284
[ci] compress jobs for CI stability (#44353)
# Conflicts:
#	x-pack/test/functional/apps/dashboard_mode/index.js
#	x-pack/test/upgrade_assistant_integration/upgrade_assistant/index.js
2019-08-29 05:10:13 -07:00
liza-mae
17178e88e0
Fix percy target branch for PRs (#43160) (#43292)
* Fix percy target branch for PRs

* Add debug logging

* Try diff branch name

* Use PR_TARGET_BRANCH instead

* renable visReg jobs

* parse target branch from `branch_specifier`

* rename debugging print out

* set `PERCY_BRANCH` and `PERCY_TARGET_BRANCH`

* log PERCY_TARGET_BRANCH

* cleanup error messages
2019-08-14 11:53:01 -06:00
spalger
41ec050ec6 disable visual regression jobs
(cherry picked from commit ca1bc3e511)
2019-08-12 20:46:55 -07:00
Spencer
244145381a
[7.x] [ftr] enable visualRegression jobs (#42989) (#43124)
* enable visualRegression jobs

* skip the console and login visual tests
2019-08-12 15:29:44 -07:00
Spencer
888b575e60
[7.x] move vault setup into repo so all ci logic is in the rep… (#42648)
* move vault setup into repo so all ci logic is in the repo

* turns out I'm used to less strict bash...

* unset VAULT_ADDR
2019-08-05 21:25:32 -07:00
Spencer
6be4a1e8dd
Use kibana-ci-proxy-cache for chrome and gecko drivers (#41581) (#41628)
* [ci] download chromedriver and geckodriver through a caching proxy

* restore chromedriver and geckodriver caching in bootstrap cache
2019-07-19 22:58:35 -07:00
Spencer
bf21b412a3
[7.x] Use custom GECKODRIVER_CDNURL (#41513) (#41548) 2019-07-18 23:00:58 -07:00
Court Ewing
4334922c22 Revert "Temporarily invalidate node_modules cache"
This reverts commit b45b6880d2.

This was only necessary until the cache was rebuilt.
2019-06-20 15:05:00 -04:00
Court Ewing
b45b6880d2 Temporarily invalidate node_modules cache 2019-06-20 13:35:00 -04:00
Court Ewing
a973cbc7a9 Fix path references into and out of x-pack/legacy 2019-06-20 13:35:00 -04:00
Dmitry Lemeshko
bc1234a9be
[firefox] Run functional tests in dedicated CI groups (#38416) (#39089)
* 2 jobs for Firefox tests

* review fixes

* make sh files executable

* add check reporter
2019-06-17 21:30:29 +03: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
Lee Drengenberg
cf0dd0bf54
[7.x] Split ciGroup3 and ciGroup5 (#36928) (#37122)
* Split ciGroup3 and ciGroup5 (#36928)

* split large x-pack ciGroup5 into 3 groups

* split large x-pack ciGroup3 into 2 groups

* Add groups to the jenkins xpack ci group file

* Re-level some more work

* move es_search_source test to new describe block

* move es_search_source to first in ciGroup7

* move to x-pack-ciGroup6
2019-05-24 17:35:22 -05:00
Spencer
118debef21
[packer_cache] make packer_cache idempotent (#34241)
When issues arise while building the packer_cache, like the ongoing es snapshot download errors, the cache scripts
are retried (up to 5 attempts). In order for this to work the script needs to be idempotent, but `mkdir` is failing
if the .chromedriver or .geckodriver directory already exists because they were not using the -p option.
2019-03-31 18:23:23 -07:00
spalger
b77643d3e8 fix cp command syntax
(cherry picked from commit 8ccd4334aa)
2019-03-29 15:55:43 -07:00
spalger
bb614cc3be capture geckodriver in packer cache
(cherry picked from commit 971533a29d)
2019-03-29 15:28:31 -07:00
Spencer
a053a55013
Refactor ES-related environment variables (#33036) (#33169)
* [ci/es] base default es version on pkg.branch value

* [ci/env] initialize $TEST_ES_FROM in checkout_sibling_es.sh

* [UA] remove TEST_ES_SNAPSHOT_VERSION override

* [ci/es] call checkout_sibling_es.sh from one location

* [ci] remove unused `--from` param

* [ci/env] always default to snapshots, switch to source when necessary

* [kbn/test] default esFrom to $TEST_ES_FROM

* [ci/setup] fix define order

* [ci/grunt] don't pass --esFrom let env pass through

* [ci/env] use branch, not version

* [ci] use same indent style as following lines

* [kbn/test] apply default values when processing args

* [kbn/test] simplify defaults, read default on each process
2019-03-13 13:18:51 -07:00
Spencer
c42f76b263
[7.x] use chromedriver cache from bootstrap cache (#32825)
I'm working on setting up a bootstrap cache for 7.x as well as master, so we will be able to use the chromedriver cache once the images are updated.
2019-03-09 14:55:58 -08:00
spalger
68cb25f5a9 backport packer_cache updattes so we can start running packer_cache script for 7.x 2019-03-08 13:24:40 -08:00