M12.4: keep cellular wildlife ticking and retain scheduling debt
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m35s
Foundation / checks (tsan) (push) Failing after 17m51s
Foundation / checks (network) (push) Successful in 21m13s
Foundation / checks (client) (push) Successful in 22m19s
Foundation / checks (postgres) (push) Successful in 48m25s
Foundation / checks (checks) (push) Failing after 50m8s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-17 12:24:19 -04:00
parent 5decaa0326
commit aff35863ce
12 changed files with 434 additions and 20 deletions
+8
View File
@@ -1,4 +1,5 @@
#include "evo/server/lifecycle/cellular_population.hpp"
#include "evo/server/lifecycle/cellular_schedule.hpp"
#include "fixtures/cellular_ecology.hpp"
#include <fstream>
@@ -152,6 +153,13 @@ void automatic_and_restart() {
}
}
require(cohort_ticks > 0, "suspended observers prevented unattended cohort collapse");
require(std::ranges::all_of(policy->state().lives(),
[](const auto& life) {
return life.account == LifeAccount{} ||
life.presence == CellularPresence::suspended;
}) &&
cellular_unattended_tick_needed(policy->state()),
"funded wildlife lost scheduling demand after players suspended");
}
void write(const char* path, const CellularPopulation& population) {
const auto bytes = population.snapshot();