Clarify cellular action feedback
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 40s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (postgres) (push) Failing after 53s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / checks (network) (push) Failing after 3m4s
Foundation / checks (client) (push) Failing after 4m23s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 40s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (postgres) (push) Failing after 53s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / checks (network) (push) Failing after 3m4s
Foundation / checks (client) (push) Failing after 4m23s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "fixtures/fake_handoff_world.hpp"
|
||||
#include "remote_session.hpp"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
#include <cstdio>
|
||||
#include <filesystem>
|
||||
@@ -490,6 +491,33 @@ void crossing_regions(const Files& f) {
|
||||
} // namespace
|
||||
|
||||
int main() try {
|
||||
using namespace std::string_view_literals;
|
||||
using evo::client_app::cellular_admission_message;
|
||||
using evo::client_app::cellular_outcome_message;
|
||||
using evo::network::ActionResult;
|
||||
using evo::network::AdmitStatus;
|
||||
const std::array admissions{std::pair{AdmitStatus::admitted, "accepted"sv},
|
||||
std::pair{AdmitStatus::unknown_session, "no longer active"sv},
|
||||
std::pair{AdmitStatus::stale_epoch, "session changed"sv},
|
||||
std::pair{AdmitStatus::outside_window, "tick"sv},
|
||||
std::pair{AdmitStatus::rate_limited, "too many"sv},
|
||||
std::pair{AdmitStatus::replayed, "already used"sv},
|
||||
std::pair{AdmitStatus::invalid_vector, "vector is invalid"sv},
|
||||
std::pair{AdmitStatus::too_many_unresolved, "unresolved"sv},
|
||||
std::pair{AdmitStatus::invalid_action, "invalid action"sv},
|
||||
std::pair{AdmitStatus::duplicate, "Duplicate action"sv},
|
||||
std::pair{AdmitStatus::not_ready, "recovering"sv}};
|
||||
for (const auto& [status, phrase] : admissions)
|
||||
CHECK(cellular_admission_message(status).find(phrase) != std::string_view::npos);
|
||||
const std::array outcomes{
|
||||
std::pair{ActionResult::committed_no_effect, "without a state change"sv},
|
||||
std::pair{ActionResult::not_committed, "no change"sv},
|
||||
std::pair{ActionResult::pending, "waiting"sv},
|
||||
std::pair{ActionResult::unknown, "no durable result"sv},
|
||||
std::pair{ActionResult::committed, "patch stock"sv}};
|
||||
for (const auto& [result, phrase] : outcomes)
|
||||
CHECK(cellular_outcome_message(result, 23).find(phrase) != std::string::npos);
|
||||
|
||||
const auto files = credentials();
|
||||
{
|
||||
Region r{files};
|
||||
|
||||
Reference in New Issue
Block a user