ci: pipeline_message: ignore harmless build logs
Currently marge gets confused when parsing a build log and mistakes innocuous lines that have the word "error" in them as actual issues. Example: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31093#note_2705442 https://gitlab.freedesktop.org/mesa/mesa/-/pipelines/1331453 Ignore lines with the word `error` in them that are not actual issues, so that marge can provide more useful comments. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32773>
This commit is contained in:

committed by
Marge Bot

parent
2a477f7df2
commit
6dc094decd
@@ -218,6 +218,7 @@ async def search_job_log_for_errors(session, project_id, job):
|
|||||||
# forget to add a comma after each entry
|
# forget to add a comma after each entry
|
||||||
ignore_list = [
|
ignore_list = [
|
||||||
"aborting",
|
"aborting",
|
||||||
|
"building c",
|
||||||
"error_msg : None",
|
"error_msg : None",
|
||||||
"error_type",
|
"error_type",
|
||||||
"exit code",
|
"exit code",
|
||||||
@@ -225,9 +226,12 @@ async def search_job_log_for_errors(session, project_id, job):
|
|||||||
"exiting now",
|
"exiting now",
|
||||||
"job failed",
|
"job failed",
|
||||||
"no files to upload",
|
"no files to upload",
|
||||||
|
"performing test",
|
||||||
"ret code",
|
"ret code",
|
||||||
"retry",
|
"retry",
|
||||||
"retry-all-errors",
|
"retry-all-errors",
|
||||||
|
"strerror_",
|
||||||
|
"success",
|
||||||
"unknown-section",
|
"unknown-section",
|
||||||
]
|
]
|
||||||
job_log = await get_job_log(session, project_id, job["id"])
|
job_log = await get_job_log(session, project_id, job["id"])
|
||||||
|
@@ -172,6 +172,13 @@ async def test_search_job_log_for_errors(mock_get_job_log):
|
|||||||
|
|
||||||
job_log = r"""
|
job_log = r"""
|
||||||
error_msg: something useful
|
error_msg: something useful
|
||||||
|
-- Looking for strerror_r - found
|
||||||
|
-- Looking for strerror_s - not found
|
||||||
|
[49/176] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ErrorHandling.cpp.o
|
||||||
|
[127/2034] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regerror.c.o
|
||||||
|
-- Performing Test HAS_WERROR_GLOBAL_CTORS
|
||||||
|
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
|
||||||
|
-- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
|
||||||
error aborting
|
error aborting
|
||||||
error_msg : None
|
error_msg : None
|
||||||
error_type : Job
|
error_type : Job
|
||||||
|
Reference in New Issue
Block a user