Commit graph

130 commits

Author SHA1 Message Date
Kibana Machine
19279c8e85
[artifacts/cft] Soft fail on timeout (#141180) (#141244)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
(cherry picked from commit 7be5ac42a0)

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2022-09-21 08:46:40 -07:00
Tyler Smalley
d6c97faf34 Revert "[cft] Soft fail on timeout (#141165) (#141167)"
This reverts commit 68f9de6e33.
2022-09-20 14:02:38 -07:00
Kibana Machine
68f9de6e33
[cft] Soft fail on timeout (#141165) (#141167)
(cherry picked from commit 2d0d3a58f2)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-09-20 13:55:11 -07:00
Jonathan Budzenski
8daa97a582
[artifacts] Improve cloud deployment error handling (#137775) (#140123)
* [artifacts] Improve cloud deployment error handling

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

Co-authored-by: Spencer <spencer@elastic.co>

* update retry codes

Co-authored-by: Spencer <spencer@elastic.co>

Co-authored-by: Spencer <spencer@elastic.co>
2022-09-06 14:11:59 -05:00
Kibana Machine
39fdc66ca7
Bump linux bazel cache timeout to 30 minutes (#139491) (#139495)
We're seeing some timeouts recently in the 15 minute range.
Mac timeouts are already at 60 min.

(cherry picked from commit a2f3e3bd7c)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-08-25 10:21:53 -07:00
Kibana Machine
6a103fef39
[CI] Improve reliability of macos bazel cache jobs (#138554) (#138567)
(cherry picked from commit 1019295b09)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-08-10 14:27:08 -07:00
Kibana Machine
1595daa933
[CI] Convert the remaining steps in primary pipelines to spot instances (#138168) (#138459)
(cherry picked from commit 4f100c4ed0)

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-08-09 14:28:18 -07:00
Kibana Machine
ee1b1aab80
[ci] mark PR stats as usable for metrics (#138297) (#138329)
(cherry picked from commit 92fb5dbafc)

Co-authored-by: Spencer <spencer@elastic.co>
2022-08-08 15:21:25 -07:00
Kibana Machine
c46916ec59
[ci] Conditional storybook builds (#136219) (#137890)
* [ci] Conditional storybook builds

This moves storybook builds to run conditionally, either if there's a
storybook change or the `ci:build-storybooks` label is set.

These builds don't seem to be providing test coverage, and may not be utilized
in scenarios such as automated backports or unrelated changes.

* test regex

* formatting

* Revert "test regex"

This reverts commit dcef465414.

* fix revert

* move to spot instance

* fix merge

(cherry picked from commit 22b21645bb)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-08-02 10:37:00 -07:00
Brian Seeders
20dec08bf1
[CI] Parallelize eslint to speed it up (#136972) 2022-07-22 16:23:17 -04:00
Jonathan Budzenski
1410bc4aa5
[cft] Add pipeline to shutdown deployment (#136659)
* [cft] Add pipeline to shutdown deployment

* 755

* save file
2022-07-20 10:22:25 -05:00
Dzmitry Lemechko
b72601c283
[performance] Re-enable apm extraction step (#136555)
* [kbn-performance-testing-dataset-extractor] add extra logging

* re-enable step
2022-07-19 09:35:54 +02:00
Jonathan Budzenski
b5b735625c
[cft] Use spot instance (#135742)
* [cft] Use spot instance, increase cpu

* revert back to n2

* Update .buildkite/pipelines/pull_request/deploy_cloud.yml

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

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>
2022-07-12 14:55:50 -05:00
Jonathan Budzenski
8acc1466f8
[ci] Conditonal webpack bundle reports (#136215)
* [ci] Conditonal webpack bundle reports

* fix

* spacing

* \n

* fix file path
2022-07-12 12:30:49 -05:00
Baturalp Gurdin
d83f802099
stop scalability step in performance pipeline (#136211)
Co-authored-by: Spencer <spencer@elastic.co>
2022-07-12 09:14:18 -07:00
Jonathan Budzenski
87ac0fd2fe
[docker] Add ubi9 image (#135868)
* [docker] Add ubi9 image

* update artifacts tests

* cleanup

* fixes

* formatting
2022-07-08 12:02:59 -05:00
spalger
7731c414db [ci] build webpack bundle repotrs on a larger machine
We've seen OOMs on this recently, to prevent blocking more people we're just going to bump the instance size until we can narrow down the problem.
2022-07-08 08:44:00 -05:00
Spencer
9619311120
[ci] fix ftr script when called with parallelism (#135713)
* fix ftr script when called with parallelism

* Update ftr_configs.sh
2022-07-05 09:14:26 -05:00
Brian Seeders
0b0b68786a
[CI] Move kibana-buildkite-library into kibana (#134787) 2022-06-28 13:19:05 -04:00
Shahzad
d6f2dc1042
[Exploratory view] Add e2e tests (#135148)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-28 13:31:12 +02:00
Dzmitry Lemechko
d86f977884
[performance] re-enable scalability dataset extraction step on CI (#134719)
* add scalability setup for login and promotion_tracking_dashboard journeys, re-enable step on ci

* update query to get single ftr transaction

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-24 16:18:41 +02:00
Tre
85dc5b3578
[QA][Code Coverage] Add meta data links ci runs. (#134731)
* [QA][Code Coverage] Add a link to discover pinned to the current build.

When personnel other than myself wish to visually verify code coverage,
this link will be available in the ci output.

* Drop single quotes.

* Add annotation per J Budz.

* Fixup text.

* Drop debug.
2022-06-23 16:00:48 +01:00
Baturalp Gurdin
e5d73a1169
ingest performance metrics to ci-stats (#134792) 2022-06-22 15:44:11 -07:00
Vitalii Dmyterko
746e259733
[Security Solution] fixes flaky-test-runner Cypress Security Solution tests (#134205)
## Summary

Fixes issue with security solution cypress flaky test runner

After introducing [dynamic split for cypress tests in Security Solution](https://github.com/elastic/kibana/pull/125986), there was discovered an issue with flaky test runner, which is using parallelism in slightly different manner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/697#_: tests were evenly split between N jobs, instead of repeating tests N times(as N jobs)

So, for flaky runner, I introducing a new ENV variable that would disable split for tests between parallel jobs and instead would run all test per each job.

Here is link to flaky runner build from this PR, which shows that all test runs per job
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/736
2022-06-16 09:29:17 +01:00
Brian Seeders
b32052e66a
[CI] Trigger pipeline deploy when versions.json changes (#134387) 2022-06-15 10:47:35 -04:00
Kibana Machine
0cb1087fb4
[api-docs] 2022-06-14 Daily api_docs build (#134389)
* [api-docs] Add pipeline to build api_docs daily

* Fix kibanamachine remote

* Add --repo

* Fix PR creation

* [api-docs] Daily api_docs build

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2022-06-14 12:58:55 -07:00
Jonathan Budzenski
fa4d1020fb
[artifacts] Remove docker cloud context verification (#134046)
This test was added as a verification step for daily releasable
artifacts.  We had originally planned on the release manager consuming
this context.  The expected workflow has changed now to us building and
publishing the docker image instead, which already has coverage in the
Build and Deploy to Cloud step.
2022-06-09 11:44:39 -05:00
Baturalp Gurdin
5d6e8940df
exclude scalability dataset extraction from single user performance tests (#133964) 2022-06-08 15:12:39 -07:00
Tre
747b898efb
[QA][Code Coverage] Drop functional code coverage (#133553)
* [QA][Code Coverage] Drop functional code coverage

* Drop ftr configs dependency.

* Still dropping missed mentions of functional
2022-06-07 10:51:33 +01:00
Brian Seeders
04ed6f8df1
[es-snapshots] Trigger packer cache job using API instead of pipeline (#133246) 2022-05-31 15:20:20 -04:00
Abdul Wahab Zahid
eab8ece3fb
[User Experience] Synthetics e2e tests. (#132896)
Co-authored-by: shahzad31 <shahzad.muhammad@elastic.co>
2022-05-31 18:03:25 +02:00
Shahzad
ed9ddc4c85
[Synthetics] Rename synthetics e2e tests (#133161) 2022-05-31 15:36:45 +02:00
Tre
5f950e617a
[QA][Code Coverage] follow up pr for ftr auto config handling & fix merge (#131734)
* [QA][Code Coverage] fixup for auto config handling pr

## Summary

Embed buildkite pipeline definition.

Follow up pr to change cc per auto config handling.
Also, resolves https://github.com/elastic/kibana/issues/132706

Increase worker count for `node scripts/build_kibana_platform_plugins` to 4 workers.

Normalize file names within coverage files such that nyc correctly builds the combined summaries.
  _Ci runs this on myriad servers, so the paths are different, which "breaks" nyc's output_

Split the final merge of functional coverage into 2 passes due to [nyc issue](https://github.com/istanbuljs/nyc/issues/1263)

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-27 12:28:16 +01:00
Jonathan Budzenski
bff21e760c
[artifacts] Soft fail when Cloud dependencies are unavailable (#133045) 2022-05-26 11:04:26 -07:00
Brian Seeders
60226bc3f1
[CI] Cache ES snapshots on agents (#132940) 2022-05-26 11:18:27 -04:00
Vitalii Dmyterko
d2b61738e2
[Security solution]Dynamic split of cypress tests (#125986)
- adds `parallelism: 4` for security_solution cypress buildkite pipeline
- added parsing /integrations folder with cypress tests, to retrieve paths to individual test files using `glob` utility
- list of test files split equally between agents(there are approx 70+ tests files, split ~20 per job with **parallelism=4**)
- small refactoring of existing cypress runners for `security_solution`

Old metrics(before @MadameSheema https://github.com/elastic/kibana/pull/127558 performance improvements):
before split: average time of completion ~ 1h 40m for tests, 1h 55m for Kibana build
after split in 4 chunks: chunk completion between 20m - 30m, Kibana build 1h 20m

**Current metrics:**
before split: average time of completion ~ 1h for tests, 1h 10m for Kibana build
after split in 4 chunks: each chunk completion between 10m - 20m, 1h Kibana build 1h
2022-05-19 15:09:31 +01:00
Jonathan Budzenski
3409ea325f
[artifacts] Verify docker UBI context (#132346)
* [artifacts] Verify docker UBI context

* add step

* fix filename
2022-05-18 09:21:13 -05:00
Jonathan Budzenski
e401c41e78
[artifacts/staging] Skip docker cloud verification (#132348)
Cloud builds should be skipped pending implementation of phase 2 of
daily releasable artifacts.
2022-05-17 11:22:08 -07:00
Jonathan Budzenski
b16486a999
[artifacts] Test cloud context (#130394)
* [artifacts] Test cloud context

This artifact currently has no consumers, but in the near future the
release-manager will produce Cloud images using the context.  This
ensures builds are working before we publish artifacts.

* update permissions

* fix if statement

* DOCKER_CONTEXT -> KIBANA_DOCKER_CONTEXT
2022-05-11 12:03:40 -07:00
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