mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 19:23:24 +00:00
refactor(providers): finalize apktool and shared artifact resources through runOwned (#10653)
* refactor(providers): finalize apktool and shared artifact resources through runOwned runOwned moves to the provider layer so provider sites can use it without depending on application workflows. It gains a completed-value projection (partial) for values that are not themselves partial observations, an optional signal, and cleanupLeases that bind a close failure to the exact leases whose confirmed release resolves it. ArtifactAnalysisResources.finish is removed; TShark and sigrok finalize through runOwned with the shared release as close. Apktool's hand-written release, cancellation and lease-group composition is replaced by runOwned. A failed primary now keeps a cancellation observed during final cleanup as a secondary failure, as the documented precedence requires. A counted architecture guard refuses new hand-written completed-result abort reclassification outside runOwned. * refactor(adb): finalize runtime-root work through runOwned (#10660) * refactor(adb): finalize runtime-root work through runOwned The ADB runtime-root finalizer re-derived the precedence by hand and kept its own cancellation-with-cleanup combiner. It now runs through runOwned: the work body maps snapshot failures, close releases the root lease and binds its own cleanup error, and partial projects the completed execution. A cancellation whose cleanup fails is now the shared cleanup composite with the cancellation as its primary, as runOwned produces for every other owner. * refactor(providers): keep completed values as diagnostics in runOwned and migrate four finalizers (#10691) * refactor(providers): keep completed values as diagnostics in runOwned and migrate signature, Ghidra, bundle and LLDB finalization * test(providers): run the lifecycle scenarios over every runOwned adopter shape (#10707) One table of testing.md lifecycle rows runs over partial, diagnostics, publishing and lease adopters, replacing the hand-written precedence cases it covers. * chore(lint): move runOwned's classifier baseline entry with the file
This commit is contained in:
1 parent
b87b318ae7
commit
26520bd290
23 files changed
+1066
-709
No files matched your search
@@ -2,7 +2,7 @@ import {
|
||||
finalizedResult,
|
||||
runOwned,
|
||||
type RecoveredCompletion,
|
||||
} from "../application/runOwned.js";
|
||||
} from "../providers/runOwned.js";
|
||||
import type {
|
||||
AnalysisError,
|
||||
AnalysisPartialObservation,
|
||||
@@ -53,6 +53,7 @@ export const finishAnalysisCommand = async <
|
||||
operation: canonicalOperation,
|
||||
signal,
|
||||
...(fallbackResource === undefined ? {} : { fallbackResource }),
|
||||
partial: (value) => value,
|
||||
close: async () => {
|
||||
try {
|
||||
await service.close();
|
||||
|
||||
Reference in new issue
Block a user