"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/steps/python.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

python.py  (buildbot-3.0.2):python.py  (buildbot-3.1.0)
skipping to change at line 229 skipping to change at line 229
'W': "warning", # for python specific problems 'W': "warning", # for python specific problems
'E': "error", # for much probably bugs in the code 'E': "error", # for much probably bugs in the code
'F': "fatal", # error prevented pylint from further processing. 'F': "fatal", # error prevented pylint from further processing.
'I': "info", 'I': "info",
} }
_flunkingIssues = ("F", "E") # msg categories that cause FAILURE _flunkingIssues = ("F", "E") # msg categories that cause FAILURE
_msgtypes_re_str = '(?P<errtype>[{}])'.format(''.join(list(_MESSAGES))) _msgtypes_re_str = '(?P<errtype>[{}])'.format(''.join(list(_MESSAGES)))
_default_line_re = re.compile(r'^{}(\d+)?: *\d+(, *\d+)?:.+'.format(_msgtype s_re_str)) _default_line_re = re.compile(r'^{}(\d+)?: *\d+(, *\d+)?:.+'.format(_msgtype s_re_str))
_default_2_0_0_line_re = \
re.compile(r'^(?P<path>[^:]+):(?P<line>\d+):\d+: *{}(\d+)?:.+'.format(_m
sgtypes_re_str))
_parseable_line_re = re.compile( _parseable_line_re = re.compile(
r'(?P<path>[^:]+):(?P<line>\d+): \[{}(\d+)?(\([a-z-]+\))?[,\]] .+'.forma t(_msgtypes_re_str)) r'(?P<path>[^:]+):(?P<line>\d+): \[{}(\d+)?(\([a-z-]+\))?[,\]] .+'.forma t(_msgtypes_re_str))
def __init__(self, store_results=True, **kwargs): def __init__(self, store_results=True, **kwargs):
kwargs = self.setupShellMixin(kwargs) kwargs = self.setupShellMixin(kwargs)
super().__init__(**kwargs) super().__init__(**kwargs)
self._store_results = store_results self._store_results = store_results
self.counts = {} self.counts = {}
self.summaries = {} self.summaries = {}
self.addLogObserver('stdio', logobserver.LineConsumerLogObserver(self._l og_consumer)) self.addLogObserver('stdio', logobserver.LineConsumerLogObserver(self._l og_consumer))
# returns (message type, path, line) tuple if line has been matched, or None otherwise # returns (message type, path, line) tuple if line has been matched, or None otherwise
def _match_line(self, line): def _match_line(self, line):
m = self._default_2_0_0_line_re.match(line)
if m:
try:
line_int = int(m.group('line'))
except ValueError:
line_int = None
return (m.group('errtype'), m.group('path'), line_int)
m = self._parseable_line_re.match(line) m = self._parseable_line_re.match(line)
if m: if m:
try: try:
line_int = int(m.group('line')) line_int = int(m.group('line'))
except ValueError: except ValueError:
line_int = None line_int = None
return (m.group('errtype'), m.group('path'), line_int) return (m.group('errtype'), m.group('path'), line_int)
m = self._default_line_re.match(line) m = self._default_line_re.match(line)
if m: if m:
 End of changes. 2 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)