fix(process): expose launcher identity mismatch

This commit is contained in:
morluto committed 2026-07-24 03:55:08 +00:00
1 parent 9c3aec8131
commit 62ac73cdd7
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -322,7 +322,7 @@ const launcherIdentityFailure = (
ownership.expectedCommand !== undefined &&
!matchesOwnedProcessCommand(launcher.command, ownership.expectedCommand)
)
return "owned launcher command identity did not match";
return `owned launcher command identity did not match (observed=${launcher.command}; expected=${ownership.expectedCommand})`;
return null;
};
@@ -477,7 +477,7 @@ export const observeOwnedProcessLineage = async (
)
return unavailableLineage(
ownership,
"owned launcher command identity did not match",
`owned launcher command identity did not match (observed=${launcher.command}; expected=${ownership.expectedCommand})`,
);
const descendants = descendantsOf(launcher.pid, processes);
for (const member of [launcher, ...descendants]) {
+2 -1
View File
@@ -522,7 +522,8 @@ describe("owned process-group cleanup", () => {
),
).toEqual({
cleaned: false,
reason: "owned launcher command identity did not match",
reason:
"owned launcher command identity did not match (observed=fixture; expected=/owned/hopper)",
});
expect(signalGroup).not.toHaveBeenCalled();
});