• Home
  • Raw
  • Download

Lines Matching +full:upload +full:- +full:perf +full:- +full:stats

3 # Use of this source code is governed by a BSD-style license that can be
13 # pylint: disable=missing-docstring
69 # pylint: disable=wildcard-import
110 '_-+=>|')
297 if len(data[-1]) == 0:
368 return (1 << 32) - (1 << 32-bits)
470 Read a key-value pair format file into a dictionary, and return it.
484 pattern = r'^([-\.\w]+)\{%s\}=(.*)$' % type_tag
486 pattern = r'^([-\.\w]+)=(.*)$'
511 Write a key-value pair format file out to a file. This uses append
516 characters (or dashes+underscores). However, if type-tag is not
518 the moment the only valid values of type_tag are "attr" and "perf".
529 key_regex = re.compile(r'^[-\.\w]+$')
531 if type_tag not in ('attr', 'perf'):
534 key_regex = re.compile(r'^[-\.\w]+\{%s\}$' % escaped_tag)
565 logging.debug('Fetching %s -> %s', url, filename)
591 # pylint: disable=redefined-builtin
693 @param stdout_tee: optional file-like object to which stdout data
758 "Command returned non-zero exit status")
769 - commands is a list of commands to run in parallel.
770 - ignore_status toggles whether or not an exception should be raised
789 "Command returned non-zero exit status")
869 time_left = stop_time - time.time()
876 # EOF, that is the process has terminated) or when a non-fatal
901 string_stdin = string_stdin.encode('utf-8', 'strict')
918 bg_job.result.duration = time.time() - start_time
932 time_left = stop_time - time.time()
945 bg_job.result.duration = time.time() - start_time
1027 command's exit code is non-zero
1072 if out[-1:] == '\n':
1073 out = out[:-1]
1088 if out[-1:] == '\n':
1089 out = out[:-1]
1117 elapsed = time.time() - start
1122 s_user, s_system = [a - b for a, b in zip(self_post, self_pre)[:2]]
1123 c_user, c_system = [a - b for a, b in zip(child_post, child_pre)[:2]]
1144 arch = run_function('/bin/uname -m').stdout.rstrip()
1154 'arm': 'ELF 32-bit.*, ARM,',
1155 'arm64': 'ELF 64-bit.*, ARM aarch64,',
1156 'i386': 'ELF 32-bit.*, Intel 80386,',
1157 'x86_64': 'ELF 64-bit.*, x86-64,',
1160 cmd = 'file --brief --dereference /bin/sh'
1211 logging.info('Writing scaling governor mode \'%s\' -> %s', value, path)
1244 value = run_func('head -n 1 %s' % path, verbose=False).stdout
1365 test_index = random.randint(0, len(self.test_list)-1)
1543 return get_field(read_file(pid_stat_path % pid), 1)[1:-1]
1595 i -= 1
1602 path_list[:0] = ['..'] * (len(ref_list) - i)
1632 POSIX shell syntax recognizes no escape characters inside a single-quoted
1636 ' -> close current quote
1637 \' -> insert a literal single quote
1638 ' -> reopen quoting again.
1668 args.append('--host=' + os.environ['CHOST'])
1670 args.append('--build=' + os.environ['CBUILD'])
1672 args.append('--target=' + os.environ['CTARGET'])
1691 Replacement for built-in function cmp that was removed in Python 3
1698 return (x > y) - (x < y)
1705 -1
1706 >>> compare_tuple("foo-1.1", "foo-1.2")
1707 -1
1709 -1
1713 -1
1722 -1 if ver1 < ver2
1724 ax = re.split('[.-]', ver1)
1725 ay = re.split('[.-]', ver2)
1741 args - list of autoserv extra arguments.
1760 Finds a semi-random available port. A race condition is still
1853 if time.time() - start_time_sec >= timeout_sec:
1885 if time.time() - start_time_sec >= timeout_sec:
1984 cmd_result = run('sudo vpd -g %s' % vpd_key)
2028 args.append('-w%d' % deadline)
2030 args.append('-c%d' % tries)
2032 args.append('-I%s' % interface)
2035 args = [user, '-c', ' '.join([cmd] + args)]
2063 # Report the two stats lines, as a single line.
2064 # [-2]: packets transmitted, 1 received, 0% packet loss, time 0ms
2065 # [-1]: rtt min/avg/max/mdev = 0.497/0.497/0.497/0.000 ms
2066 stats = lines[-2:]
2067 while '' in stats:
2068 stats.remove('')
2070 if stats or len(lines) < 2:
2071 logging.debug('[rc=%s] %s', rc, '; '.join(stats))
2104 Example: chromeos1-power-host2.cros
2116 Example: chromeos1-power-host2.cros -> chromeos1-power-host2-wlan.cros
2122 split_host[0] += '-wlan'
2205 # For non-moblab, use results_storage_server or default.
2206 if not is_moblab(): # pylint: disable=undefined-variable
2210 # name and mac-address/moblab_id as path.
2223 """Upload to GS bucket.
2225 @param local_file: Local file to upload
2226 @param remote_file: Remote location to upload the local_file to.
2230 upload.
2231 @param transfer_timeout: Timeout for this upload call.
2233 the uploader has permissions to execute the upload.
2237 @returns True/False - depending on if the upload succeeded or failed.
2240 CANNED_ACLS = ['project-private', 'private', 'public-read',
2241 'public-read-write', 'authenticated-read',
2242 'bucket-owner-read', 'bucket-owner-full-control']
2246 cmd = '%s cp -a %s %s %s' % (_GSUTIL_BIN, acl, local_file, remote_file)
2251 cmd = '%s cp -a private %s %s' % (_GSUTIL_BIN, local_file, remote_file)
2402 return re.sub('.*(R[0-9]+|LATEST)-', '', uri).strip('/')
2410 @return: 1 if x > y, -1 if x < y, and 0 if x == y
2413 # Converts a gs uri 'gs://.../R75-<major>.<minor>.<sub>' to
2425 return -1
2474 return argspec.defaults[::-1][len(argspec.args) - index - 1]
2514 cmd_result = run('systemctl show -p MainPID %s' %
2592 run('sudo -n true')
2604 result = run('grep -q "/lxc/" /proc/1/cgroup',
2621 and os.path.exists('/opt/google/chrome/pepper/pepper-flash.info'))
2645 mask = ((2<<mask_bits-1) -1)<<(32-mask_bits)
2683 The map can be pre-built for better performance, e.g., when
2747 matched_maskbit = -1
2779 @param target: Name of an Android build target, e.g., shamu-eng.
2784 board, build_type = target.split('-')
2791 The Launch Control target has the format of build_target-build_type, e.g.,
2792 shamu-eng or dragonboard-userdebug. This method extracts the build target
2795 @param target: Name of a Launch Control target, e.g., shamu-eng.
2799 match = re.match('(?P<build_target>.+)-(?P<build_type>[^-]+)', target)
2810 ChromeOS build: daisy-release/R50-1234.0.0
2811 Launch Control build: git_mnc_release/shamu-eng
2830 If the file name contains a path component, it is checked as-is.
2832 PATH prepended. This behavior is similar to the 'which' command-line tool.
2940 if time.time() + sleep_interval - start_time > timeout:
2944 raise exception # pylint: disable=raising-bad-type
3029 if time.time() - cond_hold_start_time > hold_interval:
3037 time_remaining = timeout - (time.time() - start_time)
3042 raise exception # pylint: disable=raising-bad-type
3104 the passed-in threadsafe queue.
3121 to the thread to give it result-storing capability.
3205 # and should be updated when possible. ("master" -> "main")
3208 # 36 35 98:0 /mnt1 /mnt2 rw,noatime master:1 - ext3 /dev/root \
3221 if field == '-':
3230 CHART_ADDRESS_SUFFIX = '-tablet'
3356 ONLY to be used on non-scheduled tests (aka local runs).