Skip to content

Run HTTP serve integration tests in Docker local CI (#234)#251

Merged
PurHur merged 1 commit into
masterfrom
issue-234-serve-tests-docker-ci
May 19, 2026
Merged

Run HTTP serve integration tests in Docker local CI (#234)#251
PurHur merged 1 commit into
masterfrom
issue-234-serve-tests-docker-ci

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

  • Probe 127.0.0.1 TCP bind in script/ci-local.sh (script/can-bind-loopback.php) and run @group serve (ServeTest, ServeAotTest) after the VM suite when allowed.
  • Auto-set PHP_COMPILER_SKIP_SERVE_TESTS=1 only when loopback bind fails (unless PHP_COMPILER_RUN_SERVE_TESTS=1).
  • Document skip/force env vars and that GitHub Actions skips serve tests while local/Docker CI must not.

Closes #234

Test plan

  • Docker: script/can-bind-loopback.php exits 0; ci-local prints Loopback TCP bind OK.
  • Docker: vendor/bin/phpunit --group serve runs ServeTest/ServeAotTest (not skipped) without PHP_COMPILER_SKIP_SERVE_TESTS.
  • Docker: with PHP_COMPILER_SKIP_SERVE_TESTS=1, all serve tests skipped.
  • Full ./script/docker-ci-local.sh on a host with working bind-mount (long-running).

Made with Cursor

Probe loopback TCP bind in script/ci-local.sh, run @group serve after the VM
suite, and document PHP_COMPILER_SKIP_SERVE_TESTS vs local verification.
GitHub Actions keeps skipping serve tests; Docker and harness hosts must not.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit f911485 into master May 19, 2026
@PurHur PurHur deleted the issue-234-serve-tests-docker-ci branch May 19, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing: Run HTTP serve integration tests in Docker local CI

1 participant