nic-6443 opened a new pull request, #13854: URL: https://github.com/apache/apisix/pull/13854
`t/cli/test_cmd.sh` fails intermittently in CI: ``` ./t/cli/test_cmd.sh: line 39: logs/nginx.pid: No such file or directory ``` It reads `logs/nginx.pid` on the line right after `make run`, but `apisix start` returns once nginx has daemonized and the master writes its pid file after that — so the read races the write and the script dies under `set -e`. Poll for the file first. The helper follows the shape of the existing `wait_for_tcp` in `t/cli/common.sh`. The other places that read the pid file (`test_load_full_data_init_worker.sh`, `test_limit_conn_redis_ttl.sh`) already wait on a request or guard with `-f`, so this is the only racy read. Verified by running `./t/cli/test_cmd.sh` locally end to end. -- 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]
