pact-foundation / pact-stub-server

Standalone pact stub server
MIT License
75 stars 19 forks source link

Stub server hang (randomly) on Mac ARM (14 - Github Actions) #66

Closed tienvx closed 1 week ago

tienvx commented 5 months ago

Here is error from PHP side:

 There was 1 error:

1) StubServerConsumer\Tests\StubServerTest::testStubServer
Symfony\Component\Process\Exception\ProcessTimedOutException: The process "'/Users/runner/work/pact-php/pact-php/src/PhpPact/Standalone/Installer/Model/../../../../../bin/pact-stub-server/pact-stub-server' '--dir=/Users/runner/work/pact-php/pact-php/example/stub-server/consumer/tests/../_resources' '--extension=json' '--loglevel=debug' '--port=7201'" exceeded the timeout of 60 seconds.

/Users/runner/work/pact-php/pact-php/vendor/symfony/process/Process.php:1150
/Users/runner/work/pact-php/pact-php/vendor/symfony/process/Process.php:460
/Users/runner/work/pact-php/pact-php/src/PhpPact/Standalone/StubService/StubServer.php:39
/Users/runner/work/pact-php/pact-php/example/stub-server/consumer/tests/StubServerTest.php:27

Here is Stub Server's log (nothing special):

2024-05-02T01:36:43.114775Z DEBUG main pact_stub_server::loading: Scanning "/Users/runner/work/pact-php/pact-php/example/stub-server/consumer/tests/../_resources"
2024-05-02T01:36:43.114960Z DEBUG main pact_stub_server::loading: Loading file '"/Users/runner/work/pact-php/pact-php/example/stub-server/consumer/tests/../_resources/someconsumer-someprovider.json"'
2024-05-02T01:36:43.116575Z  INFO main pact_stub_server: Loaded 1 pacts (1 total interactions)
2024-05-02T01:36:43.118808Z  INFO tokio-runtime-worker pact_stub_server::server: Server started on port 7201

Additional info:

tienvx commented 1 week ago

Look like it no longer happen