mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ci] prevent failures caused by excluding function configs (#135962)
This commit is contained in:
parent
369272efe1
commit
75df3eaf74
1 changed files with 28 additions and 26 deletions
|
@ -332,34 +332,36 @@ export async function pickTestGroupRunOrder() {
|
|||
{ title: string; expectedDurationMin: number; names: string[] }
|
||||
> = {};
|
||||
|
||||
for (const { groups, queue } of getRunGroups(bk, types, FUNCTIONAL_TYPE)) {
|
||||
for (const group of groups) {
|
||||
if (!group.names.length) {
|
||||
continue;
|
||||
}
|
||||
if (ftrConfigsByQueue.size) {
|
||||
for (const { groups, queue } of getRunGroups(bk, types, FUNCTIONAL_TYPE)) {
|
||||
for (const group of groups) {
|
||||
if (!group.names.length) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const key = `ftr_configs_${configCounter++}`;
|
||||
let sortBy;
|
||||
let title;
|
||||
if (group.names.length === 1) {
|
||||
title = group.names[0];
|
||||
sortBy = title;
|
||||
} else {
|
||||
sortBy = ++groupCounter;
|
||||
title = `FTR Configs #${sortBy}`;
|
||||
}
|
||||
const key = `ftr_configs_${configCounter++}`;
|
||||
let sortBy;
|
||||
let title;
|
||||
if (group.names.length === 1) {
|
||||
title = group.names[0];
|
||||
sortBy = title;
|
||||
} else {
|
||||
sortBy = ++groupCounter;
|
||||
title = `FTR Configs #${sortBy}`;
|
||||
}
|
||||
|
||||
functionalGroups.push({
|
||||
title,
|
||||
key,
|
||||
sortBy,
|
||||
queue: queue ?? defaultQueue,
|
||||
});
|
||||
ftrRunOrder[key] = {
|
||||
title,
|
||||
expectedDurationMin: group.durationMin,
|
||||
names: group.names,
|
||||
};
|
||||
functionalGroups.push({
|
||||
title,
|
||||
key,
|
||||
sortBy,
|
||||
queue: queue ?? defaultQueue,
|
||||
});
|
||||
ftrRunOrder[key] = {
|
||||
title,
|
||||
expectedDurationMin: group.durationMin,
|
||||
names: group.names,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue