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 <noreply@anthropic.com>
This commit is contained in:
@@ -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 <algorithm>
|
||||
#include <csignal>
|
||||
#include <fstream>
|
||||
#include <iterator>
|
||||
#include <source_location>
|
||||
#include <sys/resource.h>
|
||||
|
||||
@@ -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<char>{git_revamp}, std::istreambuf_iterator<char>{}});
|
||||
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});
|
||||
|
||||
Reference in New Issue
Block a user