From ef919109ed62c168a94e6afddc46b82cdaf61a49 Mon Sep 17 00:00:00 2001 From: Max Hirschhorn Date: Mon, 18 Nov 2024 18:11:59 -0500 Subject: [PATCH] SERVER-97202 Skip debug symbols for compile_all_but_not_unittests. (#29238) GitOrigin-RevId: de19f708921d73916ce4ee8e69bbd21b19769df5 --- .../tasks/compile_tasks.yml | 13 +++++++++++++ .../variants/amazon/test_dev.yml | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/etc/evergreen_yml_components/tasks/compile_tasks.yml b/etc/evergreen_yml_components/tasks/compile_tasks.yml index 0956b39eb24..5f1b9376236 100644 --- a/etc/evergreen_yml_components/tasks/compile_tasks.yml +++ b/etc/evergreen_yml_components/tasks/compile_tasks.yml @@ -688,6 +688,7 @@ tasks: vars: targets: install-all-meta-but-not-unittests compiling_for_test: true + task_compile_flags: ${compile_all_but_not_unittests_flags} - <<: *clang_tidy_task_template name: clang_tidy_1 @@ -2320,6 +2321,18 @@ task_groups: - archive_dist_test_debug - compile_all_but_not_unittests + - <<: *compile_task_group_template + name: compile_test_parallel_core_stream_no_compile_all_TG + tasks: + - compile_dist_test + - archive_dist_test + - archive_dist_test_debug + + - <<: *compile_task_group_template + name: compile_all_but_not_unittests_TG + tasks: + - compile_all_but_not_unittests + - <<: *compile_task_group_template name: compile_test_parallel_dbtest_stream_TG tasks: diff --git a/etc/evergreen_yml_components/variants/amazon/test_dev.yml b/etc/evergreen_yml_components/variants/amazon/test_dev.yml index f37a3fe3db1..b571c99cd5b 100644 --- a/etc/evergreen_yml_components/variants/amazon/test_dev.yml +++ b/etc/evergreen_yml_components/variants/amazon/test_dev.yml @@ -27,6 +27,10 @@ variables: --link-model=static unittest_compile_flags: >- --link-model=dynamic + # The executables generated by the install-all target are not used after successfully being + # compiled. We therefore compile them without debug symbols to compile them faster. + compile_all_but_not_unittests_flags: >- + --debug-symbols=off # THIS HAS COPIES IN: # - etc/evergreen_yml_components/variants/amazon/test_dev_master_branch_only.yml @@ -101,7 +105,10 @@ buildvariants: tasks: - name: compile_ninja_quick_TG - name: compile_test_parallel_unittest_stream_TG - - name: compile_test_parallel_core_stream_TG + - name: compile_test_parallel_core_stream_no_compile_all_TG + distros: + - amazon2-arm64-latest-nvme + - name: compile_all_but_not_unittests_TG distros: - amazon2-arm64-latest-nvme - name: compile_test_parallel_dbtest_stream_TG