You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "flearc (via GitHub)" <gi...@apache.org> on 2025/05/26 08:29:31 UTC
[I] ci: test_status_api fails when /status/ready returns non-200 [apisix]
flearc opened a new issue, #12257:
URL: https://github.com/apache/apisix/issues/12257
### Description
The new /status/ready endpoints only return 200 after configuration is fully loaded into all worker processes.
https://github.com/apache/apisix/blob/e430a2bd6bffa6719e30f149af1dc3833d7e39b9/apisix/core/config_etcd.lua#L611
But in CI script `test_status_api.sh`, these endpoints are called immediately after make run. This occasionally causes CI failures because the workers haven’t finished loading configuration yet, and the endpoints respond with 503.
https://github.com/apache/apisix/blob/e430a2bd6bffa6719e30f149af1dc3833d7e39b9/t/cli/test_status_api.sh#L48-L56
see
https://github.com/apache/apisix/actions/runs/15176488267/job/42763756417#step:7:7552
As a workaround, we can retry the /status and /status/ready requests a few times in the CI script after make run, with a small delay, to wait for the config to be loaded.
failed ci tests:
https://github.com/apache/apisix/actions/runs/15155952361/job/42610819707
https://github.com/apache/apisix/actions/runs/15155952361/job/42610820574
https://github.com/apache/apisix/actions/runs/15176488267/job/42763756417
--
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: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ci: test_status_api fails when /status/ready returns non-200 [apisix]
Posted by "flearc (via GitHub)" <gi...@apache.org>.
flearc closed issue #12257: ci: test_status_api fails when /status/ready returns non-200
URL: https://github.com/apache/apisix/issues/12257
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ci: test_status_api fails when /status/ready returns non-200 [apisix]
Posted by "flearc (via GitHub)" <gi...@apache.org>.
flearc commented on issue #12257:
URL: https://github.com/apache/apisix/issues/12257#issuecomment-2999224187
@Baoyuantop looks like this has been resolved by adding a 2-second wait in https://github.com/apache/apisix/pull/12272. Closing as completed.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ci: test_status_api fails when /status/ready returns non-200 [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12257:
URL: https://github.com/apache/apisix/issues/12257#issuecomment-2910885017
cc @Revolyssup
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ci: test_status_api fails when /status/ready returns non-200 [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12257:
URL: https://github.com/apache/apisix/issues/12257#issuecomment-2999115731
Hi @flearc, can you submit a PR to fix this?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ci: test_status_api fails when /status/ready returns non-200 [apisix]
Posted by "flearc (via GitHub)" <gi...@apache.org>.
flearc commented on issue #12257:
URL: https://github.com/apache/apisix/issues/12257#issuecomment-2908960019
or just sleep for a while after
https://github.com/apache/apisix/blob/e430a2bd6bffa6719e30f149af1dc3833d7e39b9/t/cli/test_status_api.sh#L50-L56
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org