Diagnose X11 client lifecycle failure
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 2m19s
Foundation / checks (ecs) (push) Canceled after 2m19s
Foundation / checks (postgres) (push) Canceled after 2m15s
Foundation / checks (tsan) (push) Canceled after 2m14s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 2m19s
Foundation / checks (ecs) (push) Canceled after 2m19s
Foundation / checks (postgres) (push) Canceled after 2m15s
Foundation / checks (tsan) (push) Canceled after 2m14s
This commit is contained in:
@@ -6978,3 +6978,13 @@ PostgreSQL-enabled Clang analysis rejected the provision CLI's assignments from
|
|||||||
optional, so these destinations now copy `n` directly. PostgreSQL analysis
|
optional, so these destinations now copy `n` directly. PostgreSQL analysis
|
||||||
failed before the dependent server-image build and Harbor publication could
|
failed before the dependent server-image build and Harbor publication could
|
||||||
start; the next pushed run must confirm the analyzer and image publish gates.
|
start; the next pushed run must confirm the analyzer and image publish gates.
|
||||||
|
|
||||||
|
CI run #299 confirms the clone parser now builds in the PostgreSQL-enabled
|
||||||
|
release job, and the network suite passed. The client matrix job passed its
|
||||||
|
13 CTest cases under SDL's dummy driver and the standalone X11 client/UI probes,
|
||||||
|
but its additional X11 `evo-client-lifecycle-tests` invocation failed while
|
||||||
|
opening the final toolkit-capture application (`tests/client_lifecycle.cpp`).
|
||||||
|
That failure gates `server-image`; the test now reports its typed open error and
|
||||||
|
checks SDL teardown after each test section so the next CI run can identify the
|
||||||
|
failing lifecycle boundary. The PostgreSQL integration and static-analysis job
|
||||||
|
is still running; no Harbor publish has started.
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ void check(bool ok, std::source_location at = std::source_location::current()) {
|
|||||||
throw std::runtime_error("client lifecycle line " + std::to_string(at.line()));
|
throw std::runtime_error("client lifecycle line " + std::to_string(at.line()));
|
||||||
}
|
}
|
||||||
#define CHECK(...) check(static_cast<bool>(__VA_ARGS__))
|
#define CHECK(...) check(static_cast<bool>(__VA_ARGS__))
|
||||||
|
void check_sdl_shutdown(std::string_view test) {
|
||||||
|
const auto initialized = SDL_WasInit(0);
|
||||||
|
if (initialized != 0)
|
||||||
|
throw std::runtime_error(std::string{test} +
|
||||||
|
" left SDL initialized: " + std::to_string(initialized));
|
||||||
|
}
|
||||||
template <typename T, typename E> bool refused(const std::expected<T, E>& result, E error) {
|
template <typename T, typename E> bool refused(const std::expected<T, E>& result, E error) {
|
||||||
return !result && result.error() == error;
|
return !result && result.error() == error;
|
||||||
}
|
}
|
||||||
@@ -563,7 +569,11 @@ int queued_keyboard_events() {
|
|||||||
void capture_balances_toolkit() {
|
void capture_balances_toolkit() {
|
||||||
const auto frame = fixture();
|
const auto frame = fixture();
|
||||||
auto result = Application::open({320, 240, false, "software"});
|
auto result = Application::open({320, 240, false, "software"});
|
||||||
CHECK(result);
|
if (!result)
|
||||||
|
throw std::runtime_error("capture-balances open failed error=" +
|
||||||
|
std::to_string(static_cast<unsigned>(result.error())) +
|
||||||
|
" SDL_WasInit=" + std::to_string(SDL_WasInit(0)) +
|
||||||
|
" SDL=" + SDL_GetError());
|
||||||
auto app = std::move(result.value());
|
auto app = std::move(result.value());
|
||||||
CHECK(app->poll_events());
|
CHECK(app->poll_events());
|
||||||
const auto id = SDL_GetWindowID(window());
|
const auto id = SDL_GetWindowID(window());
|
||||||
@@ -760,12 +770,19 @@ void capture_balances_toolkit() {
|
|||||||
} // namespace
|
} // namespace
|
||||||
int main() try {
|
int main() try {
|
||||||
client_controls_tests();
|
client_controls_tests();
|
||||||
|
check_sdl_shutdown("client controls");
|
||||||
frame_contract();
|
frame_contract();
|
||||||
|
check_sdl_shutdown("frame contract");
|
||||||
lifecycle();
|
lifecycle();
|
||||||
|
check_sdl_shutdown("lifecycle");
|
||||||
native_input();
|
native_input();
|
||||||
|
check_sdl_shutdown("native input");
|
||||||
toolkit_capture();
|
toolkit_capture();
|
||||||
|
check_sdl_shutdown("toolkit capture");
|
||||||
rebinding();
|
rebinding();
|
||||||
|
check_sdl_shutdown("rebinding");
|
||||||
capture_balances_toolkit();
|
capture_balances_toolkit();
|
||||||
|
check_sdl_shutdown("capture balances toolkit");
|
||||||
return 0;
|
return 0;
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
std::fprintf(stderr, "%s: %s\n", e.what(), SDL_GetError());
|
std::fprintf(stderr, "%s: %s\n", e.what(), SDL_GetError());
|
||||||
|
|||||||
Reference in New Issue
Block a user