Skip to content

Commit 49df216

Browse files
committed
build mocked compass before running the smoke tests
1 parent ba7e3a9 commit 49df216

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.evergreen/buildvariants-and-tasks.in.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@ tasks:
480480
- func: prepare
481481
- func: install
482482
- func: bootstrap
483-
vars:
484-
scope: 'compass-e2e-tests'
483+
- func: spawn-signing-server
485484
- func: smoketest-packaged-app
486485
vars:
487486
mongodb_version: latest-enterprise

.evergreen/buildvariants-and-tasks.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,7 @@ tasks:
504504
- func: prepare
505505
- func: install
506506
- func: bootstrap
507-
vars:
508-
scope: compass-e2e-tests
507+
- func: spawn-signing-server
509508
- func: smoketest-packaged-app
510509
vars:
511510
mongodb_version: latest-enterprise

packages/compass-e2e-tests/smoke-test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ async function run() {
168168

169169
verifyPackagesExist(packages);
170170

171+
await buildMockedCompass();
172+
171173
// TODO(COMPASS-8533): extract or install each package and then test the Compass binary
172174
for (const pkg of packages) {
173175
let appInfo: InstalledAppInfo | undefined = undefined;
@@ -365,6 +367,16 @@ function verifyPackagesExist(packages: Package[]): void {
365367
}
366368
}
367369

370+
function buildMockedCompass(): Promise<void> {
371+
return execute('npm', [
372+
'run',
373+
'--unsafe-perm',
374+
'package-compass',
375+
'--workspace',
376+
'@mongodb-js/mocked-compass',
377+
]);
378+
}
379+
368380
function testInstalledApp(appInfo: InstalledAppInfo): Promise<void> {
369381
return execute(
370382
'npm',

0 commit comments

Comments
 (0)