[9.3](backport #49706) filebeat: port remaining harvester tests to filestream#49793
Merged
[9.3](backport #49706) filebeat: port remaining harvester tests to filestream#49793
Conversation
* filebeat: port remaining harvester tests to filestream Port remaining coverage from test_harvester.py into filestream input integration tests and remove the redundant Python test file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix linter issues * fix test context * fix issue with logger with no selectors --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com> (cherry picked from commit f558378)
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
mauri870
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port the remaining test coverage from
filebeat/tests/system/test_harvester.pyintofilebeat/input/filestream/input_integration_test.go, then remove the redundant Python test file.Added Go integration tests
TestFilestreamExceedBuffer(fromtest_exceed_buffer)TestFilestreamIgnoreSymlink(fromtest_ignore_symlink)TestFilestreamSymlinkAndFile(fromtest_symlink_and_file)TestFilestreamDecodeError(fromtest_decode_error)TestFilestreamDebugReader(fromtest_debug_reader)Other changes
filebeat/tests/system/test_harvester.py.TestFilestreamDebugReadervialogp.TestingSetup(logp.WithSelectors("*"))so null-byte debug logging is observable in the integration harness.Validation
I attempted to run the new tests with repeated counts, but this runner consistently OOM-killed compilation of transitive dependencies in
go testbefore executing tests:GOMAXPROCS=1 GOGC=20 GOFLAGS='-p=1 -vet=off' go test -tags=integration ./filebeat/input/filestream -run '^TestFilestreamExceedBuffer$' -count=50GOMAXPROCS=1 GOGC=20 GOFLAGS='-p=1 -vet=off' go test -tags=integration ./filebeat/input/filestream -run '^TestFilestreamIgnoreSymlink$' -count=50Representative failure:
Given the environment memory limits, I could not complete the requested high
-countflake validation here. The code changes are committed and ready for CI validation in a larger runner.Note
🔒 Integrity filtering filtered 1 item
Integrity filtering activated and filtered the following item during workflow execution.
This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.
issue_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)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 #49706 done by [Mergify](https://mergify.com).