damccorm opened a new pull request, #41219: URL: https://github.com/apache/beam/pull/41219
### Summary Fixes `Timed out waiting 60s for Python expansion service` failures in `validatesCrossLanguageRunnerSetup` across `PostCommit XVR PythonUsingJava Dataflow` ([run 43071232200](https://github.com/apache/beam/actions/runs/43071232200) and [run 42591167549](https://github.com/apache/beam/actions/runs/42591167549)). ### Root Cause Before `apache_beam.runners.portability.expansion_service_test` binds its gRPC server port, `ExpansionServiceServicer` initializes its default environment and invokes `pip download beautifulsoup4>=4.9,<5.0` (as well as fitting the test `sklearn` SVM artifact). When PyPI experiences a transient socket timeout/retry (pip's default timeout is 15s × up to 5 retries = 75s), `wait_for_port` in `sdks/python/scripts/run_expansion_services.sh` times out at 60s before the server starts listening. ### Fix Increase the `wait_for_port` timeout in `sdks/python/scripts/run_expansion_services.sh` from 60s to 180s. ### Verification - Triggered `beam_PostCommit_XVR_PythonUsingJava_Dataflow.yml` workflow run on branch: [``]() -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
