From 20ccb97bdf09c677a4f9cb5dfbc33d17dc92fe5d Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 10 Dec 2024 16:23:31 +0100 Subject: [PATCH] add always failing test --- .evergreen.yml | 62 ++++++++++++++++++++++--------------- .evergreen/evergreen.yml.in | 14 ++++++++- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/.evergreen.yml b/.evergreen.yml index b7a6d2b52..72db43b98 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.evergreen/evergreen.yml.in b/.evergreen/evergreen.yml.in index 73c0062a1..48b943f66 100644 --- a/.evergreen/evergreen.yml.in +++ b/.evergreen/evergreen.yml.in @@ -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 @@ -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 @@ -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