Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 --unsafe-perm --workspace @mongodb-js/compass-web compile
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need --unsafe-perm everywhere? Should we make it part of compass-env as npm_config_unsafe_perml: true instead of adding it to every command line?

Copy link
Member Author

@Anemy Anemy May 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Not needed here, removed it. I'll keep an eye out for when we have it in the future, setting it up in the config would be a good move if we do need it. Not sure if it's needed in some of the other tasks that have it specified.


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