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

Round 2: Adapt to randomly generated nop component names in unit tests #31659

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Mar 8, 2024

Description:

Follow-up to #31640

I didn't realize the contrib test stopped after the first failure, so there were a few more failures for open-telemetry/opentelemetry-collector#9637.

I verified that this passes the contrib-tests check for the core repo locally, so this should be the rest of them.

For the splunkhec exporter, the exporter actually uses ID.String():

The filelog receiver was assuming that NewNopCreateSettings returned the same ID, so I re-used the create settings in the test.

Link to tracking Issue:

Blocking open-telemetry/opentelemetry-collector#9637

@dmitryax @Aneurysm9 @codeboten

@dmitryax dmitryax closed this Mar 8, 2024
@dmitryax dmitryax reopened this Mar 8, 2024
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.91%. Comparing base (4c5b5e9) to head (d16b67f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #31659   +/-   ##
=======================================
  Coverage   81.90%   81.91%           
=======================================
  Files        1853     1853           
  Lines      172028   172028           
=======================================
+ Hits       140901   140913   +12     
+ Misses      26847    26838    -9     
+ Partials     4280     4277    -3     

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

@codeboten codeboten merged commit 9c44670 into open-telemetry:main Mar 11, 2024
291 of 292 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 11, 2024
DougManton pushed a commit to DougManton/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
open-telemetry#31659)

Follow-up to
open-telemetry#31640

I didn't realize the contrib test stopped after the first failure, so
there were a few more failures for
open-telemetry/opentelemetry-collector#9637.

I verified that this passes the contrib-tests check for the core repo
locally, so this should be the rest of them.

For the splunkhec exporter, the exporter actually uses `ID.String()`:
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/4c5b5e934484ae3084565abbd3746a98e7f27721/exporter/splunkhecexporter/client.go#L71

The filelog receiver was assuming that `NewNopCreateSettings` returned
the same ID, so I re-used the create settings in the test.

**Link to tracking Issue:**

Blocking
open-telemetry/opentelemetry-collector#9637

@dmitryax @Aneurysm9 @codeboten
XinRanZhAWS pushed a commit to XinRanZhAWS/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
open-telemetry#31659)

Follow-up to
open-telemetry#31640

I didn't realize the contrib test stopped after the first failure, so
there were a few more failures for
open-telemetry/opentelemetry-collector#9637.

I verified that this passes the contrib-tests check for the core repo
locally, so this should be the rest of them.

For the splunkhec exporter, the exporter actually uses `ID.String()`:
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/4c5b5e934484ae3084565abbd3746a98e7f27721/exporter/splunkhecexporter/client.go#L71

The filelog receiver was assuming that `NewNopCreateSettings` returned
the same ID, so I re-used the create settings in the test.

**Link to tracking Issue:**

Blocking
open-telemetry/opentelemetry-collector#9637

@dmitryax @Aneurysm9 @codeboten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/splunkhec receiver/filelog Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants