MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / bundleIntegrityError

Function bundleIntegrityError

src/lib/bundle.ts:781–797  ·  view source on GitHub ↗
(
  reason: BundleIntegrityReason,
  message: string,
  requestId: string,
  ids?: Record<string, string | string[] | null>,
)

Source from the content-addressed store, hash-verified

779}
780
781function bundleIntegrityError(
782 reason: BundleIntegrityReason,
783 message: string,
784 requestId: string,
785 ids?: Record<string, string | string[] | null>,
786): ApiError {
787 return ApiError.fromEnvelope({
788 error: {
789 code: 'VALIDATION_ERROR',
790 message,
791 nextAction:
792 'Re-run `testsprite test failure get`. The backend may have been mid-snapshot — a fresh fetch usually succeeds. Report the requestId to support if it persists.',
793 requestId,
794 details: { reason, ...(ids ?? {}) },
795 },
796 });
797}
798
799// Avoid unused-import lint warning for the `mkdtemp` and `readdir`
800// helpers reserved for forensics + future resume work.

Callers 1

assertContextIntegrityFunction · 0.85

Calls 1

fromEnvelopeMethod · 0.80

Tested by

no test coverage detected