diff options
author | Alexander Neben <alexander.neben@mongodb.com> | 2022-06-30 03:39:09 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-30 04:08:48 +0000 |
commit | f19c83a01236c1a5fc4c7938281060de1a280a3c (patch) | |
tree | f61f2daad0e2d748c77fd43904b52a655e22ea5a /etc/evergreen_yml_components | |
parent | 203d9b28ebef556dc705248d75ca5e57748c35ba (diff) | |
download | mongo-f19c83a01236c1a5fc4c7938281060de1a280a3c.tar.gz |
SERVER-67134 Added new evergreen job for new clang tidy checks
Diffstat (limited to 'etc/evergreen_yml_components')
-rw-r--r-- | etc/evergreen_yml_components/definitions.yml | 77 |
1 files changed, 76 insertions, 1 deletions
diff --git a/etc/evergreen_yml_components/definitions.yml b/etc/evergreen_yml_components/definitions.yml index c025d5696f2..8a41588b3c2 100644 --- a/etc/evergreen_yml_components/definitions.yml +++ b/etc/evergreen_yml_components/definitions.yml @@ -791,6 +791,28 @@ functions: content_type: text/plain display_name: Pip Requirements + "upload clang tidy results": &upload_clang_tidy_results + - command: s3.put + params: + aws_key: ${aws_key} + aws_secret: ${aws_secret} + local_file: src/clang_tidy_fixes.tgz + remote_file: ${project}/${build_variant}/${revision}/${task_id}/clang_tidy_fixes.tgz + bucket: mciuploads + permissions: public-read + content_type: application/gzip + display_name: clang_tidy_fixes.tgz + - command: s3.put + params: + aws_key: ${aws_key} + aws_secret: ${aws_secret} + local_file: src/clang_tidy_fixes/clang_tidy_fixes.json + remote_file: ${project}/${build_variant}/${revision}/${task_id}/clang_tidy_fixes.json + bucket: mciuploads + permissions: public-read + content_type: application/json + display_name: clang_tidy_fixes.json + "send benchmark results": - command: json.send params: @@ -2440,7 +2462,7 @@ tasks: commands: - func: "scons compile" vars: - targets: generated-sources compiledb + targets: compiledb compiling_for_test: true - command: subprocess.exec type: test @@ -2450,6 +2472,26 @@ tasks: args: - "./src/evergreen/run_clang_tidy.sh" +## clang_tidy_condensed - run clang_tidy with python making the results clearer +- name: clang_tidy_condensed + tags: [] + exec_timeout_secs: 7200 # 1 hour timeout for the task overall + depends_on: + - name: version_expansions_gen + variant: generate-tasks-for-version + commands: + - func: "scons compile" + vars: + targets: compiledb + compiling_for_test: true + - command: subprocess.exec + type: test + timeout_secs: 7000 # 1 hour timeout for no output + params: + binary: bash + args: + - "./src/evergreen/run_clang_tidy_condensed.sh" + ## compile_unittests ## - &compile_unittests name: compile_unittests @@ -7614,6 +7656,39 @@ task_groups: tasks: - clang_tidy +# This is a copy of clang_tidy_TG and will hopefully replace it +- name: clang_tidy_condensed_TG + setup_group_can_fail_task: true + setup_group: + - command: manifest.load + - func: "git get project and add git tag" + - func: "set task expansion macros" + - func: "f_expansions_write" + - func: "kill processes" + - func: "cleanup environment" + - func: "set up venv" + - func: "upload pip requirements" + - func: "configure evergreen api credentials" + - func: "get buildnumber" + - func: "f_expansions_write" + - func: "set up credentials" + - func: "set up win mount script" + - func: "generate compile expansions" + teardown_group: + - func: "f_expansions_write" + - func: "attach report" + - func: "upload clang tidy results" + - func: "umount shared scons directory" + - func: "cleanup environment" + setup_task: + - func: "apply compile expansions" + - func: "f_expansions_write" + - func: "set task expansion macros" + - func: "f_expansions_write" + teardown_task: + tasks: + - clang_tidy_condensed + - name: visibility_test_TG setup_group_can_fail_task: true max_hosts: 1 |