From daf98c15451f70caae5626baa43d006348bc6410 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Thu, 27 Oct 2022 16:27:59 +0800 Subject: [PATCH] New precise map (#47389) * precise_test_map_optimization * modify get_pr_ut.py * apply new map to coverage,test=coverage * apply new map to coverage,test=coverage * apply new map to coverage,test=coverage * apply new map to coverage,test=coverage * apply new map to coverage,test=coverage * apply new map to coverage,test=coverage --- tools/coverage/paddle_coverage.sh | 3 +++ tools/get_pr_ut.py | 10 ++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/coverage/paddle_coverage.sh b/tools/coverage/paddle_coverage.sh index 47a124c3c7..1d62608f9f 100644 --- a/tools/coverage/paddle_coverage.sh +++ b/tools/coverage/paddle_coverage.sh @@ -50,6 +50,8 @@ function gen_full_html_report() { '/paddle/paddle/fluid/string/*' \ '/paddle/paddle/fluid/eager/*' \ '/paddle/paddle/phi/*' \ + '/paddle/paddle/utils/*' \ + -o coverage-full.tmp \ --rc lcov_branch_coverage=0 @@ -63,6 +65,7 @@ function gen_full_html_report() { '/paddle/paddle/fluid/inference/api/demo_ci/*' \ '/paddle/paddle/fluid/eager/tests/*' \ '/paddle/paddle/phi/tests/*' \ + -o coverage-full.tmp \ --rc lcov_branch_coverage=0 diff --git a/tools/get_pr_ut.py b/tools/get_pr_ut.py index ba8dbeb1da..4dbd32d962 100644 --- a/tools/get_pr_ut.py +++ b/tools/get_pr_ut.py @@ -303,7 +303,7 @@ class PRChecker(object): file_ut_map = None ret = self.__urlretrieve( - 'https://paddle-docker-tar.bj.bcebos.com/pre_test/ut_file_map.json', + 'https://paddle-docker-tar.bj.bcebos.com/pre_test_tmp/ut_file_map.json', 'ut_file_map.json', ) if not ret: @@ -326,9 +326,7 @@ class PRChecker(object): if filename.startswith(PADDLE_ROOT + 'python/'): file_list.append(filename) elif filename.startswith(PADDLE_ROOT + 'paddle/'): - if filename.startswith( - (PADDLE_ROOT + 'paddle/infrt', PADDLE_ROOT + 'paddle/utils') - ): + if filename.startswith((PADDLE_ROOT + 'paddle/infrt')): filterFiles.append(filename) elif filename.startswith(PADDLE_ROOT + 'paddle/scripts'): if filename.startswith( @@ -354,7 +352,7 @@ class PRChecker(object): if len(file_list) == 0: ut_list.append('filterfiles_placeholder') ret = self.__urlretrieve( - 'https://paddle-docker-tar.bj.bcebos.com/pre_test/prec_delta', + 'https://paddle-docker-tar.bj.bcebos.com/pre_test_tmp/prec_delta', 'prec_delta', ) if ret: @@ -460,7 +458,7 @@ class PRChecker(object): else: if ut_list: ret = self.__urlretrieve( - 'https://paddle-docker-tar.bj.bcebos.com/pre_test/prec_delta', + 'https://paddle-docker-tar.bj.bcebos.com/pre_test_tmp/prec_delta', 'prec_delta', ) if ret: -- GitLab