kayx23 opened a new pull request, #14111: URL: https://github.com/apache/apisix/pull/14111
## Why this PR is needed The release/3.18 stream Prometheus test scrapes immediately after a session block. Worker metric flushing and privileged-agent cache refresh are asynchronous, so the expected 200 and 502 session series can be absent even though product behavior is correct. Both assertions failed again during the automatic rerun on apache/apisix#14081. This backports only the relevant readiness pattern from apache/apisix#14092. The 3.18 test polls the exposition for the existing expected series instead of assuming the next block sees it immediately. Product code and metric assertions are unchanged. apache/apisix#14081 should rebase after this prerequisite merges. ## Validation - one commit changing only `t/stream-plugin/prometheus-metrics.t` - `git diff --check origin/release/3.18...HEAD` - preserves the exact expected status, listener, node, and count assertions - full CI is running -- 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]
