Skip to content

Add python version to runtime info #50

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 2 commits into from
Nov 7, 2022
Merged

Add python version to runtime info #50

merged 2 commits into from
Nov 7, 2022

Conversation

mike0sv
Copy link
Contributor

@mike0sv mike0sv commented Nov 3, 2022

closes #47

@mike0sv mike0sv requested review from efiop and casperdcl November 3, 2022 14:39
@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2022

Codecov Report

Base: 64.13% // Head: 63.69% // Decreases project coverage by -0.43% ⚠️

Coverage data is based on head (417b8f1) compared to base (c5ac5ee).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
- Coverage   64.13%   63.69%   -0.44%     
==========================================
  Files           2        2              
  Lines         145      146       +1     
  Branches       19       18       -1     
==========================================
  Hits           93       93              
- Misses         52       53       +1     
Impacted Files Coverage Δ
src/iterative_telemetry/__init__.py 54.31% <0.00%> (-0.48%) ⬇️

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.

Comment on lines 152 to 153
"python_version": f"{major}.{minor}.{patch}",
"python_version_minor": f"{major}.{minor}",
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the point of having both? The naming is confusing too.

Copy link
Contributor

Choose a reason for hiding this comment

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

We might want to know what python implementation this is in the future, maybe worth making it a dict with misc python info right away?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess minor version is what we want to plot mainly, but patch also may be valuable.
No reason to do dict since it'll be flattened in BQ

Copy link
Contributor

@efiop efiop Nov 3, 2022

Choose a reason for hiding this comment

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

@mike0sv BQ?

Isn't there a way to parse the version properly from major.minor.patch? Or maybe store major/minor/patch separately. Having the same thing twice looks really odd. python_version_minor sounds like just minor to me, not major.minor. This is just really odd looking. Or maybe I'm not used to this and this is a standard practice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BQ = big query

Doesnt make sense to store major separately - at least until python 4 is released :)
We can store major+minor and patch separately - joining is easier than splitting

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for the delay.

Storing major.minor and patch separately seems equally ugly. Looking at, for example, homebrew analytics, seems like they store their versions normally without duplicated odd version slices.

Googling around, seems like grouping by split string in bq is easily doable, but maybe I'm missing some complications?

@mike0sv mike0sv force-pushed the fearure/python-version branch from 0670017 to 00316d5 Compare November 7, 2022 12:40
@efiop efiop merged commit 42d5525 into main Nov 7, 2022
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.

Add Python version
3 participants