elastic / elastic/beats

[Flaky Test] github.com/elastic/beats/v7/libbeat/otel/otelconsumer TestPublish/retryable_errors_wait_a_per-attempt_jittered_backoff

Open
#52,653 2 comments 1 reaction 0 assignees View on GitHub
flaky-test needs_team
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 15m
Merged PRs (30d)
385

Description

## Flaky Test

* **Test Name:** TestPublish/retryable_errors_wait_a_per-attempt_jittered_backoff
* **Scope:** github.com/elastic/beats/v7/libbeat/otel/otelconsumer
* **File:** N/A
* **Location:** N/A
* **Buildkite Link:** https://buildkite.com/organizations/elastic/analytics/suites/beats/tests/d1a2c636-f473-8f31-99d9-1b8f53c5ad3f
* **Flaky Instances:** 1
* **Latest Occurrence:** 2026-08-17T04:29:50.352Z

### Details

```json
{
"id": "d1a2c636-f473-8f31-99d9-1b8f53c5ad3f",
"web_url": "https://buildkite.com/organizations/elastic/analytics/suites/beats/tests/d1a2c636-f473-8f31-99d9-1b8f53c5ad3f",
"scope": "github.com/elastic/beats/v7/libbeat/otel/otelconsumer",
"name": "TestPublish/retryable_errors_wait_a_per-attempt_jittered_backoff",
"location": null,
"file_name": null,
"instances": 1,
"latest_occurrence_at": "2026-08-17T04:29:50.352Z",
"most_recent_instance_at": "2026-08-17T04:29:50.352Z",
"last_resolved_at": null,
"ownership_team_ids": [],
"failure_examples_count": 1
}
```

### Failure Examples

**Example 1:**
**Run:** https://api.buildkite.com/v2/analytics/organizations/elastic/suites/beats/runs/d31c609f-0534-8769-82f0-05f5c3c0258a
**Time:** 2026-08-15T04:16:02.763Z
**Stacktrace:**

```
=== RUN TestPublish/retryable_errors_wait_a_per-attempt_jittered_backoff
logger.go:146: 2026-08-15T04:08:38.911Z ERROR otelconsumer failed to publish batch events to otel collector pipeline: retryable error
logger.go:146: 2026-08-15T04:08:39.011Z ERROR otelconsumer failed to publish batch events to otel collector pipeline: retryable error
otelconsumer_test.go:299:
Error Trace: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1786766623873842568/elastic/beats-libbeat/libbeat/otel/otelconsumer/otelconsumer_test.go:299
Error: "127.65914ms" is not less than "125ms"
Test: TestPublish/retryable_errors_wait_a_per-attempt_jittered_backoff
Messages: retry delay should not escalate past ~2*init (got 127.65914ms)
logger.go:146: 2026-08-15T04:08:39.139Z ERROR otelconsumer failed to publish batch events to otel collector pipeline: retryable error
logger.go:146: 2026-08-15T04:08:39.196Z ERROR otelconsumer failed to publish batch events to otel collector pipeline: retryable error
--- FAIL: TestPublish/retryable_errors_wait_a_per-attempt_jittered_backoff (0.38s)

```

Contributor guide

Open the contributing guide

Research direction

Start in libbeat/otel/otelconsumer/otelconsumer_test.go at TestPublish/retryable_errors_wait_a_per-attempt_jittered_backoff, using the Buildkite failure as the reproduction. Investigate the timing assertion around line 299 and make the test reliably validate per-attempt jittered backoff without false failures such as the reported 127.65914ms delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.