Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scripts/lib/artifacts/immutable-archive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/artifacts/immutable-archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down