Skip to content

Test infra: Windows/macOS CI (slice 1) #39

Closed

Description

@EdmondDantes

Expand the test infrastructure. This issue (slice 1) covers Windows/macOS CI; the remaining slices moved to #41.

Windows / macOS CI — DONE (PR #40)

Modeled after php-src/ext/async build-{windows,macos}.yml.

  • build-macos.yml — macOS 14 ARM64, matrix debug × zts, Homebrew deps, --enable-http-server --enable-http2 --disable-http3. Builds PHP base + http_server via phpize (mirrors build-linux.yml).
  • build-windows.yml + .github/scripts/windows/*.bat — windows-2022, VS17, x64, ZTS, AVX2, libuv + nghttp2 via vcpkg.

HTTP/3 and io_uring deliberately skipped on both platforms (no prebuilt ngtcp2/nghttp3 stack; io_uring is Linux-only).

Bugs found & fixed while greening macOS (9 → 0 phpt failures)

  • HttpServer::isHttp2() / isHttp3() compile-time probes so H3 SKIPIF bails on builds without ngtcp2.
  • Real UAF: stop() notified a freed wait_event — start() left server->wait_event dangling after the coroutine was torn down by anything other than stop(). Found via lldb on macOS CI, reproduced locally, fixed by NULLing wait_event after suspend.
  • Shared-fd worker pool for platforms without load-balanced SO_REUSEPORT (parent binds once, workers dup), plus a missed pool_tcp_fds copy in the transfer LOAD phase.
  • TRUE_ASYNC_SERVER_SHARED_LISTEN_FD runtime toggle — exercises the macOS shared-fd path on Linux CI without a macOS runner.
  • Made 3 tests platform-independent: h1/050 (printf vs echo -n), h2/007 + h2/008 (raw RST_STREAM vs curl --max-time).

Acceptance

  • build-windows.yml + build-macos.yml green on the branch
  • Windows/macOS CI runs the phpt subset that builds on those platforms (no H3 / no io_uring)

Remaining work → #41

  • External conformance suites (h2spec, testssl.sh, tlsfuzzer, h2load nightly)
  • Chaos / fuzz harness (ext/async fuzzy-tests model, Toxiproxy, EvilPeer, CVE playlist)

Activity

  1. self-assigned this
    on May 28, 2026
  2. added
    enhancement
    on May 28, 2026
  3. added a commit that references this issue on May 29, 2026
  4. changed the title [-]Test infra: Windows/macOS CI + external conformance suites + chaos/fuzz harness[/-] [+]Test infra: Windows/macOS CI (slice 1)[/+] on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions