From 72e69497fc66258d6d3f7ba188414be5c4434236 Mon Sep 17 00:00:00 2001 From: Anand Ananthabhotla Date: Thu, 9 Aug 2018 14:41:24 -0700 Subject: [PATCH] Fix error parsing in build_tools/error_filter.py (#4247) Summary: The error_filter.py script parses the output of the "Build and run" stage of continuous tests to check for errors. It is currently only detecting compile errors and not link errors. This change fixes that. Pull Request resolved: https://github.com/facebook/rocksdb/pull/4247 Differential Revision: D9233735 Pulled By: anand1976 fbshipit-source-id: 16e5a04950891cd9aba5cb3efcb6abc2a2e0d5ae --- build_tools/error_filter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build_tools/error_filter.py b/build_tools/error_filter.py index 9f619cf4b..908eb465c 100644 --- a/build_tools/error_filter.py +++ b/build_tools/error_filter.py @@ -64,8 +64,12 @@ class MatchErrorParser(ErrorParserBase): class CompilerErrorParser(MatchErrorParser): def __init__(self): - # format: '::: error: ' - super(CompilerErrorParser, self).__init__(r'\S+:\d+:\d+: error:') + # format (compile error): + # '::: error: ' + # format (link error): + # ':: error: ' + # The below regex catches both + super(CompilerErrorParser, self).__init__(r'\S+:\d+: error:') class ScanBuildErrorParser(MatchErrorParser):