[ML] Re-enable flaky Data visualizer tests (#137117) (#137467)

* [ML] Unksip tests attempt 2

* Test prob < 1e7 docs

* Unskip data view management tests

(cherry picked from commit 64666cf314)

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2022-07-28 11:57:26 -04:00 committed by GitHub
parent d5b92593b1
commit 3062f7ca16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 13 deletions

View file

@ -171,7 +171,11 @@ export const getDocumentCountStats = async (
// If the number of docs sampled is indicative of query with < 10 million docs
// proceed to make a vanilla aggregation without any sampling
if (numSampled === 0 || newProbability === Infinity) {
if (
numSampled === 0 ||
newProbability === Infinity ||
numSampled / initialDefaultProbability < 1e7
) {
const vanillaAggResp = await search
.search(
{

View file

@ -36,7 +36,7 @@ export default function ({ getService, loadTestFile }: FtrProviderContext) {
loadTestFile(require.resolve('./index_data_visualizer_grid_in_discover'));
loadTestFile(require.resolve('./index_data_visualizer_grid_in_dashboard'));
loadTestFile(require.resolve('./index_data_visualizer_actions_panel'));
loadTestFile(require.resolve('./index_data_visualizer_index_pattern_management'));
loadTestFile(require.resolve('./index_data_visualizer_data_view_management'));
loadTestFile(require.resolve('./file_data_visualizer'));
});
}

View file

@ -36,8 +36,7 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
);
});
// FLAKY: https://github.com/elastic/kibana/issues/137016
it.skip(`${testData.suiteTitle} displays index details`, async () => {
it(`${testData.suiteTitle} displays index details`, async () => {
await ml.testExecution.logTestStep(`${testData.suiteTitle} displays the time range step`);
await ml.dataVisualizerIndexBased.assertTimeRangeSelectorSectionExists();
@ -154,9 +153,7 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
});
}
// Failing: See https://github.com/elastic/kibana/issues/137032
// Failing: See https://github.com/elastic/kibana/issues/118472
describe.skip('index based', function () {
describe('index based', function () {
this.tags(['ml']);
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote');

View file

@ -11,8 +11,7 @@ export default function ({ getService }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const ml = getService('ml');
// Failing: See https://github.com/elastic/kibana/issues/137046
describe.skip('index based actions panel on trial license', function () {
describe('index based actions panel on trial license', function () {
this.tags(['ml']);
const indexPatternName = 'ft_farequote';

View file

@ -172,8 +172,7 @@ export default function ({ getService }: FtrProviderContext) {
await ml.dataVisualizerIndexBased.assertTotalFieldsCount(testData.expected.totalFieldsCount);
}
// Failing: See https://github.com/elastic/kibana/issues/137174
describe.skip('data view management', function () {
describe('data view management', function () {
this.tags(['ml']);
const indexPatternTitle = 'ft_farequote';
before(async () => {

View file

@ -91,8 +91,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
}
// FLAKY: https://github.com/elastic/kibana/issues/137062
describe.skip('field statistics in Discover', function () {
describe('field statistics in Discover', function () {
before(async function () {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote');
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/module_sample_logs');