Update cellular perception test fixtures
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (checks) (push) Failing after 4m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 5m36s
Foundation / checks (tsan) (push) Canceled after 3m54s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (checks) (push) Failing after 4m1s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 5m36s
Foundation / checks (tsan) (push) Canceled after 3m54s
This commit is contained in:
@@ -118,7 +118,8 @@ void v7_reliable_action_is_stable_and_strict() {
|
|||||||
|
|
||||||
void v8_perception_is_bounded_and_canonical() {
|
void v8_perception_is_bounded_and_canonical() {
|
||||||
const CellularPerception perception{
|
const CellularPerception perception{
|
||||||
19, 42, {{1'000, 2'000, 3, {4, 5, 6, 7}}, {1'000, 3'000, 8, {9, 10, 11, 12}}}};
|
19, 42, {{1'000, 2'000, 3, {4, 5, 6, 7}}, {1'000, 3'000, 8, {9, 10, 11, 12}}},
|
||||||
|
std::nullopt};
|
||||||
const auto bytes = encode_session(SessionMessage{perception});
|
const auto bytes = encode_session(SessionMessage{perception});
|
||||||
CHECK(!bytes.empty() && bytes.size() == session_header_bytes + 18 + std::size_t{2} * 48);
|
CHECK(!bytes.empty() && bytes.size() == session_header_bytes + 18 + std::size_t{2} * 48);
|
||||||
std::uint16_t version{};
|
std::uint16_t version{};
|
||||||
@@ -136,8 +137,10 @@ void v8_perception_is_bounded_and_canonical() {
|
|||||||
duplicate.patches[1] = duplicate.patches[0];
|
duplicate.patches[1] = duplicate.patches[0];
|
||||||
CHECK(encode_session(SessionMessage{duplicate}).empty());
|
CHECK(encode_session(SessionMessage{duplicate}).empty());
|
||||||
CHECK(
|
CHECK(
|
||||||
encode_session(SessionMessage{CellularPerception{19, 0, {perception.patches[0]}}}).empty());
|
encode_session(
|
||||||
const CellularPerception cleared{19, 0, {}};
|
SessionMessage{CellularPerception{19, 0, {perception.patches[0]}, std::nullopt}})
|
||||||
|
.empty());
|
||||||
|
const CellularPerception cleared{19, 0, {}, std::nullopt};
|
||||||
const auto clear_bytes = encode_session(SessionMessage{cleared});
|
const auto clear_bytes = encode_session(SessionMessage{cleared});
|
||||||
CHECK(std::get<CellularPerception>(*decode_session(clear_bytes)) == cleared);
|
CHECK(std::get<CellularPerception>(*decode_session(clear_bytes)) == cleared);
|
||||||
auto oversized = perception;
|
auto oversized = perception;
|
||||||
@@ -148,7 +151,7 @@ void v8_perception_is_bounded_and_canonical() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void v9_perception_carries_only_valid_owner_diagnostics() {
|
void v9_perception_carries_only_valid_owner_diagnostics() {
|
||||||
CellularPerception perception{27, 82, {{2'000, 3'000, 17, {4, 5, 6, 7}}}};
|
CellularPerception perception{27, 82, {{2'000, 3'000, 17, {4, 5, 6, 7}}}, std::nullopt};
|
||||||
perception.diagnostics = CellularLifeDiagnostics{
|
perception.diagnostics = CellularLifeDiagnostics{
|
||||||
900, {11, 12, 13, 14}, 21, 8, CellularMovementResult::moved, CellularIntakeResult::acquired,
|
900, {11, 12, 13, 14}, 21, 8, CellularMovementResult::moved, CellularIntakeResult::acquired,
|
||||||
true};
|
true};
|
||||||
@@ -174,7 +177,7 @@ void v9_perception_carries_only_valid_owner_diagnostics() {
|
|||||||
missing.diagnostics.reset();
|
missing.diagnostics.reset();
|
||||||
CHECK(encode_session(SessionMessage{missing}, session_protocol_v9).empty());
|
CHECK(encode_session(SessionMessage{missing}, session_protocol_v9).empty());
|
||||||
CHECK(encode_session(SessionMessage{perception}, session_protocol_v8).empty());
|
CHECK(encode_session(SessionMessage{perception}, session_protocol_v8).empty());
|
||||||
auto cleared = CellularPerception{27, 0, {}};
|
auto cleared = CellularPerception{27, 0, {}, std::nullopt};
|
||||||
const auto clear_bytes = encode_session(SessionMessage{cleared}, session_protocol_v9);
|
const auto clear_bytes = encode_session(SessionMessage{cleared}, session_protocol_v9);
|
||||||
CHECK(!clear_bytes.empty());
|
CHECK(!clear_bytes.empty());
|
||||||
CHECK(std::get<CellularPerception>(*decode_session(clear_bytes)) == cleared);
|
CHECK(std::get<CellularPerception>(*decode_session(clear_bytes)) == cleared);
|
||||||
|
|||||||
@@ -694,7 +694,7 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) {
|
|||||||
action_client->view()->organisms.front().id == 901);
|
action_client->view()->organisms.front().id == 901);
|
||||||
CHECK(action_client->set_interest({1, 0, 0, 2}));
|
CHECK(action_client->set_interest({1, 0, 0, 2}));
|
||||||
|
|
||||||
CellularPerception perception{101, 901, {{1'000, 2'000, 3, {4, 5, 6, 7}}}};
|
CellularPerception perception{101, 901, {{1'000, 2'000, 3, {4, 5, 6, 7}}}, std::nullopt};
|
||||||
CellularLifeDiagnostics diagnostics;
|
CellularLifeDiagnostics diagnostics;
|
||||||
diagnostics.reserve_energy_pj = 88;
|
diagnostics.reserve_energy_pj = 88;
|
||||||
diagnostics.reserve_matter_fg = {9, 10, 11, 12};
|
diagnostics.reserve_matter_fg = {9, 10, 11, 12};
|
||||||
|
|||||||
Reference in New Issue
Block a user