Lines Matching +full:if +full:- +full:no +full:- +full:files +full:- +full:found
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
31 @raise client_utils.error.CmdError if minidump_stackwalk return code != 0.
44 @raises DevServerException if no server with capacity could be found.
45 @returns Hostname of resolved server, if found.
49 if not crashserver_name:
53 'No crash server has the capacity to symbolicate the dump.')
72 # First, look up what build we tested. If we can't find this, we can't
75 if JOB_BUILD_KEY not in keyvals:
87 if not trace_text:
109 # If that did not succeed, try to symbolicate using the dev server.
117 if is_timeout:
136 Finds all minidump files and generates a stack trace for each.
138 Enumerates all files under the test results directory (recursively)
139 and generates a stack trace file for the minidumps. Minidump files are
140 identified as files with .dmp extension. The stack trace filename is
143 @param host_resultdir: Directory to walk looking for dmp files.
145 @returns The list of all found minidump files. Each dump may or may not have
160 for dir, subdirs, files in os.walk(host_resultdir):
161 for file in files:
162 if file.endswith('.dmp'):
177 This is run when no tests failed. We don't process crashdumps in this
202 if not os.path.exists(infodir):
206 if not host.check_cached_up_status():
219 # Delete infodir if we have no orphans
220 if not orphans:
221 logging.info('There are no orphaned crashes; deleting %s', infodir)
276 # - If one server job runs several client jobs we will only record
278 # - We will record these crashdumps whether or not we successfully
280 if host.job and minidumps or orphans:
314 # tab-prefixed path names. For example, owners of "python:"
316 # sys-devel/gdb-7.7.1-r2
318 # chromeos-base/dev-install-0.0.1-r711
320 # dev-lang/python-2.7.3-r7
325 # with executable files. After annotation the above looks like:
327 # stat: cannot stat '@@@ sys-devel/gdb-7.7.1-r2 @@@': ...
329 # stat: cannot stat '@@@ chromeos-base/dev-install-0.0.1-r711 @@@': ...
330 # 755 -rwxr-xr-x /usr/bin/python
331 # stat: cannot stat '@@@ dev-lang/python-2.7.3-r7 @@@': ...
332 # 755 drwxr-xr-x /etc/env.d/python
337 # The above is then parsed to find packages which contain executable files
338 # (not directories), in this case "chromeos-base/dev-install-0.0.1-r711."
344 r'| sed -e "s/^[^\t].*/@@@ & @@@/" -e "s/^\t//"'
346 ' | xargs -0 -r stat -L -c "%a %A %n" 2>&1')
353 path_re = re.compile('^([0-7]{3,}) (.)')
356 if match:
360 if match:
362 isfile = match.group(2) == '-'
363 if pkg and isexec and isfile:
366 # If exactly one package found it must be the one we want, return it.
367 if len(packages) == 1:
370 # TODO(milleral): Decide if it really is an error if not exactly one
371 # package is found.
372 # It is highly questionable as to if this should be left in the
374 if len(packages) == 0:
375 logging.warning('find_package_of() found no packages for "%s"',
378 logging.warning('find_package_of() found multiple packages for "%s": '
398 if parts[0] == 'exec_name':
400 if not package: