Skip to content

Commit 5952806

Browse files
authored
test(compass-web): add evergreen task to compile compass web COMPASS-9415 (#6971)
1 parent 870460f commit 5952806

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ buildvariants:
290290
<% } %>
291291
<% } %>
292292

293+
- name: test-can-bundle-compass-web
294+
display_name: Test Can Bundle Compass Web
295+
run_on: ubuntu2004-large
296+
tasks:
297+
- name: test-can-bundle-compass-web
298+
293299
- name: test-web-sandbox-atlas-cloud
294300
display_name: Test Web Sandbox (w/ Atlas Cloud login)
295301
run_on: ubuntu2004-large
@@ -557,6 +563,19 @@ tasks:
557563
<% } %>
558564
<% } %>
559565

566+
- name: test-can-bundle-compass-web
567+
tags:
568+
- run-on-pr
569+
- assigned_to_jira_team_compass_compass
570+
- foliage_check_task_only
571+
commands:
572+
- func: prepare
573+
- func: install
574+
- func: bootstrap
575+
- func: compile-compass-web
576+
vars:
577+
debug: 'compass*,electron*,hadron*,mongo*'
578+
560579
- name: test-web-sandbox-atlas-cloud
561580
tags:
562581
- required-for-publish

.evergreen/buildvariants-and-tasks.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ buildvariants:
280280
- name: test-web-sandbox-firefox-1
281281
- name: test-web-sandbox-firefox-2
282282
- name: test-web-sandbox-firefox-3
283+
- name: test-can-bundle-compass-web
284+
display_name: Test Can Bundle Compass Web
285+
run_on: ubuntu2004-large
286+
tasks:
287+
- name: test-can-bundle-compass-web
283288
- name: test-web-sandbox-atlas-cloud
284289
display_name: Test Web Sandbox (w/ Atlas Cloud login)
285290
run_on: ubuntu2004-large
@@ -1552,6 +1557,18 @@ tasks:
15521557
e2e_test_groups: 3
15531558
e2e_test_group: 3
15541559
debug: compass-e2e-tests*,electron*,hadron*,mongo*
1560+
- name: test-can-bundle-compass-web
1561+
tags:
1562+
- run-on-pr
1563+
- assigned_to_jira_team_compass_compass
1564+
- foliage_check_task_only
1565+
commands:
1566+
- func: prepare
1567+
- func: install
1568+
- func: bootstrap
1569+
- func: compile-compass-web
1570+
vars:
1571+
debug: compass*,electron*,hadron*,mongo*
15551572
- name: test-web-sandbox-atlas-cloud
15561573
tags:
15571574
- required-for-publish

.evergreen/functions.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,22 @@ functions:
688688
npm run --workspace @mongodb-js/compass-smoke-tests start -- dispatch --ref ${branch_name}
689689
fi
690690
691+
# Creating the webpack compass-web bundle ensures
692+
# that the bundle size does not grow too large for.
693+
# The webpack compile fails when it exceeds the size limit.
694+
compile-compass-web:
695+
- command: shell.exec
696+
# Fail the task if it's idle for 10 mins
697+
timeout_secs: 600
698+
params:
699+
working_dir: src
700+
shell: bash
701+
env:
702+
DEBUG: ${debug|}
703+
script: |
704+
set -e
705+
npm run --workspace @mongodb-js/compass-web compile
706+
691707
test-web-sandbox:
692708
- command: shell.exec
693709
# Fail the task if it's idle for 10 mins

0 commit comments

Comments
 (0)