|
86 | 86 | target: src/all-e2e-logs.tgz |
87 | 87 | source_dir: src/packages/compass-e2e-tests/.log |
88 | 88 | include: |
89 | | - - "**" |
| 89 | + - '**' |
90 | 90 | - command: s3.put |
91 | 91 | params: |
92 | 92 | <<: *save-artifact-params-private |
@@ -303,7 +303,7 @@ functions: |
303 | 303 | echo "Running tests in Electron runtime" |
304 | 304 |
|
305 | 305 | # Preparing native addons for electron runtime |
306 | | - npm run --unsafe-perm electron-rebuild |
| 306 | + DEBUG=electron-rebuild* npm run --unsafe-perm electron-rebuild |
307 | 307 |
|
308 | 308 | npm run --unsafe-perm test-ci-electron -- --stream |
309 | 309 |
|
@@ -597,10 +597,9 @@ functions: |
597 | 597 | DEBUG: ${debug|} |
598 | 598 | MONGODB_VERSION: ${mongodb_version|} |
599 | 599 | MONGODB_RUNNER_VERSION: ${mongodb_version|} |
600 | | - E2E_TEST_GROUPS: ${e2e_test_groups} |
601 | | - E2E_TEST_GROUP: ${e2e_test_group} |
| 600 | + COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups} |
| 601 | + COMPASS_E2E_TEST_GROUP: ${e2e_test_group} |
602 | 602 | ATLAS_LOCAL_VERSION: latest |
603 | | - HADRON_DISTRIBUTION: compass |
604 | 603 | script: | |
605 | 604 | set -e |
606 | 605 | # Load environment variables |
@@ -629,8 +628,8 @@ functions: |
629 | 628 | DEBUG: ${debug|} |
630 | 629 | MONGODB_VERSION: ${mongodb_version|} |
631 | 630 | MONGODB_RUNNER_VERSION: ${mongodb_version|} |
632 | | - E2E_TEST_GROUPS: ${e2e_test_groups} |
633 | | - E2E_TEST_GROUP: ${e2e_test_group} |
| 631 | + COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups} |
| 632 | + COMPASS_E2E_TEST_GROUP: ${e2e_test_group} |
634 | 633 | script: | |
635 | 634 | set -e |
636 | 635 | # Load environment variables |
@@ -664,14 +663,50 @@ functions: |
664 | 663 | DEBUG: ${debug|} |
665 | 664 | MONGODB_VERSION: ${mongodb_version|} |
666 | 665 | MONGODB_RUNNER_VERSION: ${mongodb_version|} |
667 | | - COMPASS_WEB_BROWSER_NAME: ${browser_name} |
668 | | - E2E_TEST_GROUPS: ${e2e_test_groups} |
669 | | - E2E_TEST_GROUP: ${e2e_test_group} |
| 666 | + COMPASS_E2E_BROWSER_NAME: ${browser_name} |
| 667 | + COMPASS_E2E_TEST_GROUPS: ${e2e_test_groups} |
| 668 | + COMPASS_E2E_TEST_GROUP: ${e2e_test_group} |
| 669 | + script: | |
| 670 | + set -e |
| 671 | + # Load environment variables |
| 672 | + eval $(.evergreen/print-compass-env.sh) |
| 673 | + npm run --unsafe-perm --workspace compass-e2e-tests test-ci web |
| 674 | +
|
| 675 | + |
| 676 | + test-web-sandbox-atlas-cloud: |
| 677 | + - command: shell.exec |
| 678 | + # It can take a very long time for Atlas cluster to get deployed |
| 679 | + timeout_secs: 2400 |
| 680 | + params: |
| 681 | + working_dir: src |
| 682 | + shell: bash |
| 683 | + env: |
| 684 | + <<: *compass-env |
| 685 | + DEBUG: ${debug|} |
| 686 | + COMPASS_E2E_ATLAS_CLOUD_SANDBOX_CLOUD_CONFIG: 'qa' |
| 687 | + COMPASS_E2E_ATLAS_CLOUD_SANDBOX_USERNAME: ${e2e_tests_compass_web_atlas_username} |
| 688 | + COMPASS_E2E_ATLAS_CLOUD_SANDBOX_PASSWORD: ${e2e_tests_compass_web_atlas_password} |
| 689 | + COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DBUSER_USERNAME: ${e2e_tests_compass_web_atlas_db_username} |
| 690 | + COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DBUSER_PASSWORD: ${e2e_tests_compass_web_atlas_password} |
| 691 | + MCLI_PUBLIC_API_KEY: ${e2e_tests_mcli_public_api_key} |
| 692 | + MCLI_PRIVATE_API_KEY: ${e2e_tests_mcli_private_api_key} |
| 693 | + MCLI_ORG_ID: ${e2e_tests_mcli_org_id} |
| 694 | + MCLI_PROJECT_ID: ${e2e_tests_mcli_project_id} |
| 695 | + MCLI_OPS_MANAGER_URL: ${e2e_tests_mcli_ops_manager_url} |
670 | 696 | script: | |
671 | 697 | set -e |
672 | 698 | # Load environment variables |
673 | 699 | eval $(.evergreen/print-compass-env.sh) |
674 | | - npm run --unsafe-perm --workspace compass-e2e-tests test-web |
| 700 | + # Create Atlas cluster for test project |
| 701 | + source .evergreen/start-atlas-cloud-cluster.sh |
| 702 | + # Run the tests |
| 703 | + echo "Starting e2e tests..." |
| 704 | + # We're only running a special subset of tests as provisioning atlas |
| 705 | + # clusters in CI is both pricey and flakey, so we want to limit the |
| 706 | + # coverage to reduce those factors (at least for now) |
| 707 | + npm run --unsafe-perm --workspace compass-e2e-tests test-ci -- -- web \ |
| 708 | + --test-atlas-cloud-sandbox \ |
| 709 | + --test-filter="atlas-cloud/**/*" |
675 | 710 |
|
676 | 711 | test-connectivity: |
677 | 712 | - command: shell.exec |
|
0 commit comments