mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 06:25:44 +00:00
feat(artifacts): name integrity checks for DMG, directory and release-exposure readers (#11056)
* feat(artifacts): name integrity checks for DMG, directory and release-exposure readers Directory members and release-exposure members whose file identity or bytes changed since inventory report member-identity; a directory entry without captured state reports entry-metadata and a changed directory root container-identity; an hdiutil checksum failure reports image-checksum. AnalysisArtifactChangedError carries the check from the reader failure and projects it as details.integrity_check. * fix(artifacts): name missing directory entry state and keep integrity checks through error copies * feat(artifacts): name integrity checks for ZIP, PyInstaller and changed release files (#11081) feat(artifacts): name integrity checks for ZIP, PyInstaller and changed release files, and keep them through reader projections * feat(artifacts): name integrity checks for the remaining readers and their projections (#11098)
This commit is contained in:
1 parent
598a0c4034
commit
7134053d27
63 files changed
+494
-185
No files matched your search
@@ -4,7 +4,10 @@ import {
|
||||
bindArtifactFileCleanup,
|
||||
} from "../artifacts/ArtifactFileOperation.js";
|
||||
import { ArtifactReaderFailure } from "../artifacts/ArtifactReader.js";
|
||||
import { stableArtifactInputRecovery } from "../artifacts/StableArtifactFailure.js";
|
||||
import {
|
||||
stableArtifactInputRecovery,
|
||||
readerIntegrityFailure,
|
||||
} from "../artifacts/StableArtifactFailure.js";
|
||||
import type { ArtifactResourceScope } from "../artifacts/ArtifactResourceScope.js";
|
||||
import { readStableArtifact } from "../artifacts/readStableArtifact.js";
|
||||
import {
|
||||
@@ -16,7 +19,6 @@ import type { AnalysisError } from "../domain/analysisErrorBase.js";
|
||||
import { analysisErrorWithCleanupFailure } from "../domain/analysisErrorCleanup.js";
|
||||
import {
|
||||
AnalysisAccessDeniedError,
|
||||
AnalysisArtifactChangedError,
|
||||
AnalysisInputError,
|
||||
AnalysisResourceConstraintError,
|
||||
AnalysisTimeoutError,
|
||||
@@ -93,12 +95,7 @@ const readFailurePrimary = (
|
||||
},
|
||||
);
|
||||
if (owned?.reason === "integrity")
|
||||
return new AnalysisArtifactChangedError(
|
||||
read.operation,
|
||||
read.path,
|
||||
owned.message,
|
||||
{ cause: owned },
|
||||
);
|
||||
return readerIntegrityFailure(read.operation, read.path, owned);
|
||||
if (owned?.reason === "path")
|
||||
return invalidMapping(read, "invalid_value", owned.message, {
|
||||
cause: owned,
|
||||
|
||||
Reference in new issue
Block a user