Repository navigation
fix flaky TestPlatformMetrics test - #659
Dmitry Berkovich (dberkov) merged 2 commits into
Conversation
Krisztian F (krisztianfekete)
left a comment
There was a problem hiding this comment.
Ah, opened #661 for the same flake before spotting this one, sorry! Same approach in both, so happy to close mine. One thing worth pulling in from #661: in the failed run both export ticks actually fired and failed (first one used the whole 30s default export timeout, second died on a DNS timeout), so interval alone still leaves workers at ~1 attempt per 30s during a blip. Can you also set + propagate OTEL_METRIC_EXPORT_TIMEOUT=10000 the same way? Then this covers everything.
The CollectorHasService cleanup looks right too, the kind collector has no resource_to_telemetry_conversion so service_name= never matches.
|
LGTM, but will wait for Krisztian F (@krisztianfekete) to give an approval |
|
Thanks! Krisztian F (@krisztianfekete) just added - can you take a look? |
Krisztian F (krisztianfekete)
left a comment
There was a problem hiding this comment.
Thanks, LGTM!
1b329c9
into
agent-substrate:main
Cut the OTel metric export interval to 10s in the kind stack, plumbing OTEL_METRIC_EXPORT_INTERVAL from ate-controller through to the ateom worker pods it creates. ateom registers no instruments of its own, so it stays invisible to the collector until its first export tick - which consumed ~50s of TestPlatformMetricsEmitted's 120s budget and made the suite flaky on loaded CI runners.
also removes a dead
service_name=in CollectorHasService, since the Prometheus exporter only ever emits that resource attribute as the job label.