Repository navigation
Conversation
Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com>
xixi-box
requested review from
CodeWithKyrian,
Nyholm,
chr-hertel and
soyuka
as code owners
November 26, 2026 17:22
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #778
Server requests went straight to their handlers, and an unanswered stateless gateway elicitation became a response outside the handler fiber. Add opt-in receiving middleware in both protocol eras and return stateless elicitation results through the middleware while forwarding notifications as they are produced.
Tests:
vendor/bin/phpunit --filter testReceivingMiddlewareObservesElicitationAndRetry tests/Unit/Server/Fiber/RealEventLoopTest.php.Result: vendor/bin/phpunit tests/Unit/Server tests/Unit/Client/ProtocolTest.php tests/Integration/DualEraElicitationTest.php on base before edits: OK (1799 tests, 5192 assertions).
Result: vendor/bin/phpunit --filter testReceivingMiddlewareObservesElicitationAndRetry tests/Unit/Server/Fiber/RealEventLoopTest.php on f3c45eb with the final test file: exit 1, both runtime datasets failed the middleware observation assertion. Both wire response assertions passed. See OSSCOUT_BASE.log.
Result: vendor/bin/phpunit --filter testReceivingMiddlewareObservesElicitationAndRetry tests/Unit/Server/Fiber/RealEventLoopTest.php on the patch: exit 0, OK (2 tests, 6 assertions). See OSSCOUT_PATCHED.log.
Result: vendor/bin/phpunit tests/Unit/Server tests/Unit/Client/ProtocolTest.php tests/Integration/DualEraElicitationTest.php on the patch: OK (1804 tests, 5217 assertions).
Result: make tests: exit 0 with 4439 tests, 13714 assertions and 8 skips across the unit, integration and interop suites.
Result: PHP 8.2.36 Docker container with fresh Composer dependencies, vendor/bin/phpunit tests/Unit/Server/Fiber/RealEventLoopTest.php: OK (33 tests, 93 assertions). The first container attempt required unzip for Composer archive extraction. The successful attempt mounted /usr/bin/unzip.
Result: vendor/bin/php-cs-fixer fix --dry-run --diff: 0 of 778 files to fix. make phpstan: no errors. make deptrac: 0 violations, warnings or errors. make docs-guides: strict build completed with no issues.
Result: make conformance-tests and make conformance-draft: client checks passed 252/252 and 417/417 respectively. The 2025 command also passed its three client extension scenarios (9/9, 9/9, 10/10). The first server runs had fixture failures that also occurred on the base checkout.
Result: After applying the CI fixture directory permissions, make conformance-server and make conformance-draft-server passed with 80/80 and 152/152 checks respectively. Fixture directory permissions were restored to 0755 afterward.
Result: git diff --check: exit 0.
Regression coverage:
tests/Unit/Server/Fiber/RealEventLoopTest.php.