From 46e5ea6c5d484480b2f60a4c84177e10f24b4942 Mon Sep 17 00:00:00 2001 From: dingo Date: Tue, 27 Oct 2026 12:27:34 -0400 Subject: [PATCH] test(postgres): provision the Git revamp rules without the DEV wildlife fixture Since 054e485 the DEV revamp tuning file seeds 100 wildlife (ADR-0180), which evo-world-clone provision refuses without an audited --playtest-wildlife-first-id range, so the cellular-v10 provisioning test failed at region_store_tests line 826 (also Gitea run 542). The test now provisions the Git file's rules with its DEV opening fixture set to zero; seeded wildlife keeps its own suite. Co-Authored-By: Claude Opus 5.5 --- tests/region_store_tests.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/region_store_tests.cpp b/tests/region_store_tests.cpp index 3853338..463bbd7 100644 --- a/tests/region_store_tests.cpp +++ b/tests/region_store_tests.cpp @@ -2,6 +2,7 @@ // the object volume's free-space reserve, a genuinely failing write, the // check-store probe (retention across runs, missing-volume refusal, privilege // boundary) and a server whose volume is full. Run by tools/ci/postgres-check.sh. +#include "evo/biology/cellular_revamp_tuning.hpp" #include "evo/biology/cellular_tuning.hpp" #include "evo/persistence/account_control_store.hpp" #include "evo/persistence/checkpoint_store.hpp" @@ -15,6 +16,7 @@ #include #include #include +#include #include #include @@ -814,8 +816,19 @@ void cellular_v9_provisioning_declares_liquid() { // upgrade declaring the Git revamp tuning file's rules; a rerun reports the region. { const ServerRegion v10{{9779, 1}, fresh("cellular-v10-provision-9779")}; - const std::string revamp = - env("EVO_SOURCE_ROOT") + "/deploy/kubernetes/region/dev/tuning/cellular-revamp.tuning"; + // The Git file's rules. Its DEV opening fixture (ADR-0180 seeded wildlife) needs an + // audited identity range and has its own suite, so this opening seeds none. + std::ifstream git_revamp{env("EVO_SOURCE_ROOT") + + "/deploy/kubernetes/region/dev/tuning/cellular-revamp.tuning", + std::ios::binary}; + auto declared = evo::biology::parse_cellular_revamp_tuning(std::string{ + std::istreambuf_iterator{git_revamp}, std::istreambuf_iterator{}}); + CHECK(declared); + declared->playtest_starting_wildlife_cells = 0; + const auto revamp_path = v10.root / "cellular-revamp.tuning"; + std::ofstream{revamp_path, std::ios::binary} + << evo::biology::encode_cellular_revamp_tuning(*declared); + const std::string revamp = revamp_path.string(); const std::string v10_commit = "c0c81e5c0f7e1d2ba1a0ce5c0f7e1d2f"; provision_cellular(v10, "9779", "cellular-v10", build, v10_commit, motes, code, "--motes", {"--light-pj", "40", "--tuning", tuning});