Skip to content

[9.2](backport #49228) filebeat: stabilize kafka input integration topic readiness#49272

Merged
belimawr merged 2 commits into9.2from
mergify/bp/9.2/pr-49228
Mar 4, 2026
Merged

[9.2](backport #49228) filebeat: stabilize kafka input integration topic readiness#49272
belimawr merged 2 commits into9.2from
mergify/bp/9.2/pr-49228

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Mar 4, 2026

Proposed commit message

Use a shared helper that creates and waits for a test topic to become writable before producing events. Apply it across kafka integration tests, including TestTest, to reduce leader-election race flakes.

GenAI-Assisted: Yes
Human-Reviewed: Yes
Tool: GitHub Copilot CLI, Model: GPT-5.3 Codex

Summary

  • add createReadyTestTopic(t) to centralize kafka test-topic setup and readiness waiting
  • switch kafka input integration tests to use this helper before producing events
  • include TestTest and the other topic-writing tests so they all avoid leader-election write races consistently

Why

TestTest flake reports show transient no leader for this partition write errors. Other tests in the same file had the same write-on-fresh-topic pattern; this change applies the readiness guard uniformly.

Validation


What is this? | From workflow: Mention in Issue

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.


This is an automatic backport of pull request #49228 done by [Mergify](https://mergify.com).

Use a shared helper that creates and waits for a test topic to become writable before producing events. Apply it across kafka integration tests, including TestTest, to reduce leader-election race flakes.

GenAI-Assisted: Yes
Human-Reviewed: Yes
Tool: GitHub Copilot CLI, Model: GPT-5.3 Codex

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
(cherry picked from commit f6a7f39)
@mergify mergify bot requested a review from a team as a code owner March 4, 2026 14:56
@mergify mergify bot added the backport label Mar 4, 2026
@mergify mergify bot requested review from VihasMakwana and andrzej-stencel and removed request for a team March 4, 2026 14:56
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Mar 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions bot added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team skip-changelog labels Mar 4, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Mar 4, 2026
@belimawr belimawr enabled auto-merge (squash) March 4, 2026 15:26
@belimawr belimawr self-assigned this Mar 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

The failure is in check-default because the NOTICE file is out of date, not because of the Kafka test change.

  • Failing job: check (Run check-default step)
  • Log evidence:
    • NOTICE.txt: needs update
    • make[1]: *** [Makefile:114: check-no-changes] Error 1
    • make: *** [Makefile:102: check-default] Error 2
  • Why this fails: check-default runs make notice and then check-no-changes (Makefile:96-102 and Makefile:111-115), so any generated diff in NOTICE.txt causes the job to fail.

Recommended fix (minimal):

  1. On branch mergify/bp/9.2/pr-49228, run make notice at repo root.
  2. Commit the regenerated NOTICE.txt (and go.mod/go.sum if they also change).
  3. Re-run CI.

Tests run by me: none locally (read-only workflow analysis only).


What is this? | From workflow: PR Actions Detective

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@rdner
Copy link
Copy Markdown
Member

rdner commented Mar 4, 2026

@belimawr regarding the CI check failure, see #49037 (comment)

@belimawr belimawr merged commit cb959b9 into 9.2 Mar 4, 2026
52 of 53 checks passed
@belimawr belimawr deleted the mergify/bp/9.2/pr-49228 branch March 4, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants