-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[otelcoltest] Move otelcoltest to its own module #10417
[otelcoltest] Move otelcoltest to its own module #10417
Conversation
a935651
to
ceb3636
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10417 +/- ##
==========================================
- Coverage 92.35% 92.27% -0.09%
==========================================
Files 388 388
Lines 18445 18461 +16
==========================================
Hits 17035 17035
- Misses 1055 1065 +10
- Partials 355 361 +6 ☔ View full report in Codecov by Sentry. |
a590ebf
to
d2344aa
Compare
d2344aa
to
6362904
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there was a reason for this, but I don't remember why we need to change the path and we can't just leave it in its current folder. Could you explain the motivation for that?
@mx-psi Turns out that LoadConfig was used a lot in Contrib and it would be nice to keep using the version that depends on the providers/converters. We are trying to remove them from otelcol dependencies, but in this case the function is useful for our Contrib tests. We could create an internal package in Contrib and duplicate this logic, but this way felt better. If we want to do the Contrib solution, I think we should remove LoadConfig and LoadConfigAndValidate entirely. |
@TylerHelmuth What I was asking is: why don't we add a |
@mx-psi oh I see what you mean. I dont see an issue with doing it that way, I'll update the PR |
@mx-psi |
Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
@TylerHelmuth We do have that structure on |
@mx-psi you're right, I needed to get the module name nested correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Removed deprecated `NewCommand`. Deprecates `NewCommandMustSetProvider`. Adds `NewCommand` that requires at least one provider be set. Removes usage of imported providers/converters from otelcol (but they still live in otelcoltest until #10417 is merged. <!-- Issue number if applicable --> #### Link to tracking issue closes #10290. <!--Describe what testing was performed and which tests were added.--> #### Testing Unit tests
Description
As part of #10290, move
otelcoltest
to its own module.Link to tracking issue
Related to #10290