Skip to content

Commit 47df4db

Browse files
authored
Merge branch 'main' into slo-fix-back-button-overview-stats
2 parents 7f07675 + 9d4f5bc commit 47df4db

File tree

62 files changed

+2508
-435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2508
-435
lines changed

.buildkite/scout_ci_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ plugins:
55
- console
66
- discover_enhanced
77
- index_management
8+
- infra
89
- maps
910
- observability
1011
- observability_onboarding
1112
- painless_lab
1213
- profiling
1314
- security_solution
14-
- streams_app
1515
- slo
16+
- streams_app
1617
- workflows_extensions
1718
disabled:
1819

fleet_packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"name": "elastic_agent",
33-
"version": "2.6.8"
33+
"version": "2.6.9"
3434
},
3535
{
3636
"name": "endpoint",

src/dev/build/build_distributables.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ export async function buildDistributables(log: ToolingLog, options: BuildOptions
170170
artifactTasks.push(Tasks.CreateDockerServerless('x64', null));
171171
artifactTasks.push(Tasks.CreateDockerServerless('x64', 'workplaceai'));
172172
artifactTasks.push(Tasks.CreateDockerServerless('x64', 'observability'));
173-
artifactTasks.push(Tasks.CreateDockerServerless('x64', 'search'));
173+
artifactTasks.push(Tasks.CreateDockerServerless('x64', 'elasticsearch'));
174174
artifactTasks.push(Tasks.CreateDockerServerless('x64', 'security'));
175175
artifactTasks.push(Tasks.CreateDockerServerless('aarch64', null));
176176
artifactTasks.push(Tasks.CreateDockerServerless('aarch64', 'workplaceai'));
177177
artifactTasks.push(Tasks.CreateDockerServerless('aarch64', 'observability'));
178-
artifactTasks.push(Tasks.CreateDockerServerless('aarch64', 'search'));
178+
artifactTasks.push(Tasks.CreateDockerServerless('aarch64', 'elasticsearch'));
179179
artifactTasks.push(Tasks.CreateDockerServerless('aarch64', 'security'));
180180
}
181181

src/dev/build/lib/config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ import {
1818
type PluginPackage,
1919
getPluginPackagesFilter,
2020
} from '@kbn/repo-packages';
21-
import { type ModuleGroup } from '@kbn/projects-solutions-groups';
22-
2321
import type { VersionInfo } from './version_info';
2422
import { getVersionInfo } from './version_info';
25-
import type { PlatformName, PlatformArchitecture } from './platform';
23+
import type { PlatformName, PlatformArchitecture, Solution } from './platform';
2624
import { ALL_PLATFORMS, SERVERLESS_PLATFORMS } from './platform';
2725
import type { BuildOptions } from '../build_distributables';
2826

@@ -277,7 +275,7 @@ export class Config {
277275
return getPackages(this.repoRoot).filter((p) => !p.isDevOnly() && this.pluginFilter(p));
278276
}
279277

280-
getPrivateSolutionPackagesFromRepo(project: ModuleGroup) {
278+
getPrivateSolutionPackagesFromRepo(project: Solution) {
281279
return getPackages(this.repoRoot).filter(
282280
(p) => p.group === project && p.visibility === 'private'
283281
);

src/dev/build/lib/platform.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import type { KibanaSolution } from '@kbn/projects-solutions-groups';
1212
export type PlatformName = 'win32' | 'darwin' | 'linux';
1313
export type PlatformArchitecture = 'x64' | 'arm64';
1414
export type Variant = 'serverless' | null;
15-
export type Solution = KibanaSolution | null;
15+
16+
// Upstream project type referenced as kibana-elasticsearch
17+
// See https://github.com/elastic/kibana/pull/244739 for context
18+
export type Solution = Exclude<KibanaSolution, 'search'> | 'elasticsearch' | null;
1619

1720
export class Platform {
1821
constructor(
@@ -89,8 +92,8 @@ export const SERVERLESS_PLATFORMS = [
8992
new Platform('linux', 'x64', 'linux-x86_64', 'serverless', 'observability'),
9093
new Platform('linux', 'arm64', 'linux-aarch64', 'serverless', 'observability'),
9194

92-
new Platform('linux', 'x64', 'linux-x86_64', 'serverless', 'search'),
93-
new Platform('linux', 'arm64', 'linux-aarch64', 'serverless', 'search'),
95+
new Platform('linux', 'x64', 'linux-x86_64', 'serverless', 'elasticsearch'),
96+
new Platform('linux', 'arm64', 'linux-aarch64', 'serverless', 'elasticsearch'),
9497

9598
new Platform('linux', 'x64', 'linux-x86_64', 'serverless', 'security'),
9699
new Platform('linux', 'arm64', 'linux-aarch64', 'serverless', 'security'),

src/dev/build/tasks/create_archives_sources_task.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
import { REPO_ROOT } from '@kbn/repo-info';
1111
import { removePackagesFromPackageMap } from '@kbn/repo-packages';
1212
import { KIBANA_SOLUTIONS } from '@kbn/projects-solutions-groups';
13-
import type { KibanaSolution } from '@kbn/projects-solutions-groups';
1413
import { resolve, join } from 'path';
1514
import { scanCopy, deleteAll, copyAll } from '../lib';
16-
import type { Task, Platform } from '../lib';
15+
import type { Task, Platform, Solution } from '../lib';
1716
import { getNodeDownloadInfo } from './nodejs';
1817

1918
export const CreateArchivesSources: Task = {
2019
description: 'Creating platform-specific archive source directories',
2120
async run(config, log, build) {
22-
async function removeSolutions(solutionsToRemove: KibanaSolution[], platform: Platform) {
21+
async function removeSolutions(solutionsToRemove: Solution[], platform: Platform) {
2322
const solutionPluginNames: string[] = [];
2423

2524
for (const solution of solutionsToRemove) {
25+
if (!solution) continue;
2626
const solutionPlugins = config.getPrivateSolutionPackagesFromRepo(solution);
2727
solutionPluginNames.push(...solutionPlugins.map((p) => p.name));
2828
}
@@ -81,7 +81,7 @@ export const CreateArchivesSources: Task = {
8181

8282
// Copy solution config.yml
8383
const WORKPLACE_AI_CONFIGS = ['serverless.workplaceai.yml'];
84-
const SEARCH_CONFIGS = ['serverless.es.yml'];
84+
const ELASTICSEARCH_CONFIGS = ['serverless.es.yml'];
8585
const OBSERVABILITY_CONFIGS = [
8686
'serverless.oblt.yml',
8787
'serverless.oblt.{logs_essentials,complete}.yml',
@@ -95,8 +95,8 @@ export const CreateArchivesSources: Task = {
9595
case 'workplaceai':
9696
configFiles.push(...WORKPLACE_AI_CONFIGS);
9797
break;
98-
case 'search':
99-
configFiles.push(...SEARCH_CONFIGS);
98+
case 'elasticsearch':
99+
configFiles.push(...ELASTICSEARCH_CONFIGS);
100100
break;
101101
case 'observability':
102102
configFiles.push(...OBSERVABILITY_CONFIGS);
@@ -107,7 +107,7 @@ export const CreateArchivesSources: Task = {
107107
default:
108108
configFiles.push(
109109
...WORKPLACE_AI_CONFIGS,
110-
...SEARCH_CONFIGS,
110+
...ELASTICSEARCH_CONFIGS,
111111
...OBSERVABILITY_CONFIGS,
112112
...SECURITY_CONFIGS
113113
);
@@ -123,8 +123,11 @@ export const CreateArchivesSources: Task = {
123123

124124
// Remove non-target solutions
125125
const targetSolution = platform.getSolution();
126-
if (targetSolution && KIBANA_SOLUTIONS.includes(targetSolution)) {
127-
const solutionsToRemove = KIBANA_SOLUTIONS.filter((s) => s !== targetSolution);
126+
const ARTIFACT_SOLUTIONS = KIBANA_SOLUTIONS.map((s) =>
127+
s === 'search' ? 'elasticsearch' : s
128+
);
129+
if (targetSolution && ARTIFACT_SOLUTIONS.includes(targetSolution)) {
130+
const solutionsToRemove = ARTIFACT_SOLUTIONS.filter((s) => s !== targetSolution);
128131
await removeSolutions(solutionsToRemove, platform);
129132
}
130133
} else if (config.isRelease) {

src/dev/build/tasks/nodejs/verify_existing_node_builds_task.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ it('checks shasums for each downloaded node build', async () => {
530530
"architecture": "x64",
531531
"buildName": "linux-x86_64",
532532
"name": "linux",
533-
"solution": "search",
533+
"solution": "elasticsearch",
534534
"variant": "serverless",
535535
},
536536
],
@@ -540,7 +540,7 @@ it('checks shasums for each downloaded node build', async () => {
540540
"architecture": "arm64",
541541
"buildName": "linux-aarch64",
542542
"name": "linux",
543-
"solution": "search",
543+
"solution": "elasticsearch",
544544
"variant": "serverless",
545545
},
546546
],

src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/test/context/page_context.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,8 @@ import { coreWorkerFixtures } from '../../worker';
1919
* ensuring consistent browser state across all tests.
2020
*/
2121
export const pageContextFixture = coreWorkerFixtures.extend<{ context: BrowserContext }>({
22-
context: async ({ context, log }, use) => {
23-
// Add init script to set localStorage flags before any page navigation
24-
// This will be executed on every page load/reload
25-
await context.addInitScript(() => {
26-
// Force hide tour for the solution navigation
27-
localStorage.setItem('solutionNavigationTour:completed', 'true');
28-
});
29-
30-
log.debug('Page context initialized');
22+
context: async ({ context }, use) => {
23+
// set localStorage flags before any page navigation
3124
await use(context);
3225
},
3326
});

src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/worker/core_fixtures.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ export const coreWorkerFixtures = base.extend<{}, CoreWorkerFixtures>({
8989
const serversConfigDir = projectUse.serversConfigDir;
9090
const configInstance = createScoutConfig(serversConfigDir, projectUse.configName, log);
9191

92+
log.info(
93+
`Running tests against ${
94+
configInstance.isCloud
95+
? configInstance.serverless
96+
? `MKI ${configInstance.projectType} project`
97+
: 'ECH deployment'
98+
: `local ${
99+
configInstance.serverless ? `serverless ${configInstance.projectType}` : 'stateful'
100+
} cluster`
101+
}`
102+
);
103+
92104
use(configInstance);
93105
},
94106
{ scope: 'worker' },
@@ -179,6 +191,8 @@ export const coreWorkerFixtures = base.extend<{}, CoreWorkerFixtures>({
179191

180192
customRoleHash = newRoleHash;
181193
};
194+
// Hide the announcements (including the sidenav tour) in the default space
195+
await kbnClient.uiSettings.update({ hideAnnouncements: true });
182196

183197
await use({ session, customRoleName, setCustomRole });
184198

src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/worker/scout_space/parallel.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ export const scoutSpaceParallelFixture = coreWorkerFixtures.extend<
126126
setDefaultTime,
127127
};
128128

129+
/**
130+
* To hide the sidenav tour we need to enable 'hideAnnouncements' setting
131+
* It should hide both space tour and sidenav tour.
132+
* Currently it can be set only per space, so we set it right after new space is created.
133+
* TODO: update if setting becomes global https://github.com/elastic/kibana/issues/234771
134+
*/
135+
await kbnClient.uiSettings.update({ hideAnnouncements: true }, { space: spaceId });
136+
129137
log.serviceMessage('scoutSpace', `New Kibana space '${spaceId}' created`);
130138
await use({ savedObjects, uiSettings, id: spaceId });
131139

0 commit comments

Comments
 (0)