Skip to content

Update snapshot tests and pin upstream versions #254

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

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

aabmass
Copy link
Collaborator

@aabmass aabmass commented Jun 12, 2023

Pinning the version should prevent the user agent strings from breaking every tiem a new release is made. The pinned version should be regularly bumped (dependabot or renovate would work nice here).

@aabmass aabmass requested a review from a team as a code owner June 12, 2023 21:59
@aabmass aabmass enabled auto-merge (squash) June 12, 2023 22:00
@aabmass aabmass merged commit 061d0e3 into GoogleCloudPlatform:main Jun 13, 2023
@aabmass aabmass deleted the fix-build branch June 13, 2023 18:05
DouglasHeriot added a commit to DouglasHeriot/opentelemetry-operations-python that referenced this pull request Aug 3, 2023
Fix in GoogleCloudPlatform#254 didn't apply to tox environments that run `pip install .`

`test_detects_gce` was failing with opentelemetry-sdk version 1.19.0
instead of 1.18.0
DouglasHeriot added a commit to DouglasHeriot/opentelemetry-operations-python that referenced this pull request Aug 3, 2023
Fix in GoogleCloudPlatform#254 didn't apply to tox environments that run `pip install .`

`test_detects_gce` was failing with opentelemetry-sdk version 1.19.0
instead of 1.18.0
aabmass added a commit that referenced this pull request Aug 3, 2023
Fix in #254 didn't apply to tox environments that run `pip install .`

`test_detects_gce` was failing with opentelemetry-sdk version 1.19.0
instead of 1.18.0

Co-authored-by: Aaron Abbott <[email protected]>
aabmass added a commit that referenced this pull request Aug 3, 2023
* Pin upstream version of opentelemetry when running tests

Fix in #254 didn't apply to tox environments that run `pip install .`

`test_detects_gce` was failing with opentelemetry-sdk version 1.19.0
instead of 1.18.0

* Don't use `pkg_resources.get_distribution(..).version`

Similar to discussion at googleapis/python-api-core#27 I am using opentelemetry in an environment where modules are vendored without pip. So, pkg_resources can not be used to search for a module at runtime to get its version.

---------

Co-authored-by: Aaron Abbott <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants