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

[*test] Add NewNopSettingsWithType everywhere #12357

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Feb 11, 2025

Description

Creates NewNopSettingsWithType function on test modules and deprecates the NewNopSettings functions on those modules. Replace all usages of NewNopSettings with NewNopSettingsWithType.

Part of #12305 but applied to all component kinds.

Link to tracking issue

Updates #12221

@mx-psi mx-psi force-pushed the mx-psi/withtype-test-helpers branch from 36b6bb5 to 8d363d0 Compare February 11, 2025 17:37
@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 11, 2025
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 84.84848% with 5 lines in your changes missing coverage. Please review.

Project coverage is 91.51%. Comparing base (77f8246) to head (5fc48b6).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
connector/connectortest/connector.go 75.00% 1 Missing ⚠️
exporter/exportertest/nop_exporter.go 75.00% 1 Missing ⚠️
processor/processortest/nop_processor.go 75.00% 1 Missing ⚠️
...r/internal/metadatatest/generated_telemetrytest.go 0.00% 1 Missing ⚠️
receiver/receivertest/nop_receiver.go 75.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (84.84%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12357      +/-   ##
==========================================
- Coverage   91.55%   91.51%   -0.04%     
==========================================
  Files         467      467              
  Lines       25615    25623       +8     
==========================================
- Hits        23452    23450       -2     
- Misses       1764     1774      +10     
  Partials      399      399              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mx-psi mx-psi force-pushed the mx-psi/withtype-test-helpers branch 3 times, most recently from b5b75dc to 0daabd9 Compare February 13, 2025 08:50
@mx-psi mx-psi added this pull request to the merge queue Feb 13, 2025
Merged via the queue into open-telemetry:main with commit a4ae175 Feb 13, 2025
54 of 55 checks passed
@mx-psi mx-psi deleted the mx-psi/withtype-test-helpers branch February 13, 2025 17:16
mx-psi added a commit to mx-psi/opentelemetry-collector that referenced this pull request Feb 14, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Creates `NewNopSettingsWithType` function on test modules and deprecates
the `NewNopSettings` functions on those modules. Replace all usages of
`NewNopSettings` with `NewNopSettingsWithType`.

Part of open-telemetry#12305 but applied to all component kinds.

#### Link to tracking issue
Updates open-telemetry#12221
github-merge-queue bot pushed a commit that referenced this pull request Feb 27, 2025
…12381)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Error out on mismatched type for all component kinds. Same as #12305 but
for all component kinds.

#### Link to tracking issue

Requires #12357
Fixes #12221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants