Skip to content

TestBase and SpanTestBase are redundant#2757

Merged
srikanthccv merged 12 commits intoopen-telemetry:mainfrom
srikanthccv:issue-1993
Jun 16, 2022
Merged

TestBase and SpanTestBase are redundant#2757
srikanthccv merged 12 commits intoopen-telemetry:mainfrom
srikanthccv:issue-1993

Conversation

@srikanthccv
Copy link
Copy Markdown
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
Comment thread tests/opentelemetry-test-utils/src/opentelemetry/test/test_base.py
Comment thread tests/opentelemetry-test-utils/src/opentelemetry/test/test_base.py
Copy link
Copy Markdown
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

Comment thread tests/opentelemetry-test-utils/src/opentelemetry/test/test_base.py Outdated
Comment thread tests/opentelemetry-test-utils/src/opentelemetry/test/spantestutil.py Outdated
Comment thread tests/opentelemetry-test-utils/src/opentelemetry/test/test_base.py
@ocelotl
Copy link
Copy Markdown
Contributor

ocelotl commented Jun 14, 2022

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

@srikanthccv
Copy link
Copy Markdown
Member Author

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

@ocelotl
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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