Introduce watchdog into ProcessGroupManager [3/N]: Move ownership to ProcessGroupManager#355
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
c2daf96 to
d7352ab
Compare
|
The created documentation from the pull request is available at: docu-html |
| { | ||
| LM_LOG_ERROR() << "Watchdog: Invalid watchdog device configuration. Watchdog initialization failed."; | ||
| isSuccess = false; | ||
| LM_LOG_ERROR() << "Watchdog: Invalid watchdog timeout value " << watchdog_config.max_timeout_ms |
There was a problem hiding this comment.
| LM_LOG_ERROR() << "Watchdog: Invalid watchdog timeout value " << watchdog_config.max_timeout_ms | |
| LM_LOG_ERROR() << "Watchdog: Invalid watchdog timeout value" << watchdog_config.max_timeout_ms |
I think the "<<" operator in logging implementation adds an additional whitespace automatically. If we add an extra whitespace, we'll have 2 whitespace in the resulting log line
|
I think score/launch_manager/src/daemon/src/watchdog/IDeviceConfigFactory.hpp can now be moved to details folder, as the public interface does not require this anymore. |
| hdrs = ["DeviceIf.hpp"], | ||
| include_prefix = "score/mw/launch_manager/watchdog/details", | ||
| strip_include_prefix = "/score/launch_manager/src/daemon/src/watchdog/details", | ||
| visibility = ["//score:__subpackages__"], |
There was a problem hiding this comment.
One idea: We could set the visibility for the library targets in this file to "//score/launch_manager/src/watchdog:__subpackages__" so that bazel also enforced that these classes are internal to the watchdog component.
|
If I see it correctly, I think score/launch_manager/src/daemon/src/alive_monitor/details/factory/MachineConfigFactory.cpp and score/launch_manager/src/daemon/src/alive_monitor/details/factory/MachineConfigFactory_new.cpp can be removed / trimmed down as the watchdog is no longer loaded from config there. I think the only value still required is the periodicity in which supervisions are evaluated. |
Though this could also be done in a separate PR if you like to keep the changes here limited. |
| visibility = ["//score:__subpackages__"], | ||
| deps = [":i_device_config_factory"], | ||
| deps = [ | ||
| ":i_device_config_factory", |
There was a problem hiding this comment.
| ":i_device_config_factory", |
#330
This is part 3 of a number of PRs, to move the watchdog ownership to
ProcessGroupManager. Now that we have prepared the watchdog sources in previous PRs, we are now doing the actual owner change here.I have performed the following steps:
createWatchdog()factory.PhmDaemon.process_group_manager.cppNote that unit tests are to follow in a separate PR.