From 7ff599b75384f093d8cc8e821a61249e4ae7088d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Terelius?= Date: Fri, 9 Dec 2022 17:25:54 +0100 Subject: [PATCH] Only instrument changed lines on coverage bot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: b/236797073 Change-Id: I2a371a16e0a41597ae4cfa4510b637c5973bbc4d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/287340 Commit-Queue: Björn Terelius Reviewed-by: Jeremy Leconte Cr-Commit-Position: refs/heads/main@{#38872} --- tools_webrtc/mb/mb_config.pyl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools_webrtc/mb/mb_config.pyl b/tools_webrtc/mb/mb_config.pyl index 6bf3d52a3b..138ecf275c 100644 --- a/tools_webrtc/mb/mb_config.pyl +++ b/tools_webrtc/mb/mb_config.pyl @@ -260,8 +260,10 @@ ['android', 'debug_static_bot', 'arm', 'bwe_test_logging'], 'bwe_test_logging_x64': ['debug_bot', 'x64', 'bwe_test_logging'], 'bwe_test_logging_x86': ['debug_bot', 'x86', 'bwe_test_logging'], - 'code_coverage_bot_x64': - ['openh264', 'release_bot', 'x64', 'code_coverage'], + 'code_coverage_bot_x64': [ + 'openh264', 'release_bot', 'x64', 'code_coverage', + 'partial_code_coverage_instrumentation' + ], 'codesearch_gen_linux_bot': ['openh264', 'debug_bot', 'minimal_symbols'], 'debug_bot_arm': ['openh264', 'debug_bot', 'arm'], 'debug_bot_arm64': ['openh264', 'debug_bot', 'arm64'], @@ -474,6 +476,10 @@ 'optimize_for_fuzzing': { 'gn_args': 'optimize_for_fuzzing=true', }, + 'partial_code_coverage_instrumentation': { + 'gn_args': + 'coverage_instrumentation_input_file="//.code-coverage/files_to_instrument.txt"' + }, # The 'pure_release_bot' configuration is for release bots that are doing a # 100% release build without DCHECKs while 'release_bot' is a partial # release configs since `dcheck_always_on` is set to true.