refactor(kernel): eliminate remaining record predicate copies and compose cleanup dependencies through shared owner (#11799)

* refactor(kernel): eliminate remaining record predicate copies and compose cleanup dependencies through shared owner

* fix(firmware,tests): remove unused cleanup import and align CI shard and CLI registration tests
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 23:09:17 -05:00
1 parent 4a6bee6cdb
commit af062e7a2d
21 files changed
+65 -122

No files matched your search

+2 -4
View File
@@ -81,12 +81,10 @@ import {
} from "./BinarySessionExecution.js";
import { closeAnalysisClient } from "../../providers/AnalysisClientCleanup.js";
import {
analysisErrorWithCleanupFailure,
analysisErrorWithCleanupDependencies,
analysisErrorWithCloseRejection,
analysisErrorWithCloseRejections,
} from "../../domain/analysisErrorCleanup.js";
import { ConfigurationError } from "../../domain/configurationErrors.js";
import type { AnalysisCleanupRetry } from "../../domain/analysisErrorRecovery.js";
import { analysisErrorWithCancellation } from "../../domain/analysisErrorCancellation.js";
import { ProviderAdapterError } from "../../domain/providerAdapterError.js";
@@ -617,11 +615,11 @@ export class BinarySession
this.#clearRuntimeAvailability();
if (isAborted(options.signal))
return err(
analysisErrorWithCleanupFailure(
analysisErrorWithCleanupDependencies(
cancelledBy("open_binary", options.signal),
closed.error,
"open_binary",
).bindCleanupDependencies([closed.error]),
),
);
return closed;
}