MCPcopy Create free account
hub / github.com/ceph/ceph / add

Method add

src/script/cpatch.py:430–448  ·  view source on GitHub ↗

Request that the given component be added to the build.

(self, component)

Source from the content-addressed store, hash-verified

428 log.debug("cpatch working dir: %s", self._workdir)
429
430 def add(self, component):
431 """Request that the given component be added to the build."""
432 log.info("Including: %s", component)
433 dispatch = {
434 Component.PY_COMMON: self._py_common_job,
435 Component.CEPHADM: self._cephadm_job,
436 Component.PY_MGR: self._py_mgr_job,
437 Component.DASHBOARD: self._py_mgr_job,
438 Component.PYBIND: self._pybind_job,
439 Component.CORE: self._core_job,
440 Component.CEPHFS: self._cephfs_job,
441 Component.RBD: self._rbd_job,
442 Component.RGW: self._rgw_job,
443 }
444 job = dispatch[component]
445 if component == Component.DASHBOARD:
446 self._include_dashboard = True
447 if job not in {j for _, j in self._jobs}:
448 self._jobs.append((component, job))
449
450 def build(self):
451 """Build the container image."""

Callers 7

_execute_pull_requestMethod · 0.45
wantsMethod · 0.45
parse_test_resultsMethod · 0.45
_build_tarMethod · 0.45
mainFunction · 0.45

Calls 2

infoMethod · 0.45
appendMethod · 0.45

Tested by 1

parse_test_resultsMethod · 0.36