You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: fix multiple verify-build lane failures across the matrix
Six distinct failures across the Verify Build matrix on PR #374 all
trace back to unrelated pre-existing branch issues that the fd_set /
socklen_t fix in 2e803ed surfaced once early-stage compilation
stopped masking everything downstream:
* test/unit/webserver_route_test.cpp: missing <cstring> for strlen
(used at line 74 in the Allow-header parser). Fails the gcc-11/13/14
+ clang-13/16/17/18 / mac + static + dynamic lanes.
* test/unit/hook_api_shape_test.cpp:
- Drop the line-143 negative SFINAE pin. The premise was wrong:
the add_hook overload set is keyed on the std::function callable
type, with `hook_phase` as a runtime parameter — there is no
compile-time path for the assertion to fire. The runtime test
add_hook_throws_on_phase_mismatch already covers the
phase-mismatch guarantee end to end.
* test/littletest.hpp: mark __lt_tr__ as [[maybe_unused]] in the
LT_BEGIN_TEST macro. Tests that only assert through compile-time
state (e.g. default_constructed_handle_is_inert) never touch the
test_runner, which under -Werror,-Wunused-parameter (mac debug +
coverage lane) escalates to a build break.
* src/http_resource.cpp: wrap the two std::atomic_*_explicit calls on
std::shared_ptr in a localized -Wdeprecated-declarations push/pop.
C++20 deprecated the free-function overloads in favour of
std::atomic<std::shared_ptr<T>>; clang-18 -Werror flags them on the
sanitizer lanes. TODO comment marks the proper migration target.
* src/httpserver/create_webserver.hpp:525: suppress the duplicate
-Wdeprecated-declarations at the internal call from the deprecated
v1 auth_handler overload into the equally-deprecated
compat::adapt_legacy_auth. The user-facing deprecation is the
[[deprecated]] attribute on the overload itself, fired at the call
site; the internal forwarding call does not need to fire again and
was breaking valgrind + ubuntu debug-coverage lanes.
* .github/workflows/verify-build.yml: add a dedicated libmicrohttpd
build step for the flag-invariance-on lane with --enable-experimental
so microhttpd_ws.h / libmicrohttpd_ws are produced and HAVE_WEBSOCKET
auto-detection can flip on. Mirrors the existing flag-invariance-off
step. Also splits out a dedicated cache key for the on lane.
0 commit comments