Skip to content

[ML] Anomaly Detection: Visualize delayed data#101236

Merged
alvarezmelissa87 merged 10 commits intoelastic:masterfrom
alvarezmelissa87:ml-ad-delayed-data-viz
Jun 10, 2021
Merged

[ML] Anomaly Detection: Visualize delayed data#101236
alvarezmelissa87 merged 10 commits intoelastic:masterfrom
alvarezmelissa87:ml-ad-delayed-data-viz

Conversation

@alvarezmelissa87
Copy link
Copy Markdown
Contributor

Summary

Related meta issue: #99510

This PR adds a modal that is accessible through a View datafeed action from the expanded row Annotations table.

The modal charts the job's source data from the datafeed along with the bucket results to compare record counts per bucket span. This will allow the user to easily visualize delayed data. The modal allows the user to update the query_delay.

  • builds the charts based on info from job results and datafeed
  • fixed time interval to the job bucket span
  • able to easily navigate forwards and backward in time using the arrows on either side of the chart, the interval dropdown, and the date picker.
  • able to view job messages in separate tab

image

image

image

image

Checklist

Delete any items that are not applicable to this PR.

@alvarezmelissa87 alvarezmelissa87 self-assigned this Jun 2, 2021
@alvarezmelissa87 alvarezmelissa87 requested a review from a team as a code owner June 2, 2021 23:58
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool may not exist here so may need creating too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep - good catch 👍 Thanks!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be good not to use any here.
i'm not sure what the correct official query type is anymore. the esclient has QueryDslQueryContainer which fits.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type no longer needed as this has been moved to server side behind endpoint 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runtime_mappings need to be added to the query and used in the searches.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 1d9c496

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this can be BucketResultsForChart rather than any

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this can be number[][] rather than any

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think a lot of this logic could be moved to the server side or at least out of this react component.
The advantage of moving to the server side is these searches could all happen internally and the processing of the data would not be performed in the browser

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, now that I look at it all I think it makes sense to do that - I'll move it all behind a single endpoint 👍
Especially if we want to also separately re-request the datafeed config

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to server side in b201a635f08667349e20b1631023c46d1162a3b5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have a DatafeedWithStats interface here

export type DatafeedWithStats = Datafeed & DatafeedStats;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't be needed once we fetch the datafeed object separately in the follow up. Will update then 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i added a couple of other comments below, with them it looks like this component doesn't need the whole datafeed at all, only the datafeed id and query delay.
it doesn't really need the state either, but instead could take a isEnabled or similar flag.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion - updated to only take datafeedId, queryDelay, and isEnabled flag in d40f021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though datafeedConfig and bucketSpan are available from the jobs list, I think it would be safer to load these again when the modal opens.
Doing so means they are up to date and the datafeedConfig isn't a DatafeedWithStats object and so doesn't need the stats to be stripped out.
It also makes the component more self contained and is how the edit job modal works.

As a side note, the ...WithStats interfaces we have should be avoided as they are artificial and cause confusion. If we need to pass a datafeed and its stats somewhere, they should be kept as separate objects.

Copy link
Copy Markdown
Contributor Author

@alvarezmelissa87 alvarezmelissa87 Jun 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Updated DatafeedModal to fetch the necessary data in the component itself in d40f021

This is done in a way consistent with edit_job_flyout.js - job is fetched and datafeed_config is used from the response.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned in a previous comment, it would be better to only work with Datafeed objects if possible.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed as datafeedConfig not being sent to this component anymore - d40f021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't look like unshift is needed here, push could be used.

@alvarezmelissa87 alvarezmelissa87 force-pushed the ml-ad-delayed-data-viz branch from fbc18c2 to cf94886 Compare June 7, 2021 14:26
/**
* Datafeed config for searching source
*/
datafeedConfig: schema.any(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the datafeed doesn't need to be passed in if you have the job id, getDatafeedByJobId can be used to load the datafeed

async function getDatafeedByJobId(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only passed jobId and fetched the datafeed in the endpoint in d40f021

try {
await ml.updateDatafeed({
datafeedId,
datafeedConfig: { ...datafeedConfigClone, query_delay: newQueryDelay },
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whole datafeed doesn't need to be passed in here, only { query_delay: newQueryDelay }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - updated in d40f021
Along with the updateDatafeed type

<EuiFlexItem grow={false}>
<EuiFlexGroup justifyContent="spaceBetween">
<EuiFlexItem grow={false}>
<EuiSelect
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not convinced we need this interval dropdown. We could just show the maximum number of points that can be rendered clearly by the chart (480? 960? - probably some multiple of 12). The user can already navigate easily with the back and forward buttons and the time picker control.

The options in the select don't seem to be optimized for longer bucket spans - here for example I have a job with a 12h bucket span, and it opens with a default of 3h. Removing the range control would remove the complexity of working out the best range of options to show depending on the bucket span, which could range from seconds to days for example.

image

/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiDatePicker
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this date picker could do with a label, such as end time or showing data to. Without a label it needs an aria label I think for accessibility.

image

import { DATAFEED_STATE } from '../../../../../../common/constants/states';
import { CombinedJobWithStats } from '../../../../../../common/types/anomaly_detection_jobs';
import { useToastNotificationService } from '../../../../services/toast_notification_service';
import { ml } from '../../../../services/ml_api_service';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for new code it's better to use our api context rather than importing ml which uses the dependency cache

import { useMlApiContext } from '../../../../contexts/kibana';
const {
    results: { getDatafeedResultChartData },
  } = useMlApiContext();

EuiToolTip,
} from '@elastic/eui';

import { ml } from '../../../../services/ml_api_service';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as previous comment, please use useMlApiContext

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for the reminder. Updated both in 1df1594

body: { desc: true, start: String(start), end: String(end), page: { from: 0, size: 1000 } },
});

const bucketResults = get(bucketResp, ['body', 'buckets'], []);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we shouldn't be using lodash for basic things like this, I appreciate this was copied from other functions in this file, but ideally lodash will be replaced in a future refactor.
const bucketResults = bucketResp?.body?.buckets ?? [] would be better.

As well as the uses of get below

Copy link
Copy Markdown
Contributor Author

@alvarezmelissa87 alvarezmelissa87 Jun 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, agreed. Kept it in initially for consistency but agree moving away from it is better 👍 Updated in 1df1594

});

const bucketResults = get(bucketResp, ['body', 'buckets'], []);
each(bucketResults, (dataForTime) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, I don't see the benefit of using lodash's each here, bucketResults.forEach would be better IMO

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed all lodash function usage in 1df1594

try {
const { getDatafeedResultsChartData } = resultsServiceProvider(mlClient, client);
const resp = await getDatafeedResultsChartData(
request.body as DatafeedResultsChartDataParams
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this cast to DatafeedResultsChartDataParams is unnecessary

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in 1df1594

Comment on lines +626 to +630
const datafeedConfig = await getDatafeedByJobId(jobId);

const {
body: { jobs },
} = await mlClient.getJobs({ job_id: jobId });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

real nit, but getDatafeedByJobId and getJobs could be called in parallel.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just in case this comment was lost in a different change, I still think putting them in a Promise.all is worth it. But it's still only a nitpick, so please ignore if you want.

const {
body: { jobs },
} = await mlClient.getJobs({ job_id: jobId });
const jobConfig = jobs[0];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jobs[0] could be undefined here if this endpoint is called with a wildcard in the jobId
Testing this throws a kibana internal server error.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - updated to handle the job not being found in 1df1594

Copy link
Copy Markdown
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few extra comments on the styling of the chart.

Overall looks good. In the follow-up would be good to get the 'View datafeed' action in the top level menu potentially, and/or from the Datafeed tab in the expanded row.

showOverlappingTicks
tickFormat={dateFormatter}
title={i18n.translate('xpack.ml.jobsList.datafeedModal.xAxisTitle', {
defaultMessage: 'Bucket span ({bucketSpan})',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd not bother with a title for x axis, and move the bucket span to the top of modal, somewhere near the job ID perhaps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping it in for now as I think it might be confusing for the user to remove it but will look at other options in the follow up. 👍

},
});

if (this.state.jobId && this.props.jobs[0].analysis_config.bucket_span) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we keep using this.props.jobs[0] throughout the file. Can we make a constant to access this job?

@alvarezmelissa87
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream


import { i18n } from '@kbn/i18n';

export const getIntervalOptions = (bucketSpan: string) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be good to add some unit testing for this utility function in a follow up

@alvarezmelissa87
Copy link
Copy Markdown
Contributor Author

Comments have been addressed - thanks for all the testing 🙏
cc @jgowdyelastic, @peteharverson

@qn895
Copy link
Copy Markdown
Member

qn895 commented Jun 9, 2021

Code LGTM 🎉

Copy link
Copy Markdown
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment about making some calls in parallel, but generally LGTM

} from './constants';
import { loadFullJob } from '../utils';

const dateFormatter = timeFormatter('MM-DD HH:mm');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go to the ss level where the bucket span is less than 1 minute.

Copy link
Copy Markdown
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested latest edits and LGTM. Left one extra suggestion about the tooltip time format, but that can be added to the follow-up.

@alvarezmelissa87 alvarezmelissa87 merged commit 305f127 into elastic:master Jun 10, 2021
@alvarezmelissa87 alvarezmelissa87 deleted the ml-ad-delayed-data-viz branch June 10, 2021 15:25
alvarezmelissa87 added a commit that referenced this pull request Jun 10, 2021
…01912)

* wip: add datafeed modal for chart

* Add arrows to navigate through time in the chart

* ensure runtime_mapping and indices_options in search query

* move chart data fetching behind single server endpoint

* remove success check as it is not returned in result

* load necessary modal data in modal

* remove extra legend and add text to action icons

* remove unused endpoint and types

* handle job not found and fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@peteharverson peteharverson changed the title [ML] Anomaly Detection: Visualize delayed - data Part 1 [ML] Anomaly Detection: Visualize delayed data Jul 6, 2021
@peteharverson peteharverson added release_note:feature Makes this part of the condensed release notes and removed release_note:enhancement labels Jul 6, 2021
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented Jul 6, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/ml/alert_flyout·ts.ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 9 times on tracked branches: https://github.com/elastic/kibana/issues/102012

[00:00:00]       │
[00:00:00]         └-: ML app
[00:00:00]           └-> "before all" hook in "ML app"
[00:00:00]           └-> "before all" hook in "ML app"
[00:00:00]             │ debg creating role ft_ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_source]
[00:00:00]             │ debg creating role ft_ml_source_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_source_readonly]
[00:00:00]             │ debg creating role ft_ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_dest]
[00:00:00]             │ debg creating role ft_ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_dest_readonly]
[00:00:00]             │ debg creating role ft_ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_ui_extras]
[00:00:00]             │ debg creating role ft_default_space_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space_ml_all]
[00:00:00]             │ debg creating role ft_default_space1_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space1_ml_all]
[00:00:00]             │ debg creating role ft_all_spaces_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_all_spaces_ml_all]
[00:00:00]             │ debg creating role ft_default_space_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space_ml_read]
[00:00:00]             │ debg creating role ft_default_space1_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space1_ml_read]
[00:00:00]             │ debg creating role ft_all_spaces_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_all_spaces_ml_read]
[00:00:00]             │ debg creating role ft_default_space_ml_none
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space_ml_none]
[00:00:00]             │ debg creating user ft_ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser]
[00:00:00]             │ debg created user ft_ml_poweruser
[00:00:00]             │ debg creating user ft_ml_poweruser_spaces
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_spaces
[00:00:00]             │ debg creating user ft_ml_poweruser_space1
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser_space1]
[00:00:00]             │ debg created user ft_ml_poweruser_space1
[00:00:00]             │ debg creating user ft_ml_poweruser_all_spaces
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser_all_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]             │ debg creating user ft_ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer]
[00:00:00]             │ debg created user ft_ml_viewer
[00:00:00]             │ debg creating user ft_ml_viewer_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer_spaces]
[00:00:01]             │ debg created user ft_ml_viewer_spaces
[00:00:01]             │ debg creating user ft_ml_viewer_space1
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer_space1]
[00:00:01]             │ debg created user ft_ml_viewer_space1
[00:00:01]             │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer_all_spaces]
[00:00:01]             │ debg created user ft_ml_viewer_all_spaces
[00:00:01]             │ debg creating user ft_ml_unauthorized
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_unauthorized]
[00:00:01]             │ debg created user ft_ml_unauthorized
[00:00:01]             │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_unauthorized_spaces]
[00:00:01]             │ debg created user ft_ml_unauthorized_spaces
[00:00:01]           └-: anomaly detection alert
[00:00:01]             └-> "before all" hook in "anomaly detection alert"
[00:00:01]             └-> "before all" hook in "anomaly detection alert"
[00:00:01]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Loading "mappings.json"
[00:00:01]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Loading "data.json.gz"
[00:00:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ft_ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:00:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[ft_ecommerce][0]]])." previous.health="YELLOW" reason="shards started [[ft_ecommerce][0]]"
[00:00:01]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Created index "ft_ecommerce"
[00:00:01]               │ debg [x-pack/test/functional/es_archives/ml/ecommerce] "ft_ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:04]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Indexed 4675 docs into "ft_ecommerce"
[00:00:04]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:04]               │ debg  > Not found
[00:00:04]               │ debg Creating index pattern with title 'ft_ecommerce' and time field 'order_date'
[00:00:04]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.kibana_8.0.0_001/gxJffav_TQWAYPFwwrZG5A] update_mapping [_doc]
[00:00:04]               │ debg Waiting up to 5000ms for index-pattern with title 'ft_ecommerce' to exist...
[00:00:04]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:05]               │ debg  > Found 'b63a7250-de6c-11eb-8f13-69a1f31b9c61'
[00:00:05]               │ debg  > Created with id 'b63a7250-de6c-11eb-8f13-69a1f31b9c61'
[00:00:05]               │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:00:06]               │ debg SecurityPage.forceLogout
[00:00:06]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:06]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:06]               │ debg Redirecting to /logout to force the logout
[00:00:06]               │ debg Waiting on the login form to appear
[00:00:06]               │ debg Waiting for Login Page to appear.
[00:00:06]               │ debg Waiting up to 100000ms for login page...
[00:00:06]               │ debg browser[INFO] http://localhost:6171/logout?_t=1625584408335 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:06]               │
[00:00:06]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:06]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:09]               │ERROR browser[SEVERE] http://localhost:6171/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:09]               │ debg browser[INFO] http://localhost:6171/43378/bundles/core/core.entry.js 12:153802 "Detected an unhandled Promise rejection.
[00:00:09]               │      Error: Unauthorized"
[00:00:09]               │ERROR browser[SEVERE] http://localhost:6171/43378/bundles/core/core.entry.js 5:2514 
[00:00:09]               │ debg browser[INFO] http://localhost:6171/login?msg=LOGGED_OUT 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:09]               │
[00:00:09]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:09]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:10]               │ERROR browser[SEVERE] http://localhost:6171/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:10]               │ debg browser[INFO] http://localhost:6171/43378/bundles/core/core.entry.js 12:153802 "Detected an unhandled Promise rejection.
[00:00:10]               │      Error: Unauthorized"
[00:00:10]               │ERROR browser[SEVERE] http://localhost:6171/43378/bundles/core/core.entry.js 5:2514 
[00:00:10]               │ERROR browser[SEVERE] http://localhost:6171/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:10]               │ debg TestSubjects.exists(loginForm)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:10]               │ debg Waiting for Login Form to appear.
[00:00:10]               │ debg Waiting up to 100000ms for login form...
[00:00:10]               │ debg TestSubjects.exists(loginForm)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:10]               │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:00:10]               │ debg TestSubjects.click(loginUsername)
[00:00:10]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:10]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:11]               │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:00:11]               │ debg TestSubjects.click(loginPassword)
[00:00:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:11]               │ debg TestSubjects.click(loginSubmit)
[00:00:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:11]               │ debg Waiting for login result, expected: chrome.
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .kbnAppWrapper:not(.kbnAppWrapper--hiddenChrome)') with timeout=20000
[00:00:11]               │ proc [kibana]   log   [15:13:32.970] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:15]               │ debg browser[INFO] http://localhost:6171/app/home 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:15]               │
[00:00:15]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:15]               │ debg Finished login process currentUrl = http://localhost:6171/app/home#/
[00:00:15]               │ debg Waiting up to 20000ms for logout button visible...
[00:00:15]               │ debg TestSubjects.exists(userMenuButton)
[00:00:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:15]               │ERROR browser[SEVERE] http://localhost:6171/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:15]               │ debg TestSubjects.exists(userMenu)
[00:00:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:18]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:00:18]               │ debg TestSubjects.click(userMenuButton)
[00:00:18]               │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:18]               │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:18]               │ debg TestSubjects.exists(userMenu)
[00:00:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:00:18]               │ debg TestSubjects.exists(userMenu > logoutLink)
[00:00:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:00:18]               │ debg Creating anomaly detection job with id 'ec-high_sum_total_sales_1625584420442' ...
[00:00:18]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:18]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]])." previous.health="YELLOW" reason="shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]"
[00:00:19]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared/hdxGLUr9RQqyiaCTwitOjg] update_mapping [_doc]
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]])." previous.health="YELLOW" reason="shards started [[.ml-config][0]]"
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-notifications-000002] creating index, cause [auto(bulk api)], templates [.ml-notifications-000002], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-notifications-000002]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-notifications-000002][0]]])." previous.health="YELLOW" reason="shards started [[.ml-notifications-000002][0]]"
[00:00:19]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.kibana_8.0.0_001/gxJffav_TQWAYPFwwrZG5A] update_mapping [_doc]
[00:00:20]               │ debg Waiting up to 5000ms for 'ec-high_sum_total_sales_1625584420442' to exist...
[00:00:20]               │ debg > AD job created.
[00:00:20]               │ debg Opening anomaly detection job 'ec-high_sum_total_sales_1625584420442'...
[00:00:20]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] Opening job [ec-high_sum_total_sales_1625584420442]
[00:00:20]               │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:00:20]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-state-000001][0]]])." previous.health="YELLOW" reason="shards started [[.ml-state-000001][0]]"
[00:00:20]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:00:20]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625584420442] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:00:20]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ml-size-based-ilm-policy]
[00:00:20]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:00:20]               │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625584420442] [autodetect/161875] [CResourceMonitor.cc@77] Setting model memory limit to 13 MB
[00:00:20]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] Successfully set job state to [opened] for job [ec-high_sum_total_sales_1625584420442]
[00:00:20]               │ debg > AD job opened.
[00:00:20]               │ debg Creating datafeed with id 'datafeed-ec-high_sum_total_sales_1625584420442' ...
[00:00:21]               │ debg Waiting up to 5000ms for 'datafeed-ec-high_sum_total_sales_1625584420442' to exist...
[00:00:21]               │ debg > Datafeed created.
[00:00:21]               │ debg Starting datafeed 'datafeed-ec-high_sum_total_sales_1625584420442' with start: '0', end: 'undefined'...
[00:00:21]               │ debg > Datafeed started.
[00:00:21]               │ debg Waiting up to 120000ms for datafeed state to be started...
[00:00:21]               │ debg Fetching datafeed state for datafeed datafeed-ec-high_sum_total_sales_1625584420442
[00:00:21]               │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625584420442] Datafeed started (from: 1970-01-01T00:00:00.000Z to: real-time) with frequency [600000ms]
[00:00:21]               │ debg Waiting up to 30000ms for results for job ec-high_sum_total_sales_1625584420442 to exist...
[00:00:21]               │ debg --- retry.waitForWithTimeout error: expected results for job 'ec-high_sum_total_sales_1625584420442' to exist
[00:00:21]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared/hdxGLUr9RQqyiaCTwitOjg] update_mapping [_doc]
[00:00:21]             └-: overview page alert flyout controls
[00:00:21]               └-> "before all" hook for "can create an anomaly detection alert"
[00:00:21]               └-> can create an anomaly detection alert
[00:00:21]                 └-> "before each" hook: global before each for "can create an anomaly detection alert"
[00:00:21]                 │ debg navigating to triggersActions url: http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:21]                 │ debg navigate to: http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:22]                 │ debg browser[INFO] http://localhost:6171/app/management/insightsAndAlerting/triggersActions?_t=1625584423495 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:22]                 │
[00:00:22]                 │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:22]                 │ debg ... sleep(700) start
[00:00:22]                 │ debg ... sleep(700) end
[00:00:22]                 │ debg returned from get, calling refresh
[00:00:23]                 │ debg browser[INFO] http://localhost:6171/app/management/insightsAndAlerting/triggersActions?_t=1625584423495 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:23]                 │
[00:00:23]                 │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                 │ debg currentUrl = http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:23]                 │          appUrl = http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:23]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:23]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:24]                 │ debg ... sleep(501) start
[00:00:24]                 │ERROR browser[SEVERE] http://localhost:6171/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:24]                 │ debg ... sleep(501) end
[00:00:24]                 │ debg in navigateTo url = http://localhost:6171/app/management/insightsAndAlerting/triggersActions/rules
[00:00:24]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:00:25]                 │ debg ... sleep(501) start
[00:00:25]                 │ debg ... sleep(501) end
[00:00:25]                 │ debg in navigateTo url = http://localhost:6171/app/management/insightsAndAlerting/triggersActions/rules
[00:00:25]                 │ debg TestSubjects.click(rulesTab)
[00:00:25]                 │ debg Find.clickByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:25]                 │ debg Find.findByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:25]                 │ debg TestSubjects.exists(alertsList)
[00:00:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="alertsList"]') with timeout=120000
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625584420442] [autodetect/161875] [CAnomalyJob.cc@1578] Pruning all models
[00:00:25]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625584420442] Lookback has finished
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625584420442] [autodetect/161875] [CAnomalyJob.cc@1119] Background persist starting data copy
[00:00:25]                 │ debg Find.findByCssSelector('[data-test-subj="createAlertButton"],[data-test-subj="createFirstAlertButton"]') with timeout=10000
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625584420442] [autodetect/161875] [CPersistenceManager.cc@266] Background persist starting background thread
[00:00:25]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared/hdxGLUr9RQqyiaCTwitOjg] update_mapping [_doc]
[00:00:27]                 │ debg TestSubjects.click(xpack.ml.anomaly_detection_alert-SelectOption)
[00:00:27]                 │ debg Find.clickByCssSelector('[data-test-subj="xpack.ml.anomaly_detection_alert-SelectOption"]') with timeout=10000
[00:00:27]                 │ debg Find.findByCssSelector('[data-test-subj="xpack.ml.anomaly_detection_alert-SelectOption"]') with timeout=10000
[00:00:27]                 │ debg TestSubjects.exists(mlAnomalyAlertForm)
[00:00:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertForm"]') with timeout=120000
[00:00:28]                 │ debg === TEST STEP === should have correct default values
[00:00:28]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:28]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:28]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:28]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:28]                 │ debg === TEST STEP === should complete the alert params
[00:00:28]                 │ debg comboBox.set, comboBoxSelector: mlAnomalyAlertJobSelection > comboBoxInput
[00:00:28]                 │ debg TestSubjects.find(mlAnomalyAlertJobSelection > comboBoxInput)
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertJobSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:00:28]                 │ debg comboBox.setElement, value: ec-high_sum_total_sales_1625584420442
[00:00:28]                 │ debg comboBox.isOptionSelected, value: ec-high_sum_total_sales_1625584420442
[00:00:30]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:30]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="ec-high_sum_total_sales_1625584420442"]') with timeout=2500
[00:00:30]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:33]                 │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:00:33]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlAnomalyAlertJobSelection > comboBoxInput
[00:00:33]                 │ debg TestSubjects.find(mlAnomalyAlertJobSelection > comboBoxInput)
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertJobSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:00:33]                 │ debg TestSubjects.click(mlAnomalyAlertResult_record)
[00:00:33]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertResult_record"]') with timeout=10000
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertResult_record"]') with timeout=10000
[00:00:34]                 │ debg TestSubjects.exists(mlAnomalyAlertResult_record_selected)
[00:00:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertResult_record_selected"]') with timeout=120000
[00:00:34]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:34]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 75
[00:00:34]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:34]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:34]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '65')
[00:00:35]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 65
[00:00:35]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:35]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:35]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '55')
[00:00:36]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 55
[00:00:36]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:36]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:36]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:36]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '45')
[00:00:37]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 45
[00:00:37]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:37]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:37]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:37]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '35')
[00:00:38]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 35
[00:00:38]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:38]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:38]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:38]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '25')
[00:00:39]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 25
[00:00:39]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:39]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:39]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '15')
[00:00:40]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 15
[00:00:41]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:41]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:41]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:41]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '14')
[00:00:41]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 14
[00:00:42]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:42]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:42]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:42]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '13')
[00:00:42]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 13
[00:00:43]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:43]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:43]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:43]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '12')
[00:00:43]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 12
[00:00:44]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:44]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:44]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:44]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '11')
[00:00:44]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 11
[00:00:45]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:45]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:45]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:45]                 │ debg === TEST STEP === should populate advanced settings with default values
[00:00:45]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:45]                 │ debg --- retry.tryForTime error: #mlAnomalyAlertAdvancedSettings is not displayed
[00:00:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:47]                 │ debg TestSubjects.click(mlAnomalyAlertAdvancedSettingsTrigger)
[00:00:47]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertAdvancedSettingsTrigger"]') with timeout=10000
[00:00:47]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertAdvancedSettingsTrigger"]') with timeout=10000
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:48]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertTopNBuckets, value, tryTimeout=120000, findTimeout=10000)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertTopNBuckets)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertTopNBuckets"]') with timeout=10000
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:48]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertLookbackInterval, value, tryTimeout=120000, findTimeout=10000)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertLookbackInterval)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertLookbackInterval"]') with timeout=10000
[00:00:48]                 │ debg === TEST STEP === should preview the alert condition
[00:00:48]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.setValue(mlAnomalyAlertPreviewInterval, 2y)
[00:00:48]                 │ debg TestSubjects.click(mlAnomalyAlertPreviewInterval)
[00:00:48]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertPreviewInterval, value, tryTimeout=120000, findTimeout=10000)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewInterval)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.click(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.exists(mlAnomalyAlertPreviewCallout)
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertPreviewCallout"]') with timeout=120000
[00:00:50]                 │ debg --- retry.tryForTime error: [data-test-subj="mlAnomalyAlertPreviewCallout"] is not displayed
[00:00:53]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:57]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:00]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:03]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:06]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:09]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:12]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:15]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:18]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:21]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:24]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:27]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:30]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:33]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:36]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:39]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:42]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:48]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:51]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:54]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:57]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:01]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:04]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:07]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:10]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:13]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:16]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:19]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:22]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:25]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:28]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:31]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:34]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:37]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:40]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:43]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:49]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:50]                 │ debg --- retry.tryForTime error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:50]                 │ info Taking screenshot "/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/screenshots/failure/ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert.png"
[00:02:51]                 │ info Current URL is: http://localhost:6171/app/management/insightsAndAlerting/triggersActions/rules
[00:02:51]                 │ info Saving page source to: /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/failure_debug/html/ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert.html
[00:02:51]                 └- ✖ fail: ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert
[00:02:51]                 │      retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:51]                 │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:02:51]                 │     at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
[00:02:51]                 │     at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:02:51]                 │     at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:02:51]                 │     at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
[00:02:51]                 │     at Object.assertPreviewCalloutVisible (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │     at Object.clickPreviewButton (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │     at Object.checkPreview (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │     at Context.<anonymous> (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │     at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │   Error: retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:51]                 │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:02:51]                 │       at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
[00:02:51]                 │       at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:02:51]                 │       at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:02:51]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
[00:02:51]                 │       at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │       at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │       at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │       at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │       at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:02:51]                 │       at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:02:51]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
[00:02:51]                 │       at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │       at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │       at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │       at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │ 
[00:02:51]                 │ 

Stack Trace

Error: retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
    at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
    at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
    at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
    at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
    at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
    at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
    at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
    at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
    at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/ml/alert_flyout·ts.ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 9 times on tracked branches: https://github.com/elastic/kibana/issues/102012

[00:00:00]       │
[00:00:00]         └-: ML app
[00:00:00]           └-> "before all" hook in "ML app"
[00:00:00]           └-> "before all" hook in "ML app"
[00:00:00]             │ debg creating role ft_ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_source]
[00:00:00]             │ debg creating role ft_ml_source_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_source_readonly]
[00:00:00]             │ debg creating role ft_ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_dest]
[00:00:00]             │ debg creating role ft_ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_dest_readonly]
[00:00:00]             │ debg creating role ft_ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_ml_ui_extras]
[00:00:00]             │ debg creating role ft_default_space_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space_ml_all]
[00:00:00]             │ debg creating role ft_default_space1_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space1_ml_all]
[00:00:00]             │ debg creating role ft_all_spaces_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_all_spaces_ml_all]
[00:00:00]             │ debg creating role ft_default_space_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space_ml_read]
[00:00:00]             │ debg creating role ft_default_space1_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space1_ml_read]
[00:00:00]             │ debg creating role ft_all_spaces_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_all_spaces_ml_read]
[00:00:00]             │ debg creating role ft_default_space_ml_none
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added role [ft_default_space_ml_none]
[00:00:00]             │ debg creating user ft_ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser]
[00:00:00]             │ debg created user ft_ml_poweruser
[00:00:00]             │ debg creating user ft_ml_poweruser_spaces
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_spaces
[00:00:00]             │ debg creating user ft_ml_poweruser_space1
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser_space1]
[00:00:00]             │ debg created user ft_ml_poweruser_space1
[00:00:00]             │ debg creating user ft_ml_poweruser_all_spaces
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_poweruser_all_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]             │ debg creating user ft_ml_viewer
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer]
[00:00:01]             │ debg created user ft_ml_viewer
[00:00:01]             │ debg creating user ft_ml_viewer_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer_spaces]
[00:00:01]             │ debg created user ft_ml_viewer_spaces
[00:00:01]             │ debg creating user ft_ml_viewer_space1
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer_space1]
[00:00:01]             │ debg created user ft_ml_viewer_space1
[00:00:01]             │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_viewer_all_spaces]
[00:00:01]             │ debg created user ft_ml_viewer_all_spaces
[00:00:01]             │ debg creating user ft_ml_unauthorized
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_unauthorized]
[00:00:01]             │ debg created user ft_ml_unauthorized
[00:00:01]             │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] added user [ft_ml_unauthorized_spaces]
[00:00:01]             │ debg created user ft_ml_unauthorized_spaces
[00:00:01]           └-: anomaly detection alert
[00:00:01]             └-> "before all" hook in "anomaly detection alert"
[00:00:01]             └-> "before all" hook in "anomaly detection alert"
[00:00:01]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Loading "mappings.json"
[00:00:01]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Loading "data.json.gz"
[00:00:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ft_ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:00:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[ft_ecommerce][0]]])." previous.health="YELLOW" reason="shards started [[ft_ecommerce][0]]"
[00:00:01]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Created index "ft_ecommerce"
[00:00:01]               │ debg [x-pack/test/functional/es_archives/ml/ecommerce] "ft_ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:04]               │ info [x-pack/test/functional/es_archives/ml/ecommerce] Indexed 4675 docs into "ft_ecommerce"
[00:00:04]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:04]               │ debg  > Not found
[00:00:04]               │ debg Creating index pattern with title 'ft_ecommerce' and time field 'order_date'
[00:00:04]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.kibana_8.0.0_001/Z6jTZZbeTWS6FDqc32PD7Q] update_mapping [_doc]
[00:00:04]               │ debg Waiting up to 5000ms for index-pattern with title 'ft_ecommerce' to exist...
[00:00:04]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:05]               │ debg  > Found 'c7448bf0-de6a-11eb-9a48-4d0a4e68c4f2'
[00:00:05]               │ debg  > Created with id 'c7448bf0-de6a-11eb-9a48-4d0a4e68c4f2'
[00:00:05]               │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:00:06]               │ debg SecurityPage.forceLogout
[00:00:06]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:06]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:06]               │ debg Redirecting to /logout to force the logout
[00:00:06]               │ debg Waiting on the login form to appear
[00:00:06]               │ debg Waiting for Login Page to appear.
[00:00:06]               │ debg Waiting up to 100000ms for login page...
[00:00:06]               │ debg browser[INFO] http://localhost:6171/logout?_t=1625583577632 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:06]               │
[00:00:06]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:06]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:09]               │ERROR browser[SEVERE] http://localhost:6171/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:09]               │ debg browser[INFO] http://localhost:6171/43378/bundles/core/core.entry.js 12:153802 "Detected an unhandled Promise rejection.
[00:00:09]               │      Error: Unauthorized"
[00:00:09]               │ERROR browser[SEVERE] http://localhost:6171/43378/bundles/core/core.entry.js 5:2514 
[00:00:09]               │ debg browser[INFO] http://localhost:6171/login?msg=LOGGED_OUT 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:09]               │
[00:00:09]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:09]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:10]               │ERROR browser[SEVERE] http://localhost:6171/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:10]               │ debg browser[INFO] http://localhost:6171/43378/bundles/core/core.entry.js 12:153802 "Detected an unhandled Promise rejection.
[00:00:10]               │      Error: Unauthorized"
[00:00:10]               │ERROR browser[SEVERE] http://localhost:6171/43378/bundles/core/core.entry.js 5:2514 
[00:00:10]               │ERROR browser[SEVERE] http://localhost:6171/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:10]               │ debg TestSubjects.exists(loginForm)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:10]               │ debg Waiting for Login Form to appear.
[00:00:10]               │ debg Waiting up to 100000ms for login form...
[00:00:10]               │ debg TestSubjects.exists(loginForm)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:10]               │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:00:10]               │ debg TestSubjects.click(loginUsername)
[00:00:10]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:10]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:11]               │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:00:11]               │ debg TestSubjects.click(loginPassword)
[00:00:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:11]               │ debg TestSubjects.click(loginSubmit)
[00:00:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:11]               │ debg Waiting for login result, expected: chrome.
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .kbnAppWrapper:not(.kbnAppWrapper--hiddenChrome)') with timeout=20000
[00:00:11]               │ proc [kibana]   log   [14:59:42.233] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:15]               │ debg browser[INFO] http://localhost:6171/app/home 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:15]               │
[00:00:15]               │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:15]               │ debg Finished login process currentUrl = http://localhost:6171/app/home#/
[00:00:15]               │ debg Waiting up to 20000ms for logout button visible...
[00:00:15]               │ debg TestSubjects.exists(userMenuButton)
[00:00:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:15]               │ERROR browser[SEVERE] http://localhost:6171/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:15]               │ debg TestSubjects.exists(userMenu)
[00:00:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:18]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:00:18]               │ debg TestSubjects.click(userMenuButton)
[00:00:18]               │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:18]               │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:18]               │ debg TestSubjects.exists(userMenu)
[00:00:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:00:18]               │ debg TestSubjects.exists(userMenu > logoutLink)
[00:00:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:00:18]               │ debg Creating anomaly detection job with id 'ec-high_sum_total_sales_1625583589903' ...
[00:00:18]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]])." previous.health="YELLOW" reason="shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]"
[00:00:19]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared/k0pOEjXCTi6fy9AVY-OoHw] update_mapping [_doc]
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]])." previous.health="YELLOW" reason="shards started [[.ml-config][0]]"
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-notifications-000002] creating index, cause [auto(bulk api)], templates [.ml-notifications-000002], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-notifications-000002]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-notifications-000002][0]]])." previous.health="YELLOW" reason="shards started [[.ml-notifications-000002][0]]"
[00:00:19]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.kibana_8.0.0_001/Z6jTZZbeTWS6FDqc32PD7Q] update_mapping [_doc]
[00:00:20]               │ debg Waiting up to 5000ms for 'ec-high_sum_total_sales_1625583589903' to exist...
[00:00:20]               │ debg > AD job created.
[00:00:20]               │ debg Opening anomaly detection job 'ec-high_sum_total_sales_1625583589903'...
[00:00:20]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] Opening job [ec-high_sum_total_sales_1625583589903]
[00:00:20]               │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:00:20]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-state-000001][0]]])." previous.health="YELLOW" reason="shards started [[.ml-state-000001][0]]"
[00:00:20]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:00:20]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625583589903] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:00:20]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ml-size-based-ilm-policy]
[00:00:20]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:00:20]               │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625583589903] [autodetect/126764] [CResourceMonitor.cc@77] Setting model memory limit to 13 MB
[00:00:20]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] Successfully set job state to [opened] for job [ec-high_sum_total_sales_1625583589903]
[00:00:20]               │ debg > AD job opened.
[00:00:20]               │ debg Creating datafeed with id 'datafeed-ec-high_sum_total_sales_1625583589903' ...
[00:00:21]               │ debg Waiting up to 5000ms for 'datafeed-ec-high_sum_total_sales_1625583589903' to exist...
[00:00:21]               │ debg > Datafeed created.
[00:00:21]               │ debg Starting datafeed 'datafeed-ec-high_sum_total_sales_1625583589903' with start: '0', end: 'undefined'...
[00:00:21]               │ debg > Datafeed started.
[00:00:21]               │ debg Waiting up to 120000ms for datafeed state to be started...
[00:00:21]               │ debg Fetching datafeed state for datafeed datafeed-ec-high_sum_total_sales_1625583589903
[00:00:21]               │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625583589903] Datafeed started (from: 1970-01-01T00:00:00.000Z to: real-time) with frequency [600000ms]
[00:00:21]               │ debg Waiting up to 30000ms for results for job ec-high_sum_total_sales_1625583589903 to exist...
[00:00:21]               │ debg --- retry.waitForWithTimeout error: expected results for job 'ec-high_sum_total_sales_1625583589903' to exist
[00:00:21]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared/k0pOEjXCTi6fy9AVY-OoHw] update_mapping [_doc]
[00:00:21]             └-: overview page alert flyout controls
[00:00:21]               └-> "before all" hook for "can create an anomaly detection alert"
[00:00:21]               └-> can create an anomaly detection alert
[00:00:21]                 └-> "before each" hook: global before each for "can create an anomaly detection alert"
[00:00:21]                 │ debg navigating to triggersActions url: http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:21]                 │ debg navigate to: http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:21]                 │ debg browser[INFO] http://localhost:6171/app/management/insightsAndAlerting/triggersActions?_t=1625583592796 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:21]                 │
[00:00:21]                 │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:22]                 │ debg ... sleep(700) start
[00:00:22]                 │ debg ... sleep(700) end
[00:00:22]                 │ debg returned from get, calling refresh
[00:00:23]                 │ debg browser[INFO] http://localhost:6171/app/management/insightsAndAlerting/triggersActions?_t=1625583592796 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:23]                 │
[00:00:23]                 │ debg browser[INFO] http://localhost:6171/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                 │ debg currentUrl = http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:23]                 │          appUrl = http://localhost:6171/app/management/insightsAndAlerting/triggersActions
[00:00:23]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:23]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:24]                 │ debg ... sleep(501) start
[00:00:24]                 │ERROR browser[SEVERE] http://localhost:6171/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:24]                 │ debg ... sleep(501) end
[00:00:24]                 │ debg in navigateTo url = http://localhost:6171/app/management/insightsAndAlerting/triggersActions/rules
[00:00:24]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:00:25]                 │ debg ... sleep(501) start
[00:00:25]                 │ debg ... sleep(501) end
[00:00:25]                 │ debg in navigateTo url = http://localhost:6171/app/management/insightsAndAlerting/triggersActions/rules
[00:00:25]                 │ debg TestSubjects.click(rulesTab)
[00:00:25]                 │ debg Find.clickByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:25]                 │ debg Find.findByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:25]                 │ debg TestSubjects.exists(alertsList)
[00:00:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="alertsList"]') with timeout=120000
[00:00:25]                 │ debg Find.findByCssSelector('[data-test-subj="createAlertButton"],[data-test-subj="createFirstAlertButton"]') with timeout=10000
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625583589903] [autodetect/126764] [CAnomalyJob.cc@1578] Pruning all models
[00:00:25]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625583589903] Lookback has finished
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625583589903] [autodetect/126764] [CAnomalyJob.cc@1119] Background persist starting data copy
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [ec-high_sum_total_sales_1625583589903] [autodetect/126764] [CPersistenceManager.cc@266] Background persist starting background thread
[00:00:25]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1625580824650981858] [.ml-anomalies-shared/k0pOEjXCTi6fy9AVY-OoHw] update_mapping [_doc]
[00:00:27]                 │ debg TestSubjects.click(xpack.ml.anomaly_detection_alert-SelectOption)
[00:00:27]                 │ debg Find.clickByCssSelector('[data-test-subj="xpack.ml.anomaly_detection_alert-SelectOption"]') with timeout=10000
[00:00:27]                 │ debg Find.findByCssSelector('[data-test-subj="xpack.ml.anomaly_detection_alert-SelectOption"]') with timeout=10000
[00:00:27]                 │ debg TestSubjects.exists(mlAnomalyAlertForm)
[00:00:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertForm"]') with timeout=120000
[00:00:28]                 │ debg === TEST STEP === should have correct default values
[00:00:28]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:28]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:28]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:28]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:28]                 │ debg === TEST STEP === should complete the alert params
[00:00:28]                 │ debg comboBox.set, comboBoxSelector: mlAnomalyAlertJobSelection > comboBoxInput
[00:00:28]                 │ debg TestSubjects.find(mlAnomalyAlertJobSelection > comboBoxInput)
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertJobSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:00:28]                 │ debg comboBox.setElement, value: ec-high_sum_total_sales_1625583589903
[00:00:28]                 │ debg comboBox.isOptionSelected, value: ec-high_sum_total_sales_1625583589903
[00:00:30]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:30]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="ec-high_sum_total_sales_1625583589903"]') with timeout=2500
[00:00:30]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:33]                 │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:00:33]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlAnomalyAlertJobSelection > comboBoxInput
[00:00:33]                 │ debg TestSubjects.find(mlAnomalyAlertJobSelection > comboBoxInput)
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertJobSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:00:33]                 │ debg TestSubjects.click(mlAnomalyAlertResult_record)
[00:00:33]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertResult_record"]') with timeout=10000
[00:00:33]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertResult_record"]') with timeout=10000
[00:00:34]                 │ debg TestSubjects.exists(mlAnomalyAlertResult_record_selected)
[00:00:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertResult_record_selected"]') with timeout=120000
[00:00:34]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:34]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 75
[00:00:34]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:34]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:34]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '65')
[00:00:35]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 65
[00:00:35]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:35]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:35]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '55')
[00:00:36]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 55
[00:00:36]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:36]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:36]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:36]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '45')
[00:00:37]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 45
[00:00:37]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:37]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:37]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:37]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '35')
[00:00:38]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 35
[00:00:38]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:38]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:38]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:38]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '25')
[00:00:39]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 25
[00:00:40]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:40]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:40]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:40]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '15')
[00:00:40]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 15
[00:00:41]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:41]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:41]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:41]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '14')
[00:00:41]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 14
[00:00:42]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:42]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:42]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:42]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '13')
[00:00:42]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 13
[00:00:43]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:43]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:43]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:43]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '12')
[00:00:43]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 12
[00:00:44]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:44]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:44]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:44]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '11')
[00:00:44]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 11
[00:00:45]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:45]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:45]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:45]                 │ debg === TEST STEP === should populate advanced settings with default values
[00:00:45]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:45]                 │ debg --- retry.tryForTime error: #mlAnomalyAlertAdvancedSettings is not displayed
[00:00:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:47]                 │ debg TestSubjects.click(mlAnomalyAlertAdvancedSettingsTrigger)
[00:00:47]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertAdvancedSettingsTrigger"]') with timeout=10000
[00:00:47]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertAdvancedSettingsTrigger"]') with timeout=10000
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:48]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertTopNBuckets, value, tryTimeout=120000, findTimeout=10000)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertTopNBuckets)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertTopNBuckets"]') with timeout=10000
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:48]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertLookbackInterval, value, tryTimeout=120000, findTimeout=10000)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertLookbackInterval)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertLookbackInterval"]') with timeout=10000
[00:00:48]                 │ debg === TEST STEP === should preview the alert condition
[00:00:48]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.setValue(mlAnomalyAlertPreviewInterval, 2y)
[00:00:48]                 │ debg TestSubjects.click(mlAnomalyAlertPreviewInterval)
[00:00:48]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertPreviewInterval, value, tryTimeout=120000, findTimeout=10000)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewInterval)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.click(mlAnomalyAlertPreviewButton)
[00:00:48]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:48]                 │ debg TestSubjects.exists(mlAnomalyAlertPreviewCallout)
[00:00:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertPreviewCallout"]') with timeout=120000
[00:00:51]                 │ debg --- retry.tryForTime error: [data-test-subj="mlAnomalyAlertPreviewCallout"] is not displayed
[00:00:54]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:57]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:00]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:03]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:06]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:09]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:12]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:15]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:18]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:21]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:24]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:27]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:30]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:33]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:36]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:39]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:42]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:48]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:51]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:55]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:58]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:01]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:04]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:07]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:10]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:13]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:16]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:19]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:22]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:25]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:28]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:31]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:34]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:37]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:40]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:43]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:49]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:50]                 │ debg --- retry.tryForTime error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:50]                 │ info Taking screenshot "/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/screenshots/failure/ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert.png"
[00:02:51]                 │ info Current URL is: http://localhost:6171/app/management/insightsAndAlerting/triggersActions/rules
[00:02:51]                 │ info Saving page source to: /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/failure_debug/html/ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert.html
[00:02:51]                 └- ✖ fail: ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert
[00:02:51]                 │      retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:51]                 │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:02:51]                 │     at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
[00:02:51]                 │     at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:02:51]                 │     at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:02:51]                 │     at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
[00:02:51]                 │     at Object.assertPreviewCalloutVisible (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │     at Object.clickPreviewButton (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │     at Object.checkPreview (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │     at Context.<anonymous> (/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │     at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │   Error: retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:51]                 │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:02:51]                 │       at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
[00:02:51]                 │       at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:02:51]                 │       at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:02:51]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
[00:02:51]                 │       at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │       at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │       at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │       at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │       at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:02:51]                 │       at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:02:51]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
[00:02:51]                 │       at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │       at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │       at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │       at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │ 
[00:02:51]                 │ 

Stack Trace

Error: retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/7/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
    at runAttempt (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
    at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
    at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
    at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
    at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/7/kibana/test/common/services/retry/retry.ts:22:12)
    at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
    at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
    at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
    at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/management/index_lifecycle_management/policies·js.apis management index lifecycle management policies list should have a default policy to manage the Watcher history indices

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/41237

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:05:33]           └-: management
[00:05:33]             └-> "before all" hook in "management"
[00:05:55]             └-: index lifecycle management
[00:05:55]               └-> "before all" hook in "index lifecycle management"
[00:05:55]               └-: policies
[00:05:55]                 └-> "before all" hook in "policies"
[00:05:55]                 └-: list
[00:05:55]                   └-> "before all" hook for "should have a default policy to manage the Watcher history indices"
[00:05:55]                   └-> should have a default policy to manage the Watcher history indices
[00:05:55]                     └-> "before each" hook: global before each for "should have a default policy to manage the Watcher history indices"
[00:05:55]                     └- ✖ fail: apis management index lifecycle management policies list should have a default policy to manage the Watcher history indices
[00:05:55]                     │       Error: expected { version: 1,
[00:05:55]                     │   modified_date: '2019-04-30T14:30:00.000Z',
[00:05:55]                     │   policy: { phases: { delete: [Object] } },
[00:05:55]                     │   in_use_by: 
[00:05:55]                     │    { indices: [],
[00:05:55]                     │      data_streams: [],
[00:05:55]                     │      composable_templates: [ '.watch-history-14' ] },
[00:05:55]                     │   name: 'watch-history-ilm-policy' } to sort of equal { version: 1,
[00:05:55]                     │   modified_date: '2019-04-30T14:30:00.000Z',
[00:05:55]                     │   policy: { phases: { delete: [Object] } },
[00:05:55]                     │   name: 'watch-history-ilm-policy' }
[00:05:55]                     │       + expected - actual
[00:05:55]                     │ 
[00:05:55]                     │        {
[00:05:55]                     │       -  "in_use_by": {
[00:05:55]                     │       -    "composable_templates": [
[00:05:55]                     │       -      ".watch-history-14"
[00:05:55]                     │       -    ]
[00:05:55]                     │       -    "data_streams": []
[00:05:55]                     │       -    "indices": []
[00:05:55]                     │       -  }
[00:05:55]                     │          "modified_date": "2019-04-30T14:30:00.000Z"
[00:05:55]                     │          "name": "watch-history-ilm-policy"
[00:05:55]                     │          "policy": {
[00:05:55]                     │            "phases": {
[00:05:55]                     │       
[00:05:55]                     │       at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:05:55]                     │       at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:05:55]                     │       at Context.<anonymous> (test/api_integration/apis/management/index_lifecycle_management/policies.js:50:27)
[00:05:55]                     │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:05:55]                     │ 
[00:05:55]                     │ 

Stack Trace

Error: expected { version: 1,
  modified_date: '2019-04-30T14:30:00.000Z',
  policy: { phases: { delete: [Object] } },
  in_use_by: 
   { indices: [],
     data_streams: [],
     composable_templates: [ '.watch-history-14' ] },
  name: 'watch-history-ilm-policy' } to sort of equal { version: 1,
  modified_date: '2019-04-30T14:30:00.000Z',
  policy: { phases: { delete: [Object] } },
  name: 'watch-history-ilm-policy' }
    at Assertion.assert (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/management/index_lifecycle_management/policies.js:50:27)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '{\n' +
    '  "in_use_by": {\n' +
    '    "composable_templates": [\n' +
    '      ".watch-history-14"\n' +
    '    ]\n' +
    '    "data_streams": []\n' +
    '    "indices": []\n' +
    '  }\n' +
    '  "modified_date": "2019-04-30T14:30:00.000Z"\n' +
    '  "name": "watch-history-ilm-policy"\n' +
    '  "policy": {\n' +
    '    "phases": {\n' +
    '      "delete": {\n' +
    '        "actions": {\n' +
    '          "delete": {\n' +
    '            "delete_searchable_snapshot": true\n' +
    '          }\n' +
    '        }\n' +
    '        "min_age": "7d"\n' +
    '      }\n' +
    '    }\n' +
    '  }\n' +
    '  "version": 1\n' +
    '}',
  expected: '{\n' +
    '  "modified_date": "2019-04-30T14:30:00.000Z"\n' +
    '  "name": "watch-history-ilm-policy"\n' +
    '  "policy": {\n' +
    '    "phases": {\n' +
    '      "delete": {\n' +
    '        "actions": {\n' +
    '          "delete": {\n' +
    '            "delete_searchable_snapshot": true\n' +
    '          }\n' +
    '        }\n' +
    '        "min_age": "7d"\n' +
    '      }\n' +
    '    }\n' +
    '  }\n' +
    '  "version": 1\n' +
    '}',
  showDiff: true
}

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
ml 1691 1696 +5

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 5.8MB 5.9MB +23.4KB

History

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

cc @alvarezmelissa87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Anomaly Detection ML anomaly detection :ml release_note:feature Makes this part of the condensed release notes v7.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants