refactor(update): drop the tombstone comment at the old matcher site and a duplicated exactness leg
This commit is contained in:
@@ -543,10 +543,6 @@ def _surviving_gateway_pids_after_failed_restart():
|
||||
return None
|
||||
|
||||
|
||||
# `_gateway_service_matches_profile` is imported from update_inventory so plan
|
||||
# reconciliation and abort-recovery share one systemd/launchd/s6 matcher.
|
||||
|
||||
|
||||
_MANUAL_GATEWAY_SKIP_REASON = (
|
||||
"manual gateway has no supervisor relaunch authority; left running for explicit operator restart"
|
||||
)
|
||||
|
||||
@@ -162,13 +162,6 @@ def test_launchd_named_profile_and_failed_label():
|
||||
failed_units=["ai.hermes.gateway"],
|
||||
)
|
||||
assert failed[0]["outcome"] == "failed"
|
||||
# Sibling label must not credit the default profile (exact match, not prefix).
|
||||
sibling = match_runtime_outcomes(
|
||||
_plan(_rt("default", 403, supervisor="launchd")),
|
||||
restarted_services=["ai.hermes.gateway-foo"], relaunched_profiles=[],
|
||||
externally_supervised_profiles=[], killed_pids=set(), failed_units=[],
|
||||
)
|
||||
assert sibling[0]["outcome"] == "unaccounted"
|
||||
|
||||
|
||||
def test_untouched_runtime_is_unaccounted_and_escalates(capsys):
|
||||
|
||||
Reference in New Issue
Block a user