Skip to content

fix(duckdb): accept missing-bucket error in AttachNotExistS3RemoteDB - #146

Merged
adsharma merged 1 commit into
mainfrom
fix/duckdb-attach-missing-s3-error
Nov 13, 2026
Merged

adsharma merged 1 commit into
mainfrom
fix/duckdb-attach-missing-s3-error

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

Summary

AttachNotExistS3RemoteDB fails in CI (e.g. LadybugDB/ladybug run 43382796174, and the scheduled main run 43407824107):

  • expected: HTTP GET error reading 's3://duckdb-blobs/...' (HTTP 403 Forbidden)
  • actual: IO Error: Cannot open database "s3://duckdb-blobs/databases/stations1.duckdb" in read-only mode: database does not exist

The external duckdb-blobs S3 bucket no longer exists (NoSuchBucket on direct HTTPS checks), so S3 reports a missing bucket instead of a missing key, which DuckDB surfaces as "database does not exist".

Change

Broaden the expected-error regex in duckdb/test/test_files/remote_duckdb.test to require the S3 path but accept either message:

^.+ Error:[\s\S]*s3://duckdb-blobs/databases/stations1\\.duckdb[\s\S]*$

Verified it matches both the old 403 error and the new missing-bucket error. The sibling AttachPublicS3Duckdb case stays SKIPped.

The duckdb-blobs S3 bucket no longer exists (S3 returns NoSuchBucket),
so ATTACH of the non-existent stations1.duckdb now fails with
'IO Error: Cannot open database ... in read-only mode: database does
not exist' instead of the old 'HTTP GET error ... HTTP 403 Forbidden'.
Broaden the expected-error regex to require the S3 path but accept
either message.
@adsharma
adsharma merged commit c04fb59 into main Nov 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant