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

Bundle analysis: Fetch trend measurements #612

Merged
merged 6 commits into from
Jun 12, 2024
Merged

Bundle analysis: Fetch trend measurements #612

merged 6 commits into from
Jun 12, 2024

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Jun 11, 2024

Purpose/Motivation

Allow fetching of trends from timeseries for bundle analysis measurements.

closes codecov/engineering-team#1772
closes codecov/engineering-team#1773
closes codecov/engineering-team#1774

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-notifications
Copy link

codecov-notifications bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.51%. Comparing base (c5b388b) to head (786dbea).

✅ All tests successful. No failed tests found.

@@            Coverage Diff             @@
##             main     #612      +/-   ##
==========================================
+ Coverage   91.46%   91.51%   +0.04%     
==========================================
  Files         615      615              
  Lines       16389    16481      +92     
==========================================
+ Hits        14991    15083      +92     
  Misses       1398     1398              
Flag Coverage Δ
unit 91.51% <100.00%> (+0.04%) ⬆️
unit-latest-uploader 91.51% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
graphql_api/types/bundle_analysis/base.py 100.00% <100.00%> (ø)
graphql_api/types/commit/commit.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 100.00% <100.00%> (ø)

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Copy link

codecov-public-qa bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.51%. Comparing base (c5b388b) to head (786dbea).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #612      +/-   ##
==========================================
+ Coverage   91.46%   91.51%   +0.04%     
==========================================
  Files         615      615              
  Lines       16389    16481      +92     
==========================================
+ Hits        14991    15083      +92     
  Misses       1398     1398              
Flag Coverage Δ
unit 91.51% <100.00%> (+0.04%) ⬆️
unit-latest-uploader 91.51% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
graphql_api/types/bundle_analysis/base.py 100.00% <100.00%> (ø)
graphql_api/types/commit/commit.py 100.00% <100.00%> (ø)
services/bundle_analysis.py 100.00% <100.00%> (ø)

Impacted file tree graph

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.93%. Comparing base (c5b388b) to head (786dbea).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff                @@
##               main       #612        +/-   ##
================================================
+ Coverage   95.91000   95.93000   +0.02000     
================================================
  Files           793        793                
  Lines         17706      17798        +92     
================================================
+ Hits          16983      17075        +92     
  Misses          723        723                
Flag Coverage Δ
unit 91.51% <100.00%> (+0.04%) ⬆️
unit-latest-uploader 91.51% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JerrySentry JerrySentry marked this pull request as ready for review June 11, 2024 03:12
@JerrySentry JerrySentry requested a review from a team as a code owner June 11, 2024 03:12

@cached_property
def asset_type(self) -> str:
return self.measurement_type.name
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there value in these properties being in Shared over api? Are these used in worker/the PR comment?

Copy link
Contributor Author

@JerrySentry JerrySentry Jun 12, 2024

Choose a reason for hiding this comment

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

Shouldn't be needed for worker, unless we want to show trend lines in PR comments some day 😮

Copy link
Contributor

@adrian-codecov adrian-codecov left a comment

Choose a reason for hiding this comment

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

generally lgtm

@JerrySentry JerrySentry added this pull request to the merge queue Jun 12, 2024
Merged via the queue into main with commit 87d198a Jun 12, 2024
21 of 22 checks passed
@JerrySentry JerrySentry deleted the jun_10_ba branch June 12, 2024 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants