-
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
[confighttp] newDefault for confighttp package structs #9672
[confighttp] newDefault for confighttp package structs #9672
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9672 +/- ##
=======================================
Coverage 91.56% 91.56%
=======================================
Files 360 360
Lines 16698 16704 +6
=======================================
+ Hits 15289 15295 +6
Misses 1073 1073
Partials 336 336 ☔ View full report in Codecov by Sentry. |
why are contrib-tests failing? : | |
@astencel-sumo some contrib tests are failing in github actions, but I did ran all tests on local but nothing failed there, I also looked into the failing test it is expecting nil value for our map. |
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.
ClientConfig
and ServerConfig
depend on configtls
. I think we should wait on this PR until the NewDefault
functions exist for configtls
.
I don't think that's the problem. The reason the contrib tests are failing is that I asked Sanket to make the See e.g. here: https://github.com/open-telemetry/opentelemetry-collector/actions/runs/8231961010/job/22508354464?pr=9672#step:4:1109 === FAIL: . TestLoadConfig/zipkin/2 (0.00s)
config_test.go:86:
Error Trace: /tmp/opentelemetry-collector-contrib/exporter/zipkinexporter/config_test.go:86
Diff:
--- Expected
+++ Actual
@@ -39,3 +39,4 @@
Timeout: (time.Duration) 5000000000,
- Headers: (map[string]configopaque.String) <nil>,
+ Headers: (map[string]configopaque.String) {
+ }, I'm not exactly sure what's the preferred course of action here.
What's your opinion @TylerHelmuth ? |
Oh my comment was only a general statement, not a reason for the failing tests. I dont think we should introduce For the tests themselves I'd say we have 2 options:
|
Oh, I see 😄 Makes sense, @Sanket-0510 this means this PR should wait for #9658. After #9658 is merged, you can incorporate changes from
I don't like 1, I believe the functions should not leave the map as |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@Sanket-0510 this is ready to use the |
I'll rebase! |
f878591
to
97499f6
Compare
97499f6
to
89d1c0d
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description:
NewDefault methods to all the exported structs in confighttp package
Link to tracking Issue:
closes #9655
Testing:
Added test for the same.
Documentation:
godoc