M12.3: publish and recover durable exact populations
Foundation / checks (ecs) (push) Successful in 2m41s
Foundation / checks (tsan) (push) Failing after 18m12s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (network) (push) Canceled after 20m41s
Foundation / checks (postgres) (push) Canceled after 20m43s
Foundation / checks (checks) (push) Canceled after 20m49s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (client) (push) Failing after 17m4s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / checks (ecs) (push) Successful in 2m41s
Foundation / checks (tsan) (push) Failing after 18m12s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (network) (push) Canceled after 20m41s
Foundation / checks (postgres) (push) Canceled after 20m43s
Foundation / checks (checks) (push) Canceled after 20m49s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (client) (push) Failing after 17m4s
Foundation / postgres-tools (push) Canceled after 0s
This commit is contained in:
@@ -12,23 +12,6 @@ using namespace evo::server;
|
||||
using namespace evo::fixture;
|
||||
using Population = std::unique_ptr<CellularPopulation>;
|
||||
|
||||
Owner descendants() {
|
||||
auto state = opening(1, true);
|
||||
std::set<std::uint64_t> mutated;
|
||||
for (unsigned step = 0; step < 8192; ++step) {
|
||||
const auto input = inputs(*state, 1, mutated);
|
||||
const auto executed =
|
||||
checked(state->advance_tick_with_mutations(input.lives, input.mutations),
|
||||
"descendant fixture tick");
|
||||
for (const auto& mutation : executed.mutations)
|
||||
if (mutation.result == CellularMutationResult::applied)
|
||||
mutated.insert(mutation.life_id);
|
||||
}
|
||||
require(std::ranges::any_of(state->lives(),
|
||||
[](const auto& life) { return life.account == LifeAccount{}; }),
|
||||
"fixture has no funded descendant");
|
||||
return state;
|
||||
}
|
||||
Population restored(std::span<const std::uint8_t> bytes, const CellularLives& state) {
|
||||
return checked(CellularPopulation::restore(bytes, state.world(), state.region(), state.frame(),
|
||||
state.tick()),
|
||||
@@ -64,7 +47,8 @@ void refresh(std::vector<std::uint8_t>& bytes) {
|
||||
put(bytes, bytes.size() - 8, hash);
|
||||
}
|
||||
void conversions_and_codec() {
|
||||
auto population = checked(CellularPopulation::create(descendants()), "population create");
|
||||
auto population =
|
||||
checked(CellularPopulation::create(cellular_descendants()), "population create");
|
||||
const auto genome = wildlife_genome(*population);
|
||||
const auto before = population->snapshot();
|
||||
const auto biology = population->state().snapshot();
|
||||
@@ -129,7 +113,7 @@ void conversions_and_codec() {
|
||||
}
|
||||
|
||||
void automatic_and_restart() {
|
||||
auto initial = descendants();
|
||||
auto initial = cellular_descendants();
|
||||
auto policy = checked(CellularPopulation::create(restore(*initial), {true, 1200, 1800}),
|
||||
"automatic owner");
|
||||
auto exact = checked(CellularPopulation::create(restore(*initial)), "individual control");
|
||||
@@ -170,8 +154,9 @@ void write(const char* path, const CellularPopulation& population) {
|
||||
require(!stream.fail(), "test checkpoint write failed");
|
||||
}
|
||||
void checkpoint(const char* path, const char* expected) {
|
||||
auto population = checked(CellularPopulation::create(descendants(), {true, 1200, 1800}),
|
||||
"process checkpoint owner");
|
||||
auto population =
|
||||
checked(CellularPopulation::create(cellular_descendants(), {true, 1200, 1800}),
|
||||
"process checkpoint owner");
|
||||
for (unsigned tick = 0; tick < 250; ++tick)
|
||||
frozen_tick(*population);
|
||||
require(!population->members().empty(), "process checkpoint has no cohort");
|
||||
|
||||
Reference in New Issue
Block a user