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

Combine UTs for the collector builder #6984

Merged
merged 2 commits into from
Jan 20, 2023

Conversation

rapphil
Copy link
Contributor

@rapphil rapphil commented Jan 20, 2023

Description: Combine UTs of the builder so that they work properly. TestGenerateAndCompileWithDebugCompilation was not replacing all modules and therefore the tests were failing in case there were changes in some components in the local file system. This change will solve this failure in #6683: https://github.com/open-telemetry/opentelemetry-collector/actions/runs/3952660827/jobs/6768024904#step:6:25

Combine builder UTs so that we avoid code duplication when changing/modifying components or adding new compilation scenarios.

Omitting new entry in the change log since this is only improving the UTs.

Signed-off-by: Raphael Silva <rapphil@gmail.com>
@rapphil rapphil requested review from a team and djaglowski January 20, 2023 00:29
@codecov
Copy link

codecov bot commented Jan 20, 2023

Codecov Report

Base: 90.65% // Head: 90.65% // No change to project coverage 👍

Coverage data is based on head (83c3b04) compared to base (43e7b14).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6984   +/-   ##
=======================================
  Coverage   90.65%   90.65%           
=======================================
  Files         241      241           
  Lines       14518    14518           
=======================================
  Hits        13161    13161           
  Misses       1089     1089           
  Partials      268      268           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bogdandrutu bogdandrutu added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 20, 2023
@bogdandrutu bogdandrutu merged commit aa3619c into open-telemetry:main Jan 20, 2023
codeboten pushed a commit to codeboten/opentelemetry-collector that referenced this pull request Jan 23, 2023
Signed-off-by: Raphael Silva <rapphil@gmail.com>

Signed-off-by: Raphael Silva <rapphil@gmail.com>
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.

3 participants