Skip to content

Commit 5c2a682

Browse files
authored
Remove Deadline and Logical Supervisions from Launch Manager (#128)
* Remove deadline and logical supervisions from launch manager daemon * Apply suggestions from review
1 parent 893b501 commit 5c2a682

26 files changed

Lines changed: 23 additions & 2551 deletions

File tree

scripts/config_mapping/lifecycle_config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ def get_all_refProcessGroupStates(run_targets):
227227
hm_config["hmMonitorInterface"] = []
228228
hm_config["hmSupervisionCheckpoint"] = []
229229
hm_config["hmAliveSupervision"] = []
230-
hm_config["hmDeadlineSupervision"] = []
231-
hm_config["hmLogicalSupervision"] = []
232230
hm_config["hmLocalSupervision"] = []
233231
hm_config["hmGlobalSupervision"] = []
234232
hm_config["hmRecoveryNotification"] = []

scripts/config_mapping/tests/basic_test/expected_output/hm_demo.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@
198198
]
199199
}
200200
],
201-
"hmDeadlineSupervision": [],
202-
"hmLogicalSupervision": [],
203201
"hmLocalSupervision": [
204202
{
205203
"ruleContextKey": "someip-daemon_local_supervision",

scripts/config_mapping/tests/empty_health_config_test/expected_output/hm_demo.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"hmMonitorInterface": [],
66
"hmSupervisionCheckpoint": [],
77
"hmAliveSupervision": [],
8-
"hmDeadlineSupervision": [],
9-
"hmLogicalSupervision": [],
108
"hmLocalSupervision": [],
119
"hmGlobalSupervision": [],
1210
"hmRecoveryNotification": []

scripts/config_mapping/tests/empty_lm_config_test/expected_output/hm_demo.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"hmMonitorInterface": [],
66
"hmSupervisionCheckpoint": [],
77
"hmAliveSupervision": [],
8-
"hmDeadlineSupervision": [],
9-
"hmLogicalSupervision": [],
108
"hmLocalSupervision": [],
119
"hmGlobalSupervision": [],
1210
"hmRecoveryNotification": []

scripts/config_mapping/tests/health_config_test/expected_output/hm_demo.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@
198198
]
199199
}
200200
],
201-
"hmDeadlineSupervision": [],
202-
"hmLogicalSupervision": [],
203201
"hmLocalSupervision": [
204202
{
205203
"ruleContextKey": "state_manager_local_supervision",

scripts/config_mapping/tests/lm_config_test/expected_output/hm_demo.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,6 @@
261261
]
262262
}
263263
],
264-
"hmDeadlineSupervision": [],
265-
"hmLogicalSupervision": [],
266264
"hmLocalSupervision": [
267265
{
268266
"ruleContextKey": "test_app2_local_supervision",

src/launch_manager_daemon/health_monitor_lib/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,10 @@ cc_library_with_common_opts(
203203
name = "supervision",
204204
srcs = [
205205
"src/score/lcm/saf/supervision/Alive.cpp",
206-
"src/score/lcm/saf/supervision/Deadline.cpp",
207206
"src/score/lcm/saf/supervision/Global.cpp",
208207
"src/score/lcm/saf/supervision/ICheckpointSupervision.cpp",
209208
"src/score/lcm/saf/supervision/ISupervision.cpp",
210209
"src/score/lcm/saf/supervision/Local.cpp",
211-
"src/score/lcm/saf/supervision/Logical.cpp",
212210
"src/score/lcm/saf/supervision/ProcessStateTracker.cpp",
213211
],
214212
hdrs = glob([

src/launch_manager_daemon/health_monitor_lib/config/hm_flatcfg.fbs

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ table HMEcuCfg {
1818
hmMonitorInterface: [HmMonitorInterface] (id:3);
1919
hmSupervisionCheckpoint: [HmSupervisionCheckpoint] (id:4);
2020
hmAliveSupervision: [HmAliveSupervision] (id:5);
21-
hmDeadlineSupervision: [HmDeadlineSupervision] (id:6);
22-
hmLogicalSupervision: [HmLogicalSupervision] (id:7);
23-
hmLocalSupervision: [HmLocalSupervision] (id:8);
24-
hmGlobalSupervision: [HmGlobalSupervision] (id:9);
25-
hmRecoveryNotification: [RecoveryNotification] (id:10);
21+
hmLocalSupervision: [HmLocalSupervision] (id:6);
22+
hmGlobalSupervision: [HmGlobalSupervision] (id:7);
23+
hmRecoveryNotification: [RecoveryNotification] (id:8);
2624
}
2725

2826
table Process {
@@ -81,56 +79,17 @@ table HmAliveSupervision {
8179
refProcessGroupStates: [HmRefProcessGroupStates] (id:9);
8280
}
8381

84-
table HmDeadlineSupervision {
85-
ruleContextKey: string (id:0);
86-
maxDeadline: double (id:1);
87-
minDeadline: double (id:2);
88-
checkpointTransition: HmCheckpointTransition (id:3);
89-
refProcessIndices: [uint32] (id:4);
90-
refProcessGroupStates: [HmRefProcessGroupStates] (id:5);
91-
}
92-
93-
table HmLogicalSupervision {
94-
ruleContextKey: string (id:0);
95-
checkpoints: [HmLogicalCheckpoint] (id:1);
96-
transitions: [HmLogicalTransition] (id:2);
97-
refProcessIndices: [uint32] (id:3);
98-
refProcessGroupStates: [HmRefProcessGroupStates] (id:4);
99-
}
100-
101-
table HmLogicalCheckpoint {
102-
refCheckPointIndex: uint32 (id:0);
103-
isInitial: bool (id:1);
104-
isFinal: bool (id:2);
105-
}
106-
107-
table HmLogicalTransition {
108-
checkpointSourceIdx: uint32 (id:0);
109-
checkpointTargetIdx: uint32 (id:1);
110-
}
111-
11282
table HmLocalSupervision {
11383
ruleContextKey: string (id:0);
11484
infoRefInterfacePath: string (id:1);
11585
hmRefAliveSupervision: [HmRefAliveSupervision] (id:2);
116-
hmRefDeadlineSupervision: [HmRefDeadlineSupervision] (id:3);
117-
hmRefLogicalSupervision: [HmRefLogicalSupervision] (id:4);
11886
}
11987

12088
table HmRefAliveSupervision {
12189
ruleContextKey: int (id:0);
12290
refAliveSupervisionIdx: uint32 (id:1);
12391
}
12492

125-
table HmRefDeadlineSupervision {
126-
ruleContextKey: int (id:0);
127-
refDeadlineSupervisionIdx: uint32 (id:1);
128-
}
129-
130-
table HmRefLogicalSupervision {
131-
refLogicalSupervisionIdx: uint32 (id:0);
132-
}
133-
13493
table HmGlobalSupervision {
13594
ruleContextKey: string (id:0);
13695
isSeverityCritical: bool (id:1);

0 commit comments

Comments
 (0)