Skip to content

Commit

Permalink
add always failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Dec 10, 2024
1 parent 90581ae commit 20ccb97
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 26 deletions.
62 changes: 37 additions & 25 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7734,7 +7734,7 @@ tasks:
# E.g. test_m60xc_n16 stands for mongod 6.0.x, community edition, Node.js 16
###
- name: test_arg_parser
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7752,7 +7752,7 @@ tasks:
mongosh_run_only_in_package: "arg-parser"
task_name: ${task_name}
- name: test_async_rewriter2
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7770,7 +7770,7 @@ tasks:
mongosh_run_only_in_package: "async-rewriter2"
task_name: ${task_name}
- name: test_autocomplete
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7788,7 +7788,7 @@ tasks:
mongosh_run_only_in_package: "autocomplete"
task_name: ${task_name}
- name: test_browser_repl
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7806,7 +7806,7 @@ tasks:
mongosh_run_only_in_package: "browser-repl"
task_name: ${task_name}
- name: test_browser_runtime_core
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7824,7 +7824,7 @@ tasks:
mongosh_run_only_in_package: "browser-runtime-core"
task_name: ${task_name}
- name: test_browser_runtime_electron
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7842,7 +7842,7 @@ tasks:
mongosh_run_only_in_package: "browser-runtime-electron"
task_name: ${task_name}
- name: test_build
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7860,7 +7860,7 @@ tasks:
mongosh_run_only_in_package: "build"
task_name: ${task_name}
- name: test_cli_repl
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7878,7 +7878,7 @@ tasks:
mongosh_run_only_in_package: "cli-repl"
task_name: ${task_name}
- name: test_connectivity_tests
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7896,7 +7896,7 @@ tasks:
mongosh_run_only_in_package: "connectivity-tests"
task_name: ${task_name}
- name: test_e2e_tests
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7914,7 +7914,7 @@ tasks:
mongosh_run_only_in_package: "e2e-tests"
task_name: ${task_name}
- name: test_editor
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7932,7 +7932,7 @@ tasks:
mongosh_run_only_in_package: "editor"
task_name: ${task_name}
- name: test_errors
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7950,7 +7950,7 @@ tasks:
mongosh_run_only_in_package: "errors"
task_name: ${task_name}
- name: test_history
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7968,7 +7968,7 @@ tasks:
mongosh_run_only_in_package: "history"
task_name: ${task_name}
- name: test_i18n
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -7986,7 +7986,7 @@ tasks:
mongosh_run_only_in_package: "i18n"
task_name: ${task_name}
- name: test_java_shell
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8004,7 +8004,7 @@ tasks:
mongosh_run_only_in_package: "java-shell"
task_name: ${task_name}
- name: test_js_multiline_to_singleline
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8022,7 +8022,7 @@ tasks:
mongosh_run_only_in_package: "js-multiline-to-singleline"
task_name: ${task_name}
- name: test_logging
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8040,7 +8040,7 @@ tasks:
mongosh_run_only_in_package: "logging"
task_name: ${task_name}
- name: test_mongosh
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8058,7 +8058,7 @@ tasks:
mongosh_run_only_in_package: "mongosh"
task_name: ${task_name}
- name: test_node_runtime_worker_thread
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8076,7 +8076,7 @@ tasks:
mongosh_run_only_in_package: "node-runtime-worker-thread"
task_name: ${task_name}
- name: test_service_provider_core
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8094,7 +8094,7 @@ tasks:
mongosh_run_only_in_package: "service-provider-core"
task_name: ${task_name}
- name: test_service_provider_node_driver
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8112,7 +8112,7 @@ tasks:
mongosh_run_only_in_package: "service-provider-node-driver"
task_name: ${task_name}
- name: test_shell_api
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8130,7 +8130,7 @@ tasks:
mongosh_run_only_in_package: "shell-api"
task_name: ${task_name}
- name: test_shell_evaluator
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8148,7 +8148,7 @@ tasks:
mongosh_run_only_in_package: "shell-evaluator"
task_name: ${task_name}
- name: test_snippet_manager
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8166,7 +8166,7 @@ tasks:
mongosh_run_only_in_package: "snippet-manager"
task_name: ${task_name}
- name: test_types
tags: ["assigned_to_jira_team_mongosh_mongosh","unit-test"]
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -8183,6 +8183,17 @@ tasks:
mongosh_test_id: "types"
mongosh_run_only_in_package: "types"
task_name: ${task_name}
# TODO: This is an always failing test to check Foliage. Should be removed afterwards.
- name: test_always_failing
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
commands:
- func: shell.exec
type: setup
params:
working_dir: src
shell: bash
script: |
node -e "throw new Error()"

###
# INTEGRATION TESTS
Expand Down Expand Up @@ -15908,6 +15919,7 @@ buildvariants:
- name: test_vscode
- name: test_connectivity
- name: test_apistrict
- name: test_always_failing
- name: linux_coverage
display_name: "Ubuntu 20.04 x64 (Coverage and Static Analysis Check)"
run_on: ubuntu2004-small
Expand Down
14 changes: 13 additions & 1 deletion .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ tasks:
###
<% for (const { id, packageName } of ALL_UNIT_TESTS) { %>
- name: test_<% out(id) %>
tags: <% out(["assigned_to_jira_team_mongosh_mongosh", "unit-test"]) %>
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
depends_on:
- name: compile_ts
variant: linux_compile
Expand All @@ -1165,6 +1165,17 @@ tasks:
mongosh_run_only_in_package: "<% out(packageName) %>"
task_name: ${task_name}
<% } %>
# TODO: This is an always failing test to check Foliage. Should be removed afterwards.
- name: test_always_failing
tags: ["assigned_to_jira_team_mongosh_mongosh", "unit-test"]
commands:
- func: shell.exec
type: setup
params:
working_dir: src
shell: bash
script: |
node -e "throw new Error()"

###
# INTEGRATION TESTS
Expand Down Expand Up @@ -1597,6 +1608,7 @@ buildvariants:
- name: test_vscode
- name: test_connectivity
- name: test_apistrict
- name: test_always_failing
- name: linux_coverage
display_name: "Ubuntu 20.04 x64 (Coverage and Static Analysis Check)"
run_on: ubuntu2004-small
Expand Down

0 comments on commit 20ccb97

Please sign in to comment.