Skip to content

Conversation

@efreeti
Copy link
Contributor

@efreeti efreeti commented Jul 16, 2020

Backports the following commits to 7.x:

@efreeti efreeti added the backport This PR is a backport of another PR label Jul 16, 2020
@efreeti efreeti force-pushed the backport/7.x/pr-72042 branch from 04bd0f6 to ce36d8c Compare July 16, 2020 15:35
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/alerts·ts.alerting api integration security and spaces enabled Alerts alerts space_1_all at space1 should schedule task, run alert and schedule actions when appropriate

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: alerting api integration security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating space
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] [ilm-history-2-000001] creating index, cause [api], templates [ilm-history], shards [1]/[0]
[00:00:00]             │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] moving index [ilm-history-2-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[ilm-history-2-000001][0]]]).
[00:00:00]             │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] moving index [ilm-history-2-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]             │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] moving index [ilm-history-2-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ilm-history-ilm-policy]
[00:00:00]             │ debg created space
[00:00:00]             │ debg creating space
[00:00:01]             │ debg created space
[00:00:01]             │ debg creating space
[00:00:02]             │ debg created space
[00:00:02]             │ debg creating user no_kibana_privileges
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] added user [no_kibana_privileges]
[00:00:02]             │ debg created user no_kibana_privileges
[00:00:02]             │ debg creating role no_kibana_privileges
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] added role [no_kibana_privileges]
[00:00:02]             │ debg creating user superuser
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] added user [superuser]
[00:00:02]             │ debg created user superuser
[00:00:02]             │ debg creating user global_read
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] added user [global_read]
[00:00:02]             │ debg created user global_read
[00:00:02]             │ debg creating role global_read_role
[00:00:02]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] added role [global_read_role]
[00:00:02]             │ debg creating user space_1_all
[00:00:03]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] added user [space_1_all]
[00:00:03]             │ debg created user space_1_all
[00:00:03]             │ debg creating role space_1_all_role
[00:00:03]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] added role [space_1_all_role]
[00:02:55]           └-: Alerts
[00:02:55]             └-> "before all" hook
[00:10:39]             └-: alerts
[00:10:39]               └-> "before all" hook
[00:10:39]               └-> "before all" hook
[00:10:39]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] [.kibana-alerting-test-data] creating index, cause [api], templates [], shards [1]/[1]
[00:10:40]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594913773754377809] [.kibana-test-authorization] creating index, cause [api], templates [], shards [1]/[1]
[00:13:03]               └-: space_1_all at space1
[00:13:03]                 └-> "before all" hook
[00:13:03]                 └-> "before all" hook
[00:13:04]                 └-> should schedule task, run alert and schedule actions when appropriate
[00:13:04]                   └-> "before each" hook: global before each
[00:13:07]                   │ debg --- retry.try error: Expected 1 but received 0.
[00:13:07]                   │ debg --- retry.try failed again with the same message...
[00:13:08]                   │ debg --- retry.try failed again with the same message...
[00:13:08]                   │ debg --- retry.try failed again with the same message...
[00:13:09]                   │ debg --- retry.try failed again with the same message...
[00:13:09]                   │ proc [kibana]   log   [16:21:02.066] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute","start":"2020-07-16T16:21:01.416Z","end":"2020-07-16T16:21:02.064Z","duration":648000000,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"4b6d3f9b-a477-49e9-8486-7b39ef4723cd","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert executed: test.always-firing:4b6d3f9b-a477-49e9-8486-7b39ef4723cd: 'abc'","@timestamp":"2020-07-16T16:21:02.064Z","ecs":{"version":"1.5.0"}}
[00:13:09]                   │ proc [kibana]   log   [16:21:02.067] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"new-instance"},"kibana":{"alerting":{"instance_id":"1"},"saved_objects":[{"rel":"primary","type":"alert","id":"4b6d3f9b-a477-49e9-8486-7b39ef4723cd","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"test.always-firing:4b6d3f9b-a477-49e9-8486-7b39ef4723cd: 'abc' created new instance: '1'","@timestamp":"2020-07-16T16:21:02.064Z","ecs":{"version":"1.5.0"}}
[00:13:09]                   │ debg --- retry.try failed again with the same message...
[00:13:10]                   │ proc [kibana]   log   [16:21:03.055] [info][eventLog][plugins] event logged: {"event":{"provider":"alerting","action":"execute-action"},"kibana":{"alerting":{"instance_id":"1"},"saved_objects":[{"rel":"primary","type":"alert","id":"4b6d3f9b-a477-49e9-8486-7b39ef4723cd","namespace":"space1"},{"type":"action","id":"eec2fc63-55da-4f0b-9d55-7b13c65210fa","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"alert: test.always-firing:4b6d3f9b-a477-49e9-8486-7b39ef4723cd: 'abc' instanceId: '1' scheduled actionGroup: 'default' action: test.index-record:eec2fc63-55da-4f0b-9d55-7b13c65210fa","@timestamp":"2020-07-16T16:21:03.049Z","ecs":{"version":"1.5.0"}}
[00:13:10]                   │ debg --- retry.try failed again with the same message...
[00:13:10]                   │ debg --- retry.try failed again with the same message...
[00:13:11]                   │ debg --- retry.try failed again with the same message...
[00:13:11]                   │ debg --- retry.try failed again with the same message...
[00:13:12]                   │ proc [kibana]   log   [16:21:05.083] [info][eventLog][plugins] event logged: {"event":{"provider":"actions","action":"execute","start":"2020-07-16T16:21:04.406Z","end":"2020-07-16T16:21:05.081Z","duration":675000000,"outcome":"success"},"kibana":{"saved_objects":[{"rel":"primary","type":"action","id":"eec2fc63-55da-4f0b-9d55-7b13c65210fa","namespace":"space1"}],"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"message":"action executed: test.index-record:eec2fc63-55da-4f0b-9d55-7b13c65210fa: My action","@timestamp":"2020-07-16T16:21:05.081Z","ecs":{"version":"1.5.0"}}
[00:13:12]                   │ debg --- retry.try error: Expected 0 non-idle tasks but received 1
[00:13:12]                   │ debg --- retry.try failed again with the same message...
[00:13:13]                   │ debg --- retry.try failed again with the same message...
[00:13:13]                   │ debg --- retry.try failed again with the same message...
[00:13:17]                   └- ✖ fail: alerting api integration security and spaces enabled Alerts alerts space_1_all at space1 should schedule task, run alert and schedule actions when appropriate
[00:13:17]                   │      Error: expected 'undefined' to equal 'number'
[00:13:17]                   │       at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
[00:13:17]                   │       at Assertion.be.Assertion.equal (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:227:8)
[00:13:17]                   │       at Assertion.be (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:69:22)
[00:13:17]                   │       at validateEventLog (test/alerting_api_integration/security_and_spaces/tests/alerting/alerts.ts:973:32)
[00:13:17]                   │ 
[00:13:17]                   │ 

Stack Trace

Error: expected 'undefined' to equal 'number'
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:69:22)
    at validateEventLog (test/alerting_api_integration/security_and_spaces/tests/alerting/alerts.ts:973:32)

Build metrics

async chunks size

id value diff baseline
securitySolution 7.3MB +139.0B 7.3MB

History

  • 💔 Build #62277 failed 04bd0f69dbc17b7b1aad20be27e6e71dc0f7d79a

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@efreeti efreeti merged commit 9e20a46 into elastic:7.x Jul 16, 2020
@efreeti efreeti deleted the backport/7.x/pr-72042 branch July 16, 2020 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants