Skip to content

Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove XFAIL - #24998

Merged
bukka merged 1 commit into
php:PHP-8.4from
bukka:fpm-fix-log-bwd-stdout-stderr-test
Oct 28, 2026
Merged

bukka merged 1 commit into
php:PHP-8.4from
bukka:fpm-fix-log-bwd-stdout-stderr-test

Conversation

@bukka

@bukka bukka commented Oct 28, 2026

Copy link
Copy Markdown
Member

The end of request flush command is written only to the stderr pipe so a stdout message without a trailing newline is terminated only when the master sees the switch to stderr. If the master is not scheduled between the two requests (slow CI), it reads both stdout chunks at once and logs them as a single "msg 1 - msg 1 - " line which made the test fail.

Check the log lines after each request so the master always drains the pipes before the next request is sent. This also verifies the output of the second request which was previously not checked.

The end of request flush command is written only to the stderr pipe so
a stdout message without a trailing newline is terminated only when the
master sees the switch to stderr. If the master is not scheduled between
the two requests (slow CI), it reads both stdout chunks at once and logs
them as a single "msg 1 - msg 1 - " line which made the test fail.

Check the log lines after each request so the master always drains the
pipes before the next request is sent. This also verifies the output of
the second request which was previously not checked.
@bukka
bukka merged commit e31cab6 into php:PHP-8.4 Oct 28, 2026
18 checks passed
bukka added a commit that referenced this pull request Oct 28, 2026
* PHP-8.4:
  Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove XFAIL (#24998)
bukka added a commit that referenced this pull request Oct 28, 2026
* PHP-8.5:
  Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove XFAIL (#24998)
bukka added a commit that referenced this pull request Oct 28, 2026
* PHP-8.6:
  Fix flaky FPM log-bwd-multiple-msgs-stdout-stderr test and remove XFAIL (#24998)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant