Home | History | Annotate | Download | only in cros

Lines Matching refs:artifacts

44 # artifacts are staged.
46 # Artifacts that should be staged when client calls devserver RPC to stage an
49 # Artifacts that should be staged when client calls devserver RPC to stage an
54 # Artifacts that should be staged when client calls devserver RPC to stage an
209 def _get_storage_server_for_artifacts(artifacts=None):
210 """Gets the appropriate storage server for the given artifacts.
212 @param artifacts: A list of artifacts we need to stage.
213 @return: The address of the storage server that has these artifacts.
214 The default image storage server if no artifacts are specified.
218 if artifacts and factory_artifact and factory_artifact in artifacts:
843 sets of artifacts. This base class abstracts the shared functions between
867 def create_metadata(server_name, image, artifacts=None, files=None):
874 @param artifacts: A list of artifacts.
883 if artifacts:
884 metadata['artifacts'] = ' '.join(artifacts)
967 """Polling devserver.is_staged until all artifacts are staged.
971 @return: True if all artifacts are staged in devserver.
978 @return: True if all artifacts are staged in devserver. False
982 the artifacts. devserver raises an HTTPError or a CmdError
1018 """Helper method to make a urlopen call, and wait for artifacts staged.
1060 def _stage_artifacts(self, build, artifacts, files, archive_url, **kwargs):
1061 """Tell the devserver to download and stage |artifacts| from |image|
1064 This is the main call point for staging any specific artifacts for a
1065 given build. To see the list of artifacts one can stage see:
1071 @param artifacts: A list of artifacts.
1082 archive_url = _get_storage_server_for_artifacts(artifacts) + build
1084 artifacts_arg = ','.join(artifacts) if artifacts else ''
1088 ('artifacts=%s files=%s ' % (artifacts_arg, files_arg),
1091 staging_info = ('build=%s, artifacts=%s, files=%s, archive_url=%s' %
1092 (build, artifacts, files, archive_url))
1093 logging.info('Staging artifacts on devserver %s: %s',
1098 'artifacts': artifacts_arg,
1105 f = {'artifacts': artifacts_arg,
1112 logging.info('Finished staging artifacts: %s', staging_info)
1120 'artifacts': artifacts_arg,
1127 """Helper method to make a urlopen call, and wait for artifacts staged.
1135 def _trigger_download(self, build, artifacts, files, synchronous=True,
1144 staging before returning. Otherwise only the artifacts necessary
1147 artifacts have finished staging.
1167 'artifacts': artifacts,
1183 self._finish_download(build, artifacts, files, **kwargs_build_info)
1186 def _finish_download(self, build, artifacts, files, **kwargs_build_info):
1191 before all artifacts have been staged. This method contacts the
1207 'artifacts': artifacts,
1221 def locate_file(self, file_name, artifacts, build, build_info):
1225 the given file name inside specified build artifacts.
1228 @param artifacts: A list of artifact names to search for the file.
1242 'look for file %s in artifacts %s.' %
1243 (file_name, artifacts))
1245 'artifacts': artifacts}
1251 # artifacts. Therefore, os_type for devserver calls is `android` for
1325 The calls to devserver to stage artifacts, including stage and download, are
1327 devserver to stage certain artifacts, devserver handles the call and starts
1328 staging artifacts in a new thread, and return |Success| without waiting for
1330 devserver's is_staged call until all artifacts are staged.
1332 running out, as staging artifacts might take long time, and cherrypy starts
1337 """A container for URLs of staged artifacts.
1352 def wait_for_artifacts_staged(self, archive_url, artifacts='', files=''):
1353 """Polling devserver.is_staged until all artifacts are staged.
1356 @param artifacts: Comma separated list of artifacts to download.
1358 @return: True if all artifacts are staged in devserver.
1361 'artifacts': artifacts,
1367 def call_and_wait(self, call_name, archive_url, artifacts, files,
1369 """Helper method to make a urlopen call, and wait for artifacts staged.
1373 @param artifacts: Comma separated list of artifacts to download.
1387 'artifacts': artifacts,
1394 def stage_artifacts(self, image=None, artifacts=None, files='',
1396 """Tell the devserver to download and stage |artifacts| from |image|.
1398 This is the main call point for staging any specific artifacts for a
1399 given build. To see the list of artifacts one can stage see:
1406 @param artifacts: A list of artifacts.
1414 if not artifacts and not files:
1417 self._stage_artifacts(image, artifacts, files, archive_url)
1445 staging before returning. Otherwise only the artifacts necessary
1448 artifacts have finished staging.
1458 artifacts = _ARTIFACTS_TO_BE_STAGED_FOR_IMAGE
1459 self._trigger_download(image, artifacts, files='',
1491 before all artifacts have been staged. This method contacts the
1499 artifacts = _ARTIFACTS_TO_BE_STAGED_FOR_IMAGE_WITH_AUTOTEST
1500 self._finish_download(image, artifacts, files='')
1804 download the artifacts. devserver raises an HTTPError or
2105 The calls to devserver to stage artifacts, including stage and download, are
2107 devserver to stage certain artifacts, devserver handles the call and starts
2108 staging artifacts in a new thread, and return |Success| without waiting for
2110 devserver's is_staged call until all artifacts are staged.
2112 running out, as staging artifacts might take long time, and cherrypy starts
2117 archive_url=None, artifacts='', files=''):
2118 """Polling devserver.is_staged until all artifacts are staged.
2125 @param artifacts: Comma separated list of artifacts to download.
2128 @return: True if all artifacts are staged in devserver.
2133 'artifacts': artifacts,
2143 artifacts, files, error_message,
2145 """Helper method to make a urlopen call, and wait for artifacts staged.
2153 @param artifacts: Comma separated list of artifacts to download.
2169 'artifacts': artifacts,
2180 image=None, artifacts=None, files='', archive_url=None):
2181 """Tell the devserver to download and stage |artifacts| from |image|.
2183 This is the main call point for staging any specific artifacts for a
2184 given build. To see the list of artifacts one can stage see:
2196 @param artifacts: A list of artifacts.
2213 if not artifacts and not files:
2220 self._stage_artifacts(build, artifacts, files, archive_url,
2236 def trigger_download(self, target, build_id, branch, artifacts=None,
2244 staging before returning. Otherwise only the artifacts necessary
2247 artifacts have finished staging.
2253 @param artifacts: A string of artifacts separated by comma. If None,
2254 use the default artifacts for Android or Brillo build.
2256 @param os: OS artifacts to download (android/brillo).
2267 if not artifacts:
2269 artifacts = (
2272 self._trigger_download(build, artifacts, files=files,
2280 before all artifacts have been staged. This method contacts the
2288 @param os: OS artifacts to download (android/brillo).
2297 artifacts = (
2300 self._finish_download(build, artifacts, files='', **android_build_info)