Skip to content

CI has been red on main since July: 1 error and 2 failures #17

Description

@HafizMMoaz

The test job on main has been failing since the community health files merge on 2026-07-26, with the same three results every run, most recently confirmed against framework 2.0:

1) Tests\public\IndexTest::testIndex
Error: Call to undefined function Tests\public\xdebug_get_headers()
tests/public/IndexTest.php:25

1) Tests\boot\HelpersTest::testRouteUrl
-'http://localhost:8080/'
+'https://foo.com/'
tests/boot/HelpersTest.php:67

2) Tests\boot\HelpersTest::testRedirectTo

Tests: 33, Assertions: 105, Errors: 1, Failures: 2.
  • xdebug_get_headers() only exists with xdebug loaded. The workflow installs no xdebug, so the test needs a function_exists skip or the extension has to be added to the CI matrix
  • The two HelpersTest failures look like state leaking between tests: the expected base URL is http://localhost:8080/ but a https://foo.com/ base set by an earlier test is still in effect. Worth checking whether the Request or Router service is reset between tests

The lint job is also red, with 5 files php-cs-fixer wants to change, mostly \PHP_SAPI / \PHP_URL_PATH global constant prefixes and a missing final newline in public/index.php.

Filed while merging #16, the framework ^2.0 bump. That PR reproduces exactly these three results and no others, so the upgrade did not cause them and did not add to them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions