mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 23:00:03 +00:00
feat(cloud): default distributed plans to v2 (#3311)
* feat(cloud): default distributed plans to v2 * fix(cloud): address plan v2 review feedback * fix(examples): document explicit v2 samples
This commit is contained in:
@@ -98,11 +98,11 @@ describe("renderToLambda", () => {
|
||||
PlanOutputS3Prefix: "s3://test-bucket/renders/smoke-1/",
|
||||
OutputS3Uri: "s3://test-bucket/renders/smoke-1/output.mp4",
|
||||
Config: baseConfig,
|
||||
PlanProtocol: "v1",
|
||||
PlanProtocol: "v2",
|
||||
});
|
||||
});
|
||||
|
||||
it("opts the complete execution into plan protocol v2 explicitly", async () => {
|
||||
it("preserves explicit plan protocol v1 compatibility", async () => {
|
||||
const sfn = new FakeSFN();
|
||||
const s3 = new FakeS3();
|
||||
const handle = await renderToLambda({
|
||||
@@ -110,18 +110,18 @@ describe("renderToLambda", () => {
|
||||
bucketName: "test-bucket",
|
||||
stateMachineArn: "arn:aws:states:us-east-1:1234:stateMachine:hf",
|
||||
config: baseConfig,
|
||||
executionName: "smoke-v2",
|
||||
planProtocol: "v2",
|
||||
executionName: "smoke-v1",
|
||||
planProtocol: "v1",
|
||||
sfn: asSFNClient(sfn),
|
||||
s3: asS3Client(s3),
|
||||
});
|
||||
|
||||
expect(sfn.starts[0]?.input).toEqual({
|
||||
ProjectS3Uri: handle.projectS3Uri,
|
||||
PlanOutputS3Prefix: "s3://test-bucket/renders/smoke-v2/",
|
||||
OutputS3Uri: "s3://test-bucket/renders/smoke-v2/output.mp4",
|
||||
PlanOutputS3Prefix: "s3://test-bucket/renders/smoke-v1/",
|
||||
OutputS3Uri: "s3://test-bucket/renders/smoke-v1/output.mp4",
|
||||
Config: baseConfig,
|
||||
PlanProtocol: "v2",
|
||||
PlanProtocol: "v1",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user