Skip to content

Conversation

@owais
Copy link
Contributor

@owais owais commented Aug 30, 2021

Description

  • Update base test class to have more consistent assertion methods with rest of Python ecosystem.

  • Fix breaking botocore instrumentation tests

  • Dev/Tooling enchancement

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

  • This change requires a documentation update

How Has This Been Tested?

  • Existing Tests

Does This PR Require a Core Repo Change?

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@owais owais requested review from a team, aabmass and ocelotl and removed request for a team August 30, 2021 17:42
@owais owais added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 30, 2021
@owais owais mentioned this pull request Aug 30, 2021
12 tasks
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Nice, thanks for breaking this up! Looks like lint needs fixing, otherwise it looks good

@owais owais force-pushed the upgrade-assertion-methods branch 5 times, most recently from eb87e75 to 74605ff Compare August 30, 2021 18:25
assert spans
span = spans[2]
self.assertEqual(
span.attributes,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these are failing now as the underlying library is generating a unique ID per request which is recorded as an attribute so we can no longer use assertEqual.

@owais owais requested a review from codeboten August 30, 2021 18:35
@owais owais force-pushed the upgrade-assertion-methods branch from 74605ff to 637ef45 Compare August 30, 2021 18:38
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

👍 just a comment on the name of the method, which I should mentioned in the PR to rename the method


# Check version and name in span's instrumentation info
self.check_span_instrumentation_info(
self.assertSpanInstrumentationInfo(
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I would rename this asserSpanHasInstrumentationInfo to make it more consistent

@owais owais force-pushed the upgrade-assertion-methods branch from 637ef45 to 1a665d6 Compare August 30, 2021 19:00
@owais owais requested a review from codeboten August 30, 2021 19:16
Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

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

Requesting changes because of this.

@owais owais force-pushed the upgrade-assertion-methods branch from 1a665d6 to 2a92e25 Compare August 30, 2021 20:15
@ocelotl ocelotl merged commit ffc2a2f into open-telemetry:main Aug 30, 2021
@owais owais deleted the upgrade-assertion-methods branch August 30, 2021 20:47
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.

4 participants