This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 987b450a7b0e2e5f0402479cc6e1e20d92317e0b Author: zhiqiang <[email protected]> AuthorDate: Mon May 27 20:04:45 2024 +0800 [fix](regression-test) Fix s3 load profile test faild occasionally (#35289) --- .../suites/query_profile/s3_load_profile_test.groovy | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/regression-test/suites/query_profile/s3_load_profile_test.groovy b/regression-test/suites/query_profile/s3_load_profile_test.groovy index fb9425b6b9e..b16d86d635e 100644 --- a/regression-test/suites/query_profile/s3_load_profile_test.groovy +++ b/regression-test/suites/query_profile/s3_load_profile_test.groovy @@ -171,15 +171,21 @@ PROPERTIES ( profileJson = new JsonSlurper().parseText(profileString) assertEquals(0, profileJson.code) profileDataString = profileJson.data + logger.info("profileDataString:" + profileDataString) def taskStateIdx = profileDataString.indexOf("- Task State: FINISHED") assertFalse(taskStateIdx == -1) def fragmentIdx = profileDataString.indexOf(" Fragment 0:") assertFalse(fragmentIdx == -1) def executionProfileIdx = profileDataString.indexOf("Execution Profile") assertFalse(executionProfileIdx == -1) - def pattern = ~/Active:\s*([1-9]\d*|0\.\d+|[1-9]\d*\.\d*)ms/ - def matcher = pattern.matcher(profileDataString) - assertTrue(matcher.find()) + if (!profileDataString.contains("FILE_SCAN_OPERATOR") || !profileDataString.contains("BlocksProduced") + || !profileDataString.contains("RowsProduced") || !profileDataString.contains("RowsRead")) { + logger.info("profileDataString:" + profileDataString) + } + assertTrue(profileDataString.contains("FILE_SCAN_OPERATOR")) + assertTrue(profileDataString.contains("BlocksProduced")) + assertTrue(profileDataString.contains("RowsProduced")) + assertTrue(profileDataString.contains("RowsRead")) } class DataDesc { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
