Skip to content

CI: run the PHP test suite (and make it gate)#3131

Merged
xirvik merged 1 commit into
Novik:masterfrom
xirvik:tests/php-suite-in-ci
Jul 24, 2026
Merged

CI: run the PHP test suite (and make it gate)#3131
xirvik merged 1 commit into
Novik:masterfrom
xirvik:tests/php-suite-in-ci

Conversation

@xirvik

@xirvik xirvik commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

The PHP tests under tests/ were never executed in CI -- only the Jest (JS) suite ran. Wire the PHP suite in and make it fail the build on failures:

  • tests.yml: add a php job (setup-php 8.1) that runs tests/php-test.sh.
  • php-test.sh: exit non-zero when any test file reports a failure. Two signals are honoured -- a non-zero process exit (the TestLib self-running suites end with exit($failures)) and failure output (the TestCase runner only prints Passed/Failed). Previously the script never gated, so failures were invisible to CI.
  • PermissionTest::testPermission hardcoded uid 1000, so it only passed when the tests happened to run as uid 1000 -- never true in CI (uid 1001) or on most machines. Probe with the running process's own uid/gids instead.

The PHP tests under tests/ were never executed in CI -- only the Jest (JS)
suite ran. Wire the PHP suite in and make it fail the build on failures:

- tests.yml: add a `php` job (setup-php 8.1) that runs tests/php-test.sh.
- php-test.sh: exit non-zero when any test file reports a failure. Two
  signals are honoured -- a non-zero process exit (the TestLib self-running
  suites end with exit($failures)) and failure output (the TestCase runner
  only prints Passed/Failed). Previously the script never gated, so failures
  were invisible to CI.
- PermissionTest::testPermission hardcoded uid 1000, so it only passed when
  the tests happened to run as uid 1000 -- never true in CI (uid 1001) or on
  most machines. Probe with the running process's own uid/gids instead.
@xirvik
xirvik merged commit 26f0ae3 into Novik:master Jul 24, 2026
5 checks passed
@xirvik
xirvik deleted the tests/php-suite-in-ci branch July 24, 2026 05:42
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.

1 participant