Commit Graph
7 Commits
Author SHA1 Message Date
Chris LuandClaude Opus 5.5 40f7ed262e test/postgres_flat: POSIX subtests set up their own fixtures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:30:00 -08:00
Chris LuandClaude Opus 5.5 2d125113ba test/postgres_flat: helpers fail the test that calls them
paths, tableExists, count, filerList, start and mount take the caller's
*testing.T, so a failure inside a subtest fails that subtest instead of
calling FailNow on the parent and stopping its siblings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
2026-12-02 07:07:39 -08:00
Chris LuandClaude Opus 5.5 b3b0cee258 test/postgres_flat: set up shared objects before the subtests
The S3 and versioning suites wrote their objects and the second bucket
inside the first subtest, so running one later subtest with -run left
the version ids empty and panicked. The parent test now writes them and
the subtests only check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:07:38 -08:00
Chris LuandClaude Opus 5.5 09be534d67 test/postgres_flat: versioned buckets on the postgres_flat store
Versions and delete markers are rows under the key's .versions folder in
the bucket's table. Covers version listings in one page and one version a
page, delete markers, promoting the previous version, the null version
under suspended versioning, and dropping the table once every version and
the bucket are deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
2026-12-02 07:07:38 -08:00
Chris LuandClaude Opus 5.5 e48952590b test/postgres_flat: fail fast when weed mini or the mount exits
ProcessState is only set by Wait, which ran only at cleanup, so a mini
or mount that died at startup was noticed only at the 45s or 90s
deadline. Reap each command as it starts and check for its exit while
waiting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 07:07:38 -08:00
Chris LuandClaude Opus 5.5 f2b522eb9e test/postgres_flat: a FUSE mount against the postgres_flat store
Files, a directory longer than a listing page, renames, hard and symbolic
links, tree removal and a bucket made through the mount, checked against the
rows, then read back by a second mount with an empty metadata cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
2026-12-02 07:07:37 -08:00
Chris LuandClaude Opus 5.5 0121a36a1e test/postgres_flat: S3 against a filer on the postgres_flat store
A weed mini whose filer.toml enables postgres_flat in a schema of its own.
Objects, listings, copies, multipart uploads, versions and bucket deletion
are checked through S3 and against the rows of the bucket's table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
2026-12-02 07:07:37 -08:00