test: require named source databases for materialized views #17

Open
nsaspy wants to merge 4 commits from rage/15-view-source-database into master
Owner

RED-first slice for #15, required by downstream lost-rob0t/hackmode#15.

This commit adds the deterministic acceptance fixture only. It defines a materialized view whose source is the named outbox database, proves rebuild and incremental application must read that source, and leaves the primary database untouched.

Expected RED on exact head 194df03706afa7ecbadad91c2461a0ea02c202ca: current new-view has no :source-database-name contract and both view application paths are hard-wired to the primary database.

No Hackmode-specific semantics are added to Tek9. The production fix will remain generic and preserve primary-database behavior by default.

RED-first slice for #15, required by downstream lost-rob0t/hackmode#15. This commit adds the deterministic acceptance fixture only. It defines a materialized view whose source is the named `outbox` database, proves rebuild and incremental application must read that source, and leaves the primary database untouched. Expected RED on exact head `194df03706afa7ecbadad91c2461a0ea02c202ca`: current `new-view` has no `:source-database-name` contract and both view application paths are hard-wired to the primary database. No Hackmode-specific semantics are added to Tek9. The production fix will remain generic and preserve primary-database behavior by default.
test: require missing view sources to fail closed
Some checks failed
CI / benchmark-regression (pull_request) Failing after 16m49s
CI / tests (ubuntu-22.04) (pull_request) Successful in 3m43s
CI / tests (ubuntu-24.04) (pull_request) Successful in 2m19s
CI / package-smoke (pull_request) Failing after 5s
CI / merge-gate (pull_request) Failing after 2s
18f0e81575
Some checks failed
CI / benchmark-regression (pull_request) Failing after 16m49s
CI / tests (ubuntu-22.04) (pull_request) Successful in 3m43s
CI / tests (ubuntu-24.04) (pull_request) Successful in 2m19s
CI / package-smoke (pull_request) Failing after 5s
CI / merge-gate (pull_request) Failing after 2s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/15-view-source-database:rage/15-view-source-database
git switch rage/15-view-source-database

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff rage/15-view-source-database
git switch rage/15-view-source-database
git rebase master
git switch master
git merge --ff-only rage/15-view-source-database
git switch rage/15-view-source-database
git rebase master
git switch master
git merge --no-ff rage/15-view-source-database
git switch master
git merge --squash rage/15-view-source-database
git switch master
git merge --ff-only rage/15-view-source-database
git switch master
git merge rage/15-view-source-database
git push origin master
Sign in to join this conversation.
No description provided.