-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Update core to latest & fix impacted components #3442
Conversation
The first round of the build and test errors have been sorted out. I am now reviewing all components that use the confighelpers to see if there's a clash in settings ( "auth" field). I know 100% this is an issue with the f5cloudexporter. |
Confirmed list of components that use the impacted confighelpers and have a config setting field named "auth" at the top level of the config (with and without 'squash'):
|
Since I am the codeowner of the |
For some reason the humioexporter didn't show up in earlier failures. Working on it now... |
Now working on the uptrace exporter... |
This one was a fun one. PLEASE TAKE EXTRA CARE AND ASSUME I MISSED SOMETHING when reviewing your components in this PR, as some were straightforward others required more effort. I have split up each component into their own commit and ensured all changes to that component remained in their corresponding commit. |
[UPDATE] SHOULD BE RESOLVED - PENDING A FEW TEST RUNS There appears to be a flaky test for the signalfx exporter. It has failed twice now and has passed other times. I will dig into this ASAP.
|
Please file a bug so that we fix the flaky test. |
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.
@gramidt thank you for working on this.
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'm approving the components that I own and the general semantics of the auth changes. Other component owners still need to give their approvals.
@@ -109,7 +110,7 @@ func TestLeakingBody(t *testing.T) { | |||
return newSigningRoundTripperWithCredentials(authConfig, awsCreds, next, sdkInformation) | |||
}, | |||
} | |||
client, _ := setting.ToClient() | |||
client, _ := setting.ToClient(componenttest.NewNopHost().GetExtensions()) |
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.
If you prefer, you can use something like map[config.ComponentID]component.Extension{}
instead.
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.
That's also a great option, @jpkrohling! Which way do you believe is the correct convention for us to use moving forward? I know we typically use componentest
when possible, so I thought following that pattern made the most sense at the time of this PR.
Anytime, @tigrannajaryan! It's all about the community :) |
It seems that "Publish-2" had an issue. I'll re-kick this off when we're ready. |
I believe it was caused by me and I fixed it. I have been running the entire suite locally without seeing that issue again. Once everyone has had the opportunity to review, I will re-kick the tests a few times to be sure. If I see it again, I will file an issue (assuming I didn't cause it with these changes). |
Thank you @gramidt |
Just rebased to get latest changes. |
Friendly ping CODEOWNERS. This PR is critical since it's needed before we can pull any further updates from the core collector. |
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.
There are too many changes that break the components. We need to rollback the change in core, and make PRs to move the http client initialization in Start as a separate PR.
@@ -232,6 +227,18 @@ func (e *exporter) sendBatch(ctx context.Context, lines []string) (int, error) { | |||
return 0, nil | |||
} | |||
|
|||
// start starts the exporter | |||
func (e *exporter) start(_ context.Context, host component.Host) (err error) { |
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.
This is not used in the factory as "WithStart" so it will not be called.
@@ -235,6 +258,18 @@ func tagFromSpan(evt *HumioStructuredEvent, strategy Tagger) string { | |||
} | |||
} | |||
|
|||
// start starts the exporter | |||
func (e *humioTracesExporter) start(_ context.Context, host component.Host) (err error) { |
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.
Same, This is not used in the factory as "WithStart" so it will not be called.
@jpkrohling @pavankrish123 - Please see @bogdandrutu comments above. Sadly, I over extended myself to work on this PR to help out, but I do not have the necessary bandwidth to rollback and adjust this effort in the near future. Would either of you be able to work with @bogdandrutu on this? |
@gramidt I think you can start splitting from this PR, smaller PRs that simply change where ToClient is called (in start). Then when the change to the API is rolledback in core we can simply just add the extensions to the call. |
I should be able to manage that, @bogdandrutu! I will start now and see how far I get with my limited time today. |
Closing this in favor of @bogdandrutu approach. |
Description:
Updated core and updated impacted components with the latest Client Authentication Extension addition.
Impacted components:
Exporters:
Receivers:
Extensions:
I have split up each component into their own commit and ensured all changes to that component remained in their corresponding commit.
Link to tracking Issue:
#3438
Testing:
Unit tests
Documentation:
Unit tests
Notes
This one was a fun one. PLEASE TAKE EXTRA CARE AND ASSUME I MISSED SOMETHING when reviewing your components in this PR, as some were straightforward others required more effort.