fix(producer): retry transient deterministic font fetches (#2865)

* fix(producer): retry transient deterministic font fetches

* fix(producer): secure Lambda font cache directory
This commit is contained in:
James Russo
2026-07-28 22:49:03 -07:00
committed by GitHub
parent 675afc5654
commit 20f4f8f49c
13 changed files with 802 additions and 92 deletions
+3 -1
View File
@@ -578,7 +578,9 @@ describe("createApp HTTP mapping", () => {
it.each([
["VIDEO_SOURCE_UNRENDERABLE", 400],
["VIDEO_EXTRACTION_FAILED", 500],
] as const)("routes producer video code %s with HTTP %s", async (code, expectedStatus) => {
["FONT_FETCH_FAILED", 400],
["FONT_FETCH_UNAVAILABLE", 500],
] as const)("routes producer code %s with HTTP %s", async (code, expectedStatus) => {
const gcs = new FakeGcs();
await seedPlanTar(gcs, "gs://b/renders/r1/plan.tar.gz", PLAN_HASH);
const app = createApp(
+2
View File
@@ -183,6 +183,8 @@ function normalizeTerminalErrorName(error: unknown): void {
candidate.code === "PLAN_PROTOCOL_UNSUPPORTED" ||
candidate.code === "PLAN_TOO_LARGE" ||
candidate.code === "PLAN_V2_INTEGRITY_UNRECOVERABLE" ||
candidate.code === "FONT_FETCH_FAILED" ||
candidate.code === "FONT_FETCH_UNAVAILABLE" ||
candidate.code === "VIDEO_SOURCE_UNRENDERABLE" ||
candidate.code === "VIDEO_EXTRACTION_FAILED" ||
candidate.code === "INVALID_VIDEO_METADATA"