Commit graph

141 commits

Author SHA1 Message Date
Brian Seeders
c21c8f7006
[bazel] Use a GCS bucket for local dev remote bazel cache (#131866) 2022-05-11 14:21:23 -04:00
Spencer
af8810fede
[ci/test-groups] define scripts externally (#131645) 2022-05-05 14:46:50 -04:00
Brian Seeders
267c674d42
[CI] Split check types into its own step, use spot for checks (#131096) 2022-05-05 13:26:34 -04:00
Brian Seeders
4dd33a9009
[es-snapshots] Fix verify job dependencies after FTR configs change (#131640) 2022-05-05 11:41:07 -04:00
Dzmitry Lemechko
1d1e1f6430
[ci] extract apm traces after in single user benchmarking pipeline (#130777)
* [ci] extract apm traces after in single user benchmarking pipeline

* add performance-testing-dataset-extractor dependency

* use BUILD_ID for queries

* bump version for extractor, update script

* bump extractor version

* fix path

* upload artifacts to the public bucket
2022-05-05 09:44:11 +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
Spencer
1a849dc2b6
[flaky-tests] require using the new UI to trigger (#131534) 2022-05-04 09:52:34 -07:00
Gloria Hornero
8771527334
adding new dependencies (#125187) 2022-04-27 12:42:55 -07:00
Spencer
0b37272c8e
[jest] automatically determine run order (attempt 2) (#131091) 2022-04-27 11:18:15 -07:00
spalger
f149a17871 Revert "[jest] automatically determine run order (#130857)"
This reverts commit 1a05ce5cab.
2022-04-27 11:38:19 -05:00
Spencer
1a05ce5cab
[jest] automatically determine run order (#130857) 2022-04-27 11:10:47 -05:00
Brian Seeders
7ff1ffca5e
[CI] Split OSS CI Group 11 (#130927) 2022-04-26 13:07:32 -04:00
Brian Seeders
830d231cc0
[es-snapshots] Fix promotion not triggering due to missing dependency (#130693) 2022-04-20 10:12:34 -05:00
Brian Seeders
5872b5ec9d
[CI] Split dashboard feature controls tests into two cigroups (#130416) 2022-04-19 16:44:24 -04:00
Brian Seeders
6a4eb48119
[CI] Split alerting-api-integration tests into separate cigroups (#130414) 2022-04-18 16:14:26 -04:00
Brian Seeders
8364fc796a
[CI] Use spot instances for default cigroups in PR CI (#130476) 2022-04-18 16:13:50 -04:00
Brian Seeders
1dce1d8d97
[CI] Balance/split CI groups and remove docker-specific group (#130181) 2022-04-14 11:04:13 -04:00
Jonathan Budzenski
3f6d46127b
[artifacts] Add CI retries (#130194) 2022-04-13 15:47:51 -07:00
Jonathan Budzenski
482ae8a909
[artifacts] Deploy Cloud image (#129650)
* [artifacts] Publish release artifacts

This adds the publish step to the release pipeline, which uses the
release-manager CLI to upload a list Kibana artifacts.

* cleanup

* [artifacts] Test cloud image

* tmp skip unrelated steps

* build cloud artifact

* fix tag

* add missing artifacts

* enable rm

* fix syntax

* fix tag

* fix artifact

* fix variable

* source utils

* fix path

* fix version

* skip steps

* re-add pipeline steps

* set permissions

* Update .buildkite/scripts/steps/artifacts/publish.sh

Co-authored-by: Chris <chris.koehnke@elastic.co>

* Revert "Update .buildkite/scripts/steps/artifacts/publish.sh"

This reverts commit a6228f52cd.

* export

* support version qualifier

* setup env

* cleanup

* consistency

* \n

* comment

* unneccessary fallback

* +x

* hoist env args

* source

* link to artifacts

* fix artifacts summary

* relax docker glob

* \n

* fix summary

* fix variable

* rm es docker image

* setup cloud env

* rename deployment

* exclude skipCloud

* only run on snapshot builds

* update step name

* TEST_BROWSER_HEADLESS=1

* cleanup

* newline

* consistency

* pass deployment id

Co-authored-by: Chris <chris.koehnke@elastic.co>
2022-04-13 15:12:46 -05:00
Jonathan Budzenski
ab1bec320b
[artifacts] Publish (#129499)
* [artifacts] Publish release artifacts

This adds the publish step to the release pipeline, which uses the
release-manager CLI to upload a list Kibana artifacts.

* cleanup

* add missing artifacts

* enable rm

* fix syntax

* fix artifact

* source utils

* fix path

* fix version

* skip steps

* re-add pipeline steps

* set permissions

* Update .buildkite/scripts/steps/artifacts/publish.sh

Co-authored-by: Chris <chris.koehnke@elastic.co>

* Revert "Update .buildkite/scripts/steps/artifacts/publish.sh"

This reverts commit a6228f52cd.

* export

* support version qualifier

* setup env

* cleanup

* consistency

* \n

* comment

* unneccessary fallback

* +x

* hoist env args

* source

* link to artifacts

* fix artifacts summary

* relax docker glob

* \n

* fix summary

* fix variable

Co-authored-by: Chris <chris.koehnke@elastic.co>
2022-04-13 13:06:40 -05:00
Gloria Hornero
7621975c8f
[Security Solution] [ReponseOps] Executes Cases Cypress test when there is a change on cases plugin (#129992)
* when a change is done on the cases plugin, just the cases cypress are executed

* moves attach alert to a case into the cases folder for simplicity
2022-04-13 07:59:14 +02:00
Brian Seeders
4b768fd2e7
[CI] Move jest tests to spot instances, and fix spot retries in PRs (#130045) 2022-04-12 16:47:29 -04:00
Katerina Patticha
8022b0aba7
Add e2e for the apm integration policy form (#129860)
* Grant fleet privileges and capabilities to power user

* Add e2e for integration policy

* Fix selector for Tail-based

* Remove e2e releated to Fleet code

* Decouple tests

* Clean up assertion

* Fix flaky test
2022-04-12 19:44:37 +02:00
Jonathan Budzenski
b2b961eb15
[artifacts] Merge docker context verification (#129399)
* [artifacts] Merge docker context verification

* add to pipeline

* n2-2
2022-04-04 16:41:19 -05:00
Brian Seeders
552bceed76
[CI] Roll out spot instances to more jobs (#129394) 2022-04-04 12:58:08 -07:00
Jonathan Budzenski
448e29caee
[artifacts] Merge package testing with release artifacts (#129378)
* [artifacts] Merge package testing with release artifacts

* fix

* fix relative dir
2022-04-04 11:40:35 -07:00
Brian Seeders
2e4274ca88
[CI] Move hourly CI tasks to on merge (#128505) 2022-03-29 11:10:35 -04:00
Spencer
c423cc53af
[fleet] add pipeline for daily package install test (#128683)
* [fleet] add pipeline for daily package install test

* use install_all_packages script and make sure it's executable
2022-03-28 20:00:36 -07:00
Jonathan Budzenski
68a2b7f27d
[ci] bump memory for webpack bundle reports (#128667)
* [ci] bump memory for webpack bundle reports

We're seeing intermittent out of memory errors when building platform
plugins.  This instance is comparatively undersized with other jobs that
build platform plugins.  This resizes the instance to add more memory.
The higher core count will be utilized by the build plugin task and
decrease build time.

* use c2
2022-03-28 11:39:18 -07:00
Brian Seeders
d940231edc
[CI] Try using spot instances for the hourly pipeline again (#128431) 2022-03-24 11:09:26 -04:00
Jonathan Budzenski
03ce76bb70
[ci] Add artifact build pipeline (#128311)
* [ci] Add artifact build pipeline

* create dependencies report
2022-03-22 14:09:27 -07:00
Spencer
da5dfd9b56
[ci/ftr] add missing break statement (#128018) 2022-03-17 16:28:44 -07:00
Spencer
62f8e58f11
[bk/flaky] fix env var for reusing artifacts (#127503) 2022-03-10 13:39:32 -07:00
Michael Olorunnisola
2dc753b262
[Security Solution][CI Stats] - Add cypress tests to flaky test runner (#127293) 2022-03-10 12:24:21 -05:00
Baturalp Gurdin
ee369db141
ci: discard configuration step and parallelism for performance test pipeline (#127288)
- Removes user input and env var for performance test iterations
- Changes performance test execution queue
- Removes parallelism, queue mechanisms
- Removes dynamic creation of performance sub-steps

Co-authored-by: Spencer <spencer@elastic.co>
2022-03-09 09:36:37 -07:00
Tyler Smalley
8c075c50d5
Increase timeout for Jest integration tests (#127220)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2022-03-08 15:29:34 -08:00
Brian Seeders
9b79234be9
Revert "[ci] Configure hourly pipeline for a small spot instance trial (#126824)"
This reverts commit 891b6cd83b.
2022-03-07 16:40:20 -05:00
Brian Seeders
2c7fe22a39
Revert "[CI] Expand spot instance trial a bit (#126928)"
This reverts commit 79935f3341.
2022-03-07 16:40:07 -05:00
Brian Seeders
79935f3341
[CI] Expand spot instance trial a bit (#126928) 2022-03-04 11:19:22 -05:00
Brian Seeders
891b6cd83b
[ci] Configure hourly pipeline for a small spot instance trial (#126824) 2022-03-03 12:16:38 -05:00
Brian Seeders
c365e60819
[ci] Ensure every kibana pipeline has a non-default queue defined (#126641) 2022-03-02 10:56:03 -05:00
Tyler Smalley
e9d82d104b
Updates to Jest configuration (#125727) 2022-02-15 19:06:13 -07:00
Jonathan Budzenski
16f3eb352c
[ci] Verify docker contexts (#122897)
* [ci] Verify docker contexts

* bootstrap

* debug

* mkdir target

* change subdomain if snapshot

* move to separate pipeline

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-15 13:46:42 -06:00
Brian Seeders
31c44389a1
[ci] Retry failed steps in on-merge pipeline (#125550) 2022-02-14 12:16:32 -07:00
Tyler Smalley
435b772786
[ci] Splits Jest integration tests (#125454) 2022-02-14 17:12:42 +01:00
Jonathan Budzenski
f046541315
[cloud-first-testing] Automated deployments (#122102)
* [ci/cloud] Deploy docker image to cloud

* add git commit

* fix template path

* Split cloud build and deploy into separate step

* Remove file

* update field

* Add bootstrap

* WIP purge old cloud deployments

* Fix variable reference

* rm apm

* update path

* fix apm edit

* s/kibana/elasticsearch

* Fix purge bug, remove commit hash from deployment name, track deployment, grab logs and credentials from output

* Use n2-2 agent for cloud build/deploy, fix output flag

* Fix file path

* Use a tmp file for deployment json

* update if kibana exists

* Fix syntax error and skip build for now

* Don't skip build

* grab endpoints

* cleanup

* vault write

* redirect stderr

* refresh vault token

* fix id

* fix annotation

* cleanup

* Update .buildkite/scripts/steps/cloud/build_and_deploy.sh

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>
2022-02-02 15:52:51 -06:00
Jonathan Budzenski
54500ff091
[ci] Build and publish webpack bundle reports (#123659)
* [ci] Build and publish webpack bundle reports

* newline

* indent

* fix directory name

* fixes

* cleanup

* uncomment build plugins
2022-01-25 16:25:14 -06:00
Baturalp Gurdin
eeb5efcc62
Performance Tests for Login and Home Pages by using Playwright (#119681)
add performance tests for Login and Home pages

- [x] Rename and reduce the number of environment variables for performance test CI job
  - [x] ITERATION_COUNT_ENV =>  PERF_TEST_COUNT
  - [x] DISABLE_CACHE, TEST_RUNNER, TEST_THROTTLE_NETWORK removed
- [x] Use c2-16 queue for performance tests
- [x] Run performance tests by running ES and Kibana separately
- [x] Add warmup phase to performance tests (Not reported to APM). APM Label: PERF_TEST_PHASE
- [x] Add playwright dependency
- [x] Throttle network speed ( downloadThroughput: 750.000 B/s, uploadThroughput: 750.000 B/s, latency: 100 ms )
- [x] Disable cache by using - page.route (‘**’, ….)
- [x] Login and Home pages performance tests.
2022-01-18 14:00:06 +03:00
Brian Seeders
20d051fda4
[CI] Move REPORT_FAILED_TESTS_TO_GITHUB from repo yaml to pipeline definition (#122851) 2022-01-12 12:48:24 -05:00
Tomasz Ciecierski
75aadc6081
[Osquery] Add more e2e tests (#121487) 2022-01-11 13:50:56 +01:00