Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .evergreen/buildvariants-and-tasks.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ buildvariants:
<% } %>
<% } %>

- name: test-can-bundle-compass-web
display_name: Test Can Bundle Compass Web
run_on: ubuntu2004-large
tasks:
- name: test-can-bundle-compass-web

- name: test-web-sandbox-atlas-cloud
display_name: Test Web Sandbox (w/ Atlas Cloud login)
run_on: ubuntu2004-large
Expand Down Expand Up @@ -557,6 +563,19 @@ tasks:
<% } %>
<% } %>

- name: test-can-bundle-compass-web
tags:
- run-on-pr
- assigned_to_jira_team_compass_compass
- foliage_check_task_only
commands:
- func: prepare
- func: install
- func: bootstrap
- func: compile-compass-web
vars:
debug: 'compass*,electron*,hadron*,mongo*'

- name: test-web-sandbox-atlas-cloud
tags:
- required-for-publish
Expand Down
17 changes: 17 additions & 0 deletions .evergreen/buildvariants-and-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ buildvariants:
- name: test-web-sandbox-firefox-1
- name: test-web-sandbox-firefox-2
- name: test-web-sandbox-firefox-3
- name: test-can-bundle-compass-web
display_name: Test Can Bundle Compass Web
run_on: ubuntu2004-large
tasks:
- name: test-can-bundle-compass-web
- name: test-web-sandbox-atlas-cloud
display_name: Test Web Sandbox (w/ Atlas Cloud login)
run_on: ubuntu2004-large
Expand Down Expand Up @@ -1552,6 +1557,18 @@ tasks:
e2e_test_groups: 3
e2e_test_group: 3
debug: compass-e2e-tests*,electron*,hadron*,mongo*
- name: test-can-bundle-compass-web
tags:
- run-on-pr
- assigned_to_jira_team_compass_compass
- foliage_check_task_only
commands:
- func: prepare
- func: install
- func: bootstrap
- func: compile-compass-web
vars:
debug: compass*,electron*,hadron*,mongo*
- name: test-web-sandbox-atlas-cloud
tags:
- required-for-publish
Expand Down
16 changes: 16 additions & 0 deletions .evergreen/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,22 @@ functions:
npm run --workspace @mongodb-js/compass-smoke-tests start -- dispatch --ref ${branch_name}
fi

# Creating the webpack compass-web bundle ensures
# that the bundle size does not grow too large for.
# The webpack compile fails when it exceeds the size limit.
compile-compass-web:
- command: shell.exec
# Fail the task if it's idle for 10 mins
timeout_secs: 600
params:
working_dir: src
shell: bash
env:
DEBUG: ${debug|}
script: |
set -e
npm run --workspace @mongodb-js/compass-web compile

test-web-sandbox:
- command: shell.exec
# Fail the task if it's idle for 10 mins
Expand Down