elastic / elastic/beats

[Flaky Test] github.com/elastic/beats/v7/filebeat/tests/integration TestFilestreamGrowingFingerprint_rename_and_grow

Closed
#53,193 1 comment 0 reactions 0 assignees Claimed by @orestisfl 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:** TestFilestreamGrowingFingerprint_rename_and_grow
* **Scope:** github.com/elastic/beats/v7/filebeat/tests/integration
* **File:** N/A
* **Location:** N/A
* **Buildkite Link:** https://buildkite.com/organizations/elastic/analytics/suites/beats/tests/5d3fcc9f-9840-8397-ae6c-f782989fc748
* **Flaky Instances:** 1
* **Latest Occurrence:** 2026-09-14T04:39:26.959Z

### Details

```json
{
"id": "5d3fcc9f-9840-8397-ae6c-f782989fc748",
"web_url": "https://buildkite.com/organizations/elastic/analytics/suites/beats/tests/5d3fcc9f-9840-8397-ae6c-f782989fc748",
"scope": "github.com/elastic/beats/v7/filebeat/tests/integration",
"name": "TestFilestreamGrowingFingerprint_rename_and_grow",
"location": null,
"file_name": null,
"instances": 1,
"latest_occurrence_at": "2026-09-14T04:39:26.959Z",
"most_recent_instance_at": "2026-09-14T04:39:26.959Z",
"last_resolved_at": null,
"ownership_team_ids": [],
"failure_examples_count": 2
}
```

### Failure Examples

**Example 1:**
**Run:** https://api.buildkite.com/v2/analytics/organizations/elastic/suites/beats/runs/853510c1-0135-8b08-97c8-07fc9b04a376
**Time:** 2026-09-14T10:35:41.369Z
**Stacktrace:**

```
=== RUN TestFilestreamGrowingFingerprint_rename_and_grow
=== PAUSE TestFilestreamGrowingFingerprint_rename_and_grow
=== CONT TestFilestreamGrowingFingerprint_rename_and_grow
filestream_fingerprint_test.go:807:
Error Trace: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/libbeat/tests/integration/framework.go:592
/opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/tests/integration/filestream_fingerprint_test.go:807
Error: Condition never satisfied
Test: TestFilestreamGrowingFingerprint_rename_and_grow
Messages: filebeat did not detect the rename
framework.go:268: CMD line to execute Beat: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/filebeat.test filebeat --systemTest --path.home /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944 --path.logs /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944 -E logging.to_files=true -E logging.files.rotateeverybytes=104857600 -E logging.files.rotateonstartup=false -c /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944/filebeat.yml
filestream_fingerprint_test.go:759: === Output events sorted by file path, then by timestamp ===
filestream_fingerprint_test.go:759: [app.log] 2026-09-14T10:55:07.747Z @ offset 0: app original line 1.............................
filestream_fingerprint_test.go:759: === Total: 1 events ===
framework.go:1183: Last 0 bytes of stderr:
framework.go:1189: Last 44 bytes of stdout:
PASS
coverage: 12.6% of statements in ./...
framework.go:1201: Last 1024 bytes of /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944/filebeat-20260914.ndjson:
e":"input-logfile/store_cache.go","file.line":67},"message":"filestream shared store cleaner stopped","service.name":"filebeat","input_type":"filestream","filestream_store_key":"memlog:///opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944/data/registry","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2026-09-14T10:55:22.755Z","log.logger":"publisher","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/pipeline.(*queueReader).run","file.name":"pipeline/queue_reader.go","file.line":76},"message":"pipeline event consumer queue reader: stop","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2026-09-14T10:55:22.756Z","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch","file.name":"instance/beat.go","file.line":616},"message":"filebeat stopped.","service.name":"filebeat","ecs.version":"1.6.0"}
framework.go:1201: Last 1024 bytes of /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944/filebeat-events-data-20260914.ndjson:
\",\n \"@metadata\": {\n \"beat\": \"filebeat\",\n \"type\": \"_doc\",\n \"version\": \"9.6.0\"\n },\n \"input\": {\n \"type\": \"filestream\"\n },\n \"ecs\": {\n \"version\": \"8.0.0\"\n },\n \"host\": {\n \"name\": \"bk-agent-prod-gcp-1789381970300985435\"\n },\n \"agent\": {\n \"id\": \"34802316-89d2-4646-9d0a-8e193ac062c9\",\n \"name\": \"bk-agent-prod-gcp-1789381970300985435\",\n \"type\": \"filebeat\",\n \"version\": \"9.6.0\",\n \"ephemeral_id\": \"7c104fd3-62a6-4d98-9f8e-d62ec0688c3f\"\n },\n \"log\": {\n \"offset\": 0,\n \"file\": {\n \"path\": \"/opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944/logs/app.log\",\n \"device_id\": \"2049\",\n \"inode\": \"6193570\"\n }\n },\n \"message\": \"app original line 1.............................\"\n}","service.name":"filebeat","log.type":"event","ecs.version":"1.6.0"}
framework.go:838: Temporary directory saved: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789381970300985435/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow4125504944
--- FAIL: TestFilestreamGrowingFingerprint_rename_and_grow (16.23s)
```

**Example 2:**
**Run:** https://api.buildkite.com/v2/analytics/organizations/elastic/suites/beats/runs/963a0bd5-4eb5-818b-83cc-6bf0d640c553
**Time:** 2026-09-14T04:07:09.435Z
**Stacktrace:**

```
=== RUN TestFilestreamGrowingFingerprint_rename_and_grow
=== PAUSE TestFilestreamGrowingFingerprint_rename_and_grow
=== CONT TestFilestreamGrowingFingerprint_rename_and_grow
filestream_fingerprint_test.go:807:
Error Trace: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/libbeat/tests/integration/framework.go:592
/opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/tests/integration/filestream_fingerprint_test.go:807
Error: Condition never satisfied
Test: TestFilestreamGrowingFingerprint_rename_and_grow
Messages: filebeat did not detect the rename
framework.go:268: CMD line to execute Beat: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/filebeat.test filebeat --systemTest --path.home /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894 --path.logs /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894 -E logging.to_files=true -E logging.files.rotateeverybytes=104857600 -E logging.files.rotateonstartup=false -c /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894/filebeat.yml
filestream_fingerprint_test.go:759: === Output events sorted by file path, then by timestamp ===
filestream_fingerprint_test.go:759: [app.log] 2026-09-14T04:21:07.858Z @ offset 0: app original line 1.............................
filestream_fingerprint_test.go:759: === Total: 1 events ===
framework.go:1183: Last 0 bytes of stderr:
framework.go:1189: Last 44 bytes of stdout:
PASS
coverage: 12.6% of statements in ./...
framework.go:1201: Last 1024 bytes of /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894/filebeat-20260914.ndjson:
egistrar.go","file.line":129},"message":"Registrar stopped","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2026-09-14T04:21:22.882Z","log.logger":"input.filestream.store_cache","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile.acquireStore.func1","file.name":"input-logfile/store_cache.go","file.line":67},"message":"filestream shared store cleaner stopped","service.name":"filebeat","input_type":"filestream","filestream_store_key":"memlog:///opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894/data/registry","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2026-09-14T04:21:22.882Z","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch","file.name":"instance/beat.go","file.line":616},"message":"filebeat stopped.","service.name":"filebeat","ecs.version":"1.6.0"}
framework.go:1201: Last 1024 bytes of /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894/filebeat-events-data-20260914.ndjson:
\",\n \"@metadata\": {\n \"beat\": \"filebeat\",\n \"type\": \"_doc\",\n \"version\": \"9.6.0\"\n },\n \"log\": {\n \"offset\": 0,\n \"file\": {\n \"path\": \"/opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894/logs/app.log\",\n \"device_id\": \"2049\",\n \"inode\": \"6194005\"\n }\n },\n \"message\": \"app original line 1.............................\",\n \"input\": {\n \"type\": \"filestream\"\n },\n \"ecs\": {\n \"version\": \"8.0.0\"\n },\n \"host\": {\n \"name\": \"bk-agent-prod-gcp-1789358644106547085\"\n },\n \"agent\": {\n \"name\": \"bk-agent-prod-gcp-1789358644106547085\",\n \"type\": \"filebeat\",\n \"version\": \"9.6.0\",\n \"ephemeral_id\": \"73c65211-62b1-4714-812c-1d9988cb77ee\",\n \"id\": \"38172cf0-3669-48be-bb5a-56501fc59319\"\n }\n}","service.name":"filebeat","log.type":"event","ecs.version":"1.6.0"}
framework.go:838: Temporary directory saved: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1789358644106547085/elastic/filebeat/filebeat/build/integration-tests/TestFilestreamGrowingFingerprint_rename_and_grow3708040894
--- FAIL: TestFilestreamGrowingFingerprint_rename_and_grow (16.23s)
```

Contributor guide

Open the contributing guide

Research direction

Start with filebeat/tests/integration/filestream_fingerprint_test.go, especially TestFilestreamGrowingFingerprint_rename_and_grow around lines 759 and 807, and review the linked Buildkite failure examples. Reproduce the test and trace why the rename is not detected; done means the integration test reliably observes the renamed and grown file without flaky failures.

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
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.