Commit graph

335 commits

Author SHA1 Message Date
Jonathan Budzenski
6a5db32581
[ci] Upload deb and rpm artifacts (#121228)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-15 09:28:57 -06:00
Spencer
3f321d1f42
[ci/flaky] support triggering a with config via the env (#121215) 2021-12-14 12:01:17 -07:00
Jonathan Budzenski
ec6b8d1acc
[ci] Support building OS packages (#121146)
This adds support for building deb, rpm, and docker images using the
ci:build-os-packages label.

Depends on https://github.com/elastic/kibana-buildkite/pull/2

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-14 12:53:17 -06:00
Brian Seeders
168e2e271c
[CI] Create a pipeline to bootstrap and populate bazel remote cache for MacOS (#120136) 2021-12-14 11:07:14 -05:00
Patryk Kopyciński
327411b6b2
[Osquery] Add Osquery cypress tests to buildkite (#115902) 2021-12-04 13:34:44 +01:00
Jonathan Budzenski
2070fcb261
[ci] Add cloud image annotation (#120165)
* [ci] Add cloud image annotation

* typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-01 16:50:12 -06:00
Jonathan Budzenski
5041ab66d1
[build] Support pushing cloud images (#118071)
* [build] Support pushing cloud images

* read earlier

* fix types

* feedback

* fix exit code when not pushing

* suffix with pr number

* Revert "suffix with pr number"

This reverts commit 4a687d1d6e.

* default to null

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 17:30:03 -06:00
Tyler Smalley
a181ff31c4
Updates APM defaults and CI settings (#117749)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-23 14:48:50 -08:00
spalger
7ffe47a10a fix type check logging output 2021-11-23 14:49:12 -07:00
Brian Seeders
d282cfa80e
[CI] Bump size of agent running Checks step in hourly pipeline (#119505) 2021-11-23 11:47:23 -07:00
Brian Seeders
8e8b62352b
[CI] Increase heap for jest integration tests (#119237) 2021-11-19 14:55:48 -07:00
Jonathan Budzenski
77acb68973
[ci] Add yarn.lock to buildkite library (#118629)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-17 16:28:03 -06:00
Spencer
908470912f
[ci] validate bootstrap changes at beginning of checks (#118822)
* [ci] validate bootstrap changes at beginning of checks

* make package.json invalid

* Revert "make package.json invalid"

This reverts commit e4e9ecfcdd.
2021-11-16 21:02:51 -07:00
Spencer
96ec161569
[kbn/pm] sort package.json in bootstrap (#118805) 2021-11-16 16:41:59 -07:00
Mikhail Shustov
7c16e2e57f
Include tracing information in the Kibana logs (#112973)
* change APM nodejs agent default

By default APM agent instruments the code to be a base for log correlation. But it doesn't send transactions to the APM server.

* emit trace IDs into the logs

* use ELASTIC_APM_DISABLE_SEND to keep APM agent active but disable send when necessary

* send data whenver active is set to "true"

* update tests

* keep APM agent active. control disableSend instead

* update snapshot tests

* add debug logging

* REMOVE me. log path to the agent

* init APM agent explicitly in test plugin. it uses another package instance

* REMOVE me. create transaction explicitly

* increase timeout setting for the test

* refactor tests

* remove debug logs

* remove explicit transaction creation

* Revert "remove explicit transaction creation"

This reverts commit cdf2d308e0.

* point to apm nodejs agent commit temporary until a new version is released

* migrate from disableSend to contextPropagationOnly

* TO DISCUSS. what if we enforce contextPropagationOnly to be configured when active is defined

* Revert "TO DISCUSS. what if we enforce contextPropagationOnly to be configured when active is defined"

This reverts commit 62dda4fb27.

* bump to version with fix

* commit using @elastic.co

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-11 12:13:23 +01:00
Brian Seeders
8ba9ebf592
[CI] Rebalance/split cigroups and speed up overall CI time (#118191) 2021-11-10 12:01:03 -05:00
Brian Seeders
30de97bc2d
Revert "[CI] Rebalance/split cigroups and speed up overall CI time (#113676)"
This reverts commit 9888b7fec3.
2021-11-10 10:34:38 -05:00
Brian Seeders
9888b7fec3
[CI] Rebalance/split cigroups and speed up overall CI time (#113676) 2021-11-10 10:33:20 -05:00
Tyler Smalley
139a3c9866
[ci] Run Jest tests in parallel (#117188)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-11-09 11:25:25 -08:00
Brian Seeders
195e5bebcb
[CI] Add firefox and accessibility tasks to the flaky test suite runner (#118036) 2021-11-09 19:24:36 +00:00
Jonathan Budzenski
c7c759f2f8
[build] Add download cloud dependencies task (#117227)
* [build] Add download cloud dependencies task

This adds a task to download filebeat and metricbeat for use in building
our cloud image.  Previously, these were run using local artifacts added
by the release manager.  As we transition towards building our own releasable
artifacts, we need to be able to fetch these dependencies at build time.

This includes argument changes to the build command:

- Docker cloud images are built by default, to skip add
`--skip-docker-cloud`.  `--docker-cloud` has been removed to be
consistent with other arguments.
- Artifacts are downloaded by default, to use local artifacts add
`--skip-cloud-dependencies-download`

* fix checks

* build cloud image with ci:deploy-cloud

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-09 08:55:09 -06:00
Brian Seeders
c7002a19d7
[CI] Prep for the transition to build bot for github commit statuses (#117685) 2021-11-05 14:15:37 -04:00
Brian Seeders
22a9382014
[CI] Delete node_modules in between bootstrap attempts (#117588) 2021-11-04 21:22:49 +00:00
spalger
21931116cf fix buildkite yaml 2021-11-03 23:02:56 +00:00
Spencer
4385ac4d83
[eslint] enable type-specific lint rules (#114184)
* [eslint] enable type-specific lint rules

* autofix violations

* duplicate eslint-disable to new export statement

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-03 16:56:17 -06:00
Tyler Smalley
98de5f673c Revert "[ci] Run Jest tests in parallel (#115687)"
This reverts commit 237d68d6e9.
2021-11-02 10:05:55 -07:00
Tyler Smalley
5d557539e4 Revert "[ci] Increase heap of Jest"
This reverts commit 87c7289b74.
2021-11-02 10:05:31 -07:00
Tyler Smalley
87c7289b74 [ci] Increase heap of Jest
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-11-02 09:17:16 -07:00
Tyler Smalley
237d68d6e9
[ci] Run Jest tests in parallel (#115687)
* [ci] Run Jest tests in parallel

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Disable coverage

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Make hourly match prs

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Update timeout

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* mock process.execArgv so that it is consistent

* Remove comment

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-02 08:53:07 -07:00
Julia Bardi
157a37114f
[Fleet] cypress setup (#113106)
* added cypress setup for fleet

* updated readme

* fixed types

* fix unused

* starting up fleet server in cypress

* added more fleet tests

* added package update test

* updated readme

* trying jenkins run

* trying jenkins run

* trying jenkins run

* fix types, cypress config

* example of mocked requests

* added getBySel

* fix test after refactor

* removed duplication

* fix tests

* added to buildkite

* updated tests

* starting agent with docker

* trying to fix ip address

* ifconfig

* ip address

* ip address

* ip address

* type fix

* remove extra logging

* fixed test

* fix buildkite

* cleanup

* cleanup

* using docker for fleet_server

* fix

* fix

* trying to fix

* update config

* test

* test

* test

* test

* revert changes

* test

* test

* static ip on linux

* docker version

* try again

* fixed review comments

* fixed types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2021-11-02 15:14:28 +01:00
Tyler Smalley
ea62dd04af
[ci] Temporarily stop writing to Bazel remote cache (#116866)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-29 21:06:26 -07:00
Brian Seeders
3036e102ed
Update ES snapshot build branch to build master 2021-10-29 12:42:52 -04:00
Baturalp Gurdin
24c6d6583d
fix: move concurrency parameters to substep (#116461)
Concurrency parameters were not in the correct place which made concurrency settings not in effect.
Moved it to to performance.sh step which also has parallelism in the same level.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 14:59:44 +01:00
Spencer
17df3a2654
[ci] bump timeout for cigroups until we figure out the slowdown (#116506)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-27 17:03:37 -05:00
Gloria Hornero
136d322bdd
adds lists plugin to security solution cypress tests execution (#116442) 2021-10-27 20:55:55 +01:00
Brian Seeders
c200c44347
[buildkite] Add Docker CI Group to flaky test job (#116307) 2021-10-26 18:35:58 +01:00
Nathan L Smith
81264f73e9
Re-enable APM E2E tests and allow server to shut down cleanly on failure (#115450)
* Re-enable APM E2E tests and allow server to shut down cleanly on failure

Calling `process.exit` in the test script made it so the FTR runner would not properly shut down the server, and cause other tests to fail because Kibana was left running on a port. Remove that and just throw
instead.

No changes were made to the tests, as I was unable to reproduce any failures locally. I'll try in CI and see if we can get anything to fail.

Fixes #115280.
2021-10-25 14:05:15 -05:00
Brian Seeders
35114175b6
[buildkite] FTSR / limit concurrency and total jobs (#115857) 2021-10-20 18:09:49 -04:00
Brian Seeders
9c5d4dc20e
[buildkite] Build PRs on buildkite by default (#115796) 2021-10-20 13:34:21 -04:00
Brian Seeders
d2c6c4104c
[buildkite] Add uptime playwright tests to PR pipeline (#115590) 2021-10-20 11:43:24 +02:00
Brian Seeders
1a5570baf4
[buildkite] Add timeouts to all steps missing them (#115656) 2021-10-19 23:55:02 +01:00
Tyler Smalley
ab16b485cd
[ci] Disable Bazel cache on CI (#115428)
This is a short-term solution to reduce our hit count in Buildkite due to the increase in bootstraps so we can move forward with enabling Buildkite across all PRs.
2021-10-19 22:12:31 +01:00
Baturalp Gurdin
94285ae01a
adds [Performance Testing] Nightly Build Job (#114042)
Adds auto and manual performance tests

If "ITERATION_COUNT_ENV" exist in build job:
- Auto Mode: Checks "ITERATION_COUNT_ENV",
- Manual Mode: Waits for user input,
use provided value to run "n" number of performance tests on parallel
- Sends slack notifications when pipeline finished
2021-10-18 15:38:57 +02:00
Brian Seeders
8e3f1c4d13
Disable APM e2e tests 2021-10-15 17:35:04 -04:00
Nathan L Smith
07777b9de1
Re-enable and fix APM E2E tests (#114831)
* Re-enable previously disabled APM E2E tests.
* Round to the nearest second in `getComparisonTypes` to avoid cases where a millisecond difference can change which results get shown.
* Simplify error count alert tests to test the "happy path" (#79284 exists in order to expand to more tests for rule editing and creation.)
* Wait for alert list API request to complete before clicking "Create rule" button when running the test to create a rule from the Stack Management UI.

I ran the e2e tests 100 times locally with no failures so I'm confident the flakiness has been addressed.

Fixes #114419.
Fixes #109205.
2021-10-15 13:25:50 -05:00
Tyler Smalley
871abc6656
[ci] Adds Github label to build all platforms (#115134)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-15 09:58:20 -07:00
Tyler Smalley
0a3ede8fd1
[ci] Explicitly define tasks for ES snapshot build (#115074)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-14 15:59:02 -07:00
Tyler Smalley
f2d70d8996
[renovate] Configure Cypress (#114880)
On `ci:all-cypress-suites` label, run all Cypress suites on Buildkite

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-14 08:52:11 -07:00
Tiago Costa
423b0e801f
chore(NA): fixes a typo on persist_bazel_cache.sh comment (#114943) 2021-10-14 03:35:17 +01:00
Tyler Smalley
5647de3b4a
[ci] Fixes Bazel cache writes (#114915)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-14 02:18:06 +01:00