• Home
  • Raw
  • Download

Lines Matching refs:f

77         f'--runs_per_test={str(arg_value)}'
81 f'--flaky_test_attempts={str(arg_value)}'
341 with open(self._md5_checksum_file, 'wb') as f:
342 f.write(self._file_checksum_list.SerializeToString())
349 with open(self._md5_checksum_file, 'rb') as f:
353 file_md5_list.ParseFromString(f.read())
425 sorted(f.name for f in self.enabled_features if f.affects_workspace)
536 name = f'{info[constants.MODULE_INFO_ID]}_{name_suffix}'
550 name = f'{info[constants.MODULE_INFO_ID]}_host'
565 name = f'{info[constants.MODULE_INFO_ID]}_host'
571 name, package_name, info, f'//{JDK_PACKAGE_NAME}:{JDK_NAME}'
613 f'Could not find module `{module_name}` in module_info file'
623 raise ValueError(f'Module `{module_name}` does not have any path')
631 warnings.formatwarning = lambda msg, *args, **kwargs: f'{msg}\n'
633 f'Module `{module_name}` has more than one path: `{mod_path}`'
696 package_name, name, self.host_out_path.joinpath(f'testcases/{name}')
769 with self.workspace_out_path.joinpath('constants.bzl').open('w') as f:
770 writer = IndentWriter(f)
779 raise RuntimeError(f'Path `{path}` does not exist in source tree.')
843 f'Cannot add target `{target_name}` which already'
844 f' exists in package `{self.path}`'
864 with package_dir.joinpath('BUILD.bazel').open('w') as f:
865 f.write('package(default_visibility = ["//visibility:public"])\n')
866 f.write('\n')
870 f.write(f'load("{bzl_package}", {symbols_text})\n')
873 f.write('\n')
874 target.write_to_build_file(f)
910 raise ValueError(f'Target not set for ref `{target_name}`')
929 return f'//{self.package_name()}:{self.name()}'
940 def write_to_build_file(self, f: IO):
962 def write_to_build_file(self, f: IO):
963 writer = IndentWriter(f)
971 'srcs', [f'{self._target_name}_files/**']
977 symlink = package_dir.joinpath(f'{self._target_name}_files')
1101 def write_to_build_file(self, f: IO):
1103 writer = IndentWriter(f)
1106 writer.write_line(f'{self._rule_name}(')
1148 f'Failed to get "java-folder" from `{test_xml_config_template}`'
1164 self._underlying.write_line(f'{attribute_name} = "{value}",')
1170 self._underlying.write_line(f'{attribute_name} = "{label_name}",')
1176 self._underlying.write_line(f'{attribute_name} = [')
1180 self._underlying.write_line(f'"{value}",')
1190 self._underlying.write_line(f'{attribute_name} = [')
1194 self._underlying.write_line(f'"{label}",')
1199 self._underlying.write_line(f'{attribute_name} = glob([')
1203 self._underlying.write_line(f'"{pattern}",')
1239 c: [c.out_path.joinpath(f'testcases/{module_name}')]
1328 def write_to_build_file(self, f: IO):
1329 writer = IndentWriter(f)
1332 writer.write_line(f'{self._rule_name()}(')
1335 writer.write_line(f'name = "{self._target_name}",')
1336 writer.write_line(f'module_name = "{self._module_name}",')
1363 for f in files:
1364 rel_path = f.relative_to(config.out_path)
1367 symlink.symlink_to(f)
1383 f'glob(["{self._target_name}/{c.name}/**/*"])'
1400 writer.write(f'{attribute_name} = ')
1415 for f in paths:
1416 matching_configs = [c for c in configs if _is_relative_to(f, c.out_path)]
1425 f'Installed path `{f}` is not in'
1429 config_files[matching_configs[0]].append(f)
1599 def __init__(self, f: IO):
1600 self._file = f
1636 writer.write(f'"//bazel/rules:{config.name}": ')
1648 writer.write_line(f'"{label}",')
1723 return f'{super().__str__()}\nstdout={self.stdout}\n\nstderr={self.stderr}'
1806 atest_utils.colorful_print(f'Stop running test(s): {e}', constants.RED)
1831 'log', f'{package_name}', f'{t_info.test_name}_{target_suffix}'
1860 f'--config={bes_publish_config}',
1861 f'--build_metadata=ab_branch={branch}',
1862 f'--build_metadata=ab_target={target}',
1871 return [f'--config={remote_config}']
1883 return [f'--config={remote_avd_config}']
1908 _query_file.write(f'deps(tests({deps_expression}))')
1913 f'--query_file={query_file.name}',
1915 f'--starlark:file={self.starlark_file}',
1954 return f'//{package_name}:{module_name}_{target_suffix}'
1981 f'{module_name}_{target_suffix}',
2019 startup_options = f'--bazelrc={bazelrc}'
2058 f'cd {self.bazel_workspace} && '
2059 f'{self.bazel_binary} {startup_options} '
2060 f'test {target_patterns} {bazel_args_str}'
2107 args_to_append.extend([f'--test_arg={i}' for i in tf_args])
2158 f'Missing the build variants for module {module_name} in cquery output!'
2164 return f'{module_name}-{_CONFIG_TO_VARIANT[list(build_variants)[0]]}'