Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Cleanup file input 2 #165

Merged
merged 3 commits into from
Jun 1, 2021
Merged

Conversation

djaglowski
Copy link
Member

The file input operator is in need of additional test coverage, as well as more thorough benchmarks.

In preparation for this effort, I would like to reorganize existing test code in a way that will make further PRs simpler to track.

This PR splits file_test.go into the following categories:

  1. Utility functions moved to util_test.go
  2. Benchmarks and benchmark specific code moved to benchmark_test.go
  3. TestBuild moved to config_test.go
  4. Rotation tests and tests relating to movement of files moved to rotation_test.go
  5. All other tests remain in file_test.go

@djaglowski djaglowski marked this pull request as ready for review May 27, 2021 15:06
@djaglowski djaglowski requested review from a team and jsirianni May 27, 2021 15:06
@tigrannajaryan
Copy link
Member

@djaglowski it is hard to see what has changed since git diff is unable to show it nicely.
I assume this is purely code reshuffling between files and there are no functional changes, right?

@djaglowski
Copy link
Member Author

@tigrannajaryan That's correct.

@djaglowski djaglowski merged commit fa68892 into open-telemetry:main Jun 1, 2021
@djaglowski djaglowski deleted the cleanup-file-input-2 branch June 1, 2021 18:20
jsirianni pushed a commit to observIQ/stanza that referenced this pull request Jun 25, 2021
jsirianni pushed a commit to observIQ/stanza that referenced this pull request Jun 25, 2021
jsirianni pushed a commit to observIQ/stanza that referenced this pull request Jun 25, 2021
* reorg test files only, ported from open-telemetry/opentelemetry-log-collection#165

* port otel enhanced file input benchmarking open-telemetry/opentelemetry-log-collection#166

* skip closing files that are already closed
jsirianni pushed a commit to observIQ/stanza that referenced this pull request Jul 8, 2021
* reorg test files only, ported from open-telemetry/opentelemetry-log-collection#165

* port otel enhanced file input benchmarking open-telemetry/opentelemetry-log-collection#166

* skip closing files that are already closed

* port otel file rotation tracking open-telemetry/opentelemetry-log-collection#182

* fix poll()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants