feat(pipeline): MOV review delivery packages from selected shots
Deploy / deploy (push) Successful in 7m28s
Deploy / deploy (push) Successful in 7m28s
A formal review is shared as a flat, dated folder of the preview MOVs —
{deliveryRoot}/PRODUCER_REVIEWS/20260828_Producer_review, then _02, _03
for further reviews the same day. It reuses the delivery package's
machinery end to end: DeliveryPackage/DeliveryItem, the DELIVERY_BUILD
job, the same claim path and the same hardlink-or-copy builder, with
DeliveryPackage.kind telling the two apart.
Three things separate a review from a delivery:
A review never advances an Export. Reviews happen throughout a shot's
life, long before QC passes it, and the same version is routinely shown
twice — so nothing is marked PACKAGED, and markDelivered() refuses a
review package outright (the button is hidden too).
Selection is by shot, not by export. Shot Status → Bulk Actions → Build
MOV Review Package; the server resolves each shot to its newest export
that actually has a deliveryMovPath, which is not always its newest
export — a shot whose latest version is still rendering belongs in the
review as the version that can be watched. Shots with no MOV at all are
listed in the confirm dialog with the reason rather than silently
shrinking the folder.
The folder is exactly the MOVs. No CSV, no manifest.json written beside
them; the manifest still returns to the server, so the record of what was
shared is kept without cluttering the share. Names follow the same
client-naming rule as a delivery, so a shot reads identically in a review
folder and in the delivery that follows it.
Verification (DeliveryStage.BuildReviewItem) is proportional as it is for
EXRs, adapted to a single file with no validation-time digest: a hard
link is the source and needs nothing, a copy is checked against its
source by length always and by full hash under "always-hash". A missing
MOV fails the item here — in an EXR delivery the MOV is a viewing copy
beside the real deliverable, but in a review it is the deliverable, and a
review folder quietly one shot short is worse than one that says so.
Worker bumped to 1.6.0 for the new manifest field (DeliveryManifest.Kind).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- MOV review packages (RenderPipeline2 §11.6): a flat, dated folder of preview
|
||||
-- MOVs shared for a formal review. Same package/job/verification machinery as
|
||||
-- an EXR delivery, but it never advances an Export — a shot can appear in as
|
||||
-- many reviews as it takes before the delivery that actually ships it.
|
||||
|
||||
-- CreateEnum
|
||||
CREATE TYPE "DeliveryKind" AS ENUM ('EXR_DELIVERY', 'MOV_REVIEW');
|
||||
|
||||
-- AlterTable: every existing package predates reviews, so it is a delivery.
|
||||
ALTER TABLE "delivery_packages"
|
||||
ADD COLUMN "kind" "DeliveryKind" NOT NULL DEFAULT 'EXR_DELIVERY';
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "delivery_packages_projectId_kind_idx" ON "delivery_packages"("projectId", "kind");
|
||||
+13
-2
@@ -173,6 +173,15 @@ enum MachineStatus {
|
||||
DISABLED
|
||||
}
|
||||
|
||||
/// What a package is for. A MOV_REVIEW package is a flat folder of preview
|
||||
/// MOVs shared for a formal review — it never touches the Export state
|
||||
/// machine, so a shot can appear in as many reviews as it takes before the
|
||||
/// EXR delivery that actually ships it.
|
||||
enum DeliveryKind {
|
||||
EXR_DELIVERY
|
||||
MOV_REVIEW
|
||||
}
|
||||
|
||||
enum DeliveryStatus {
|
||||
DRAFT
|
||||
QUEUED
|
||||
@@ -1097,8 +1106,9 @@ model DeliveryPackage {
|
||||
id String @id @default(cuid())
|
||||
projectId String
|
||||
project Project @relation(fields: [projectId], references: [id])
|
||||
episode String // "101" — empty string on standard (non-episodic) shows
|
||||
name String // "260805_Delivery"
|
||||
episode String // "101" — empty string on standard (non-episodic) shows, and on reviews spanning several
|
||||
name String // "260805_Delivery" | "20260828_Producer_review_02"
|
||||
kind DeliveryKind @default(EXR_DELIVERY)
|
||||
packageNumber Int // sequential per project → "Package #15"
|
||||
status DeliveryStatus @default(DRAFT)
|
||||
rootPath String? // final path on the delivery volume
|
||||
@@ -1116,6 +1126,7 @@ model DeliveryPackage {
|
||||
|
||||
@@unique([projectId, packageNumber])
|
||||
@@index([projectId, episode])
|
||||
@@index([projectId, kind])
|
||||
@@index([status])
|
||||
@@map("delivery_packages")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user