Skip to content

Fix flaky metrics e2e test by adding curl retries#115

Merged
creydr merged 1 commit intofunctions-dev:mainfrom
creydr:fix-metrics-e2e-flake
Apr 29, 2026
Merged

Fix flaky metrics e2e test by adding curl retries#115
creydr merged 1 commit intofunctions-dev:mainfrom
creydr:fix-metrics-e2e-flake

Conversation

@creydr
Copy link
Copy Markdown
Collaborator

@creydr creydr commented Apr 29, 2026

Summary

  • The curl-metrics pod in the metrics e2e test runs a single curl invocation. If the metrics endpoint is transiently unavailable when the pod starts (e.g. due to scheduling/startup timing), curl exits with "connection refused", the pod enters Failed status, and the test times out waiting for Succeeded.
  • Add --retry 10 --retry-delay 5 --retry-connrefused flags so curl retries on transient connection failures instead of failing immediately.

The curl-metrics pod runs a single curl invocation. If the metrics
endpoint is transiently unavailable when the pod starts, curl exits
with a connection refused error and the pod enters Failed status,
causing the test to time out.

Add --retry, --retry-delay, and --retry-connrefused flags so curl
retries on transient connection failures.
@creydr creydr enabled auto-merge April 29, 2026 10:10
@creydr creydr added this pull request to the merge queue Apr 29, 2026
Merged via the queue into functions-dev:main with commit 654ec4c Apr 29, 2026
11 checks passed
@creydr creydr deleted the fix-metrics-e2e-flake branch April 29, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant