* 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
* 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
* ci: run the postgres_flat S3 and FUSE tests against Postgres
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
* ci: run the postgres_flat tests on pull requests to any branch
Like the S3 workflows, so a stacked pull request runs them too, and only
when the code they reach changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
* 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>
* ci: run the postgres_flat tests on changes anywhere under weed/
The tests run master, volume, filer, S3 and a mount, so changes in
packages such as weed/pb, weed/wdclient or weed/credential reach them
too. Match the FUSE integration workflow and also trigger on the
fusermount action the job uses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* 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
* ci: run the S3 versioning suite on a postgres_flat filer
The whole test/s3/versioning suite, stress tests included, against a weed
mini whose filer.toml enables postgres_flat. The job first checks that
filemeta has the flat layout, so a filer on its default store cannot pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
* 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>
* 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
* ci: wait for the filemeta table before the versioning suite
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test/postgres_flat: POSIX subtests set up their own fixtures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test/postgres_flat: absent versions must answer 404
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>