Skip to content

Don't run sapi/fpm tests in parallel with other fpm tests #7696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

TysonAndre
Copy link
Contributor

See discussion on #7561

fpm tests have been spuriously failing in CI, with 2 parallel workers
on 2 CPUs.

make test TESTS='sapi/fpm/tests -j8' fails locally for me
without this change

They're trying to listen on IPv4 on 127.0.0.1 on the same port as other
tests (e.g. helper getPort()=9008 on 64-bit architecture (PHP_INT_SIZE=8)).

So tests will fail (in the old setup) if

  1. php-fpm is still running from another test in parallel.
  2. a request is sent to a server for a different test.

See discussion on php#7561

fpm tests have been spuriously failing in CI, with 2 parallel workers
on 2 CPUs.

`make test TESTS='sapi/fpm/tests -j8'` fails locally for me
without this change

They're trying to listen on IPv4 on 127.0.0.1 on the same port as other
tests (e.g. helper getPort()=9008 on 64-bit architecture (PHP_INT_SIZE=8)).

So tests will fail if

1. php-fpm is still running from another test in parallel.
2. a request is sent to a server for a different test.
@TysonAndre TysonAndre requested review from bukka and nikic November 27, 2021 19:10
@nikic
Copy link
Member

nikic commented Nov 27, 2021

Parallelism should already be disabled: https://github.com/php/php-src/blob/master/sapi/fpm/tests/CONFLICTS

@TysonAndre TysonAndre closed this Nov 27, 2021
@TysonAndre TysonAndre deleted the fpm-conflicts branch November 27, 2021 20:08
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.

2 participants