Skip to content
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

[chore] Adopt to changes in confmap.ResolverSettings API #4848

Merged
merged 1 commit into from
May 22, 2024

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented May 17, 2024

Adopt the codebase to confmap.ResolverSettings changes upstream:

  • Providers field replaced with ProviderFactories
  • Converters field replaced with ConverterFactories

@dmitryax dmitryax changed the title [DRAFT] Property overwrite converter factory [chore] Adopt to changes in confmap.ResolverSettings API May 21, 2024
@dmitryax dmitryax marked this pull request as ready for review May 21, 2024 16:45
@dmitryax dmitryax requested review from a team as code owners May 21, 2024 16:45
Copy link
Contributor

@crobert-1 crobert-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some integration tests are failing, potentially related to these changes. The following are failing, there are potentially more that I missed:

TestCoreValidateDetectsInvalidYamlProvider
TestCoreValidateYamlProvider
TestCoreValidateDefaultConfig

@@ -114,7 +109,6 @@ func newDiscoverer(logger *zap.Logger) (*discoverer, error) {
configs: map[string]*Config{},
duration: duration,
mu: sync.Mutex{},
expandConverter: expandconverter.NewFactory().Create(confmap.ConverterSettings{}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint is failing as expandConverter is no longer used, looks like we can remove it from the discoverer struct.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't discoverer used by the discovery mechanism somewhere?

@dmitryax
Copy link
Contributor Author

Need open-telemetry/opentelemetry-collector#10203 to resolve integration tests and fix validate sub-command

Adopt the codebase to confmap.ResolverSettings changes upstream:
- `Providers` field replaced with `ProviderFactories`
- `Converters` field replaced with `ConverterFactories`
@dmitryax
Copy link
Contributor Author

I’m skipping the integration tests for now, so we can merge this separately from the core upgrade to 0.101.0

@dmitryax dmitryax merged commit 533c568 into main May 22, 2024
111 checks passed
@dmitryax dmitryax deleted the overwrite-factory branch May 22, 2024 00:42
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2024
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.

3 participants