diff --git a/scripts/lib/artifacts/immutable-archive.test.ts b/scripts/lib/artifacts/immutable-archive.test.ts index 8bd34f290e..3c90201062 100644 --- a/scripts/lib/artifacts/immutable-archive.test.ts +++ b/scripts/lib/artifacts/immutable-archive.test.ts @@ -43,6 +43,15 @@ test.each([ "download failed: s3://delivery-artifacts/example to /tmp/readback.tar AWS_ERROR_S3_INTERNAL_ERROR: ", expectedDelays: [1000], }, + { + name: "create-only conflict followed by a DNS resolution failure", + uploadExit: 254, + remoteBytes: "reviewed bytes", + readbackFailures: 1, + readbackError: + "download failed: s3://delivery-artifacts/example to /tmp/readback.tar AWS_IO_DNS_INVALID_NAME: Host name was invalid for dns resolution.", + expectedDelays: [1000], + }, { name: "recovered endpoint with mismatched bytes", uploadExit: 254, diff --git a/scripts/lib/artifacts/immutable-archive.ts b/scripts/lib/artifacts/immutable-archive.ts index 5db3b1af60..100d843916 100644 --- a/scripts/lib/artifacts/immutable-archive.ts +++ b/scripts/lib/artifacts/immutable-archive.ts @@ -6,7 +6,7 @@ import { TransientError } from "../transient-error.ts"; const ARCHIVE_SUFFIXES = [".json", ".tar", ".tgz", ".tar.gz"] as const; const AWS_TRANSIENT_READBACK = - /^(?:fatal error: Could not connect to the endpoint URL:|download failed: .* AWS_ERROR_S3_INTERNAL_ERROR:)/mu; + /^(?:fatal error: Could not connect to the endpoint URL:|download failed: .* (?:AWS_ERROR_S3_INTERNAL_ERROR|AWS_IO_DNS_[A-Z_]+):)/mu; /** * The delivery-artifacts key of an immutable archive URI. The key ends in the