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

TestBase and SpanTestBase are redundant #2757

Merged
merged 12 commits into from
Jun 16, 2022

Conversation

srikanthccv
Copy link
Member

Description

This removes the redundant setup code in SpanTestBase and moves the metrics setup to instance methods.

Fixes #1993

Type of change

Please delete options that are not relevant.

  • misc

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox

Does This PR Require a Contrib Repo Change?

  • No.

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added

@srikanthccv srikanthccv added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 12, 2022
@srikanthccv srikanthccv marked this pull request as ready for review June 12, 2022 17:16
@srikanthccv srikanthccv requested a review from a team June 12, 2022 17:16
Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

Left some comments but LGTM

@ocelotl
Copy link
Contributor

ocelotl commented Jun 14, 2022

Ready to merge, @srikanthccv please mark conversations as resolved if possible ✌️

@srikanthccv
Copy link
Member Author

I believe there is cache issue because contrib tests fail with the latest move to setUp.

@ocelotl
Copy link
Contributor

ocelotl commented Jun 14, 2022

I believe there is cache issue because contrib tests fail with the latest move to setUp.

I see all tests passing 🤷

@srikanthccv
Copy link
Member Author

they are failing here https://github.com/open-telemetry/opentelemetry-python-contrib/runs/6872695613?check_suite_focus=true. @lzchen do you mind if I create another issue to address moving the tracing code to setUp because fixing all those tests takes non trivial amount of time?

@lzchen
Copy link
Contributor

lzchen commented Jun 15, 2022

@srikanthccv
sgtm

@srikanthccv srikanthccv merged commit 537e235 into open-telemetry:main Jun 16, 2022
@srikanthccv srikanthccv deleted the issue-1993 branch June 16, 2022 17:06
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.

test_base.TestBase and spantestutil.SpanTestBase are redundant
4 participants