Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Conversation

@joseph-sentry
Copy link
Contributor

I made a change previously that made it so the testsuite column in the dataframe returned by get_results became a list[str] instead of str but I didn't update get testsuites to reflect that. This fixes that.

also adds a test for the new V1 format that also verifies it populates the testsuites correctly and fixes a bug with that format renaming a column

@joseph-sentry joseph-sentry requested a review from a team as a code owner April 23, 2025 18:21
@sentry
Copy link

sentry bot commented Apr 23, 2025

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: graphql_api/types/test_analytics/test_analytics.py

Function Unhandled Issue
get_test_suites GraphQLError: expected String type, got: list[str] /graphql/{servic...
Event Count: 8

Did you find this useful? React with a 👍 or 👎

@seer-by-sentry
Copy link
Contributor

✅ Sentry found no issues in your recent changes ✅

@codecov
Copy link

codecov bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.43%. Comparing base (7090578) to head (0194300).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1296      +/-   ##
==========================================
+ Coverage   96.29%   96.43%   +0.13%     
==========================================
  Files         488      488              
  Lines       16976    16995      +19     
==========================================
+ Hits        16347    16389      +42     
+ Misses        629      606      -23     
Flag Coverage Δ
unit 96.43% <100.00%> (+0.13%) ⬆️

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.

@codecov-notifications
Copy link

codecov-notifications bot commented Apr 23, 2025

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!

I made a change previously that made it so the testsuite column in
the dataframe returned by get_results became a list[str] instead of
str but I didn't update get testsuites to reflect that. This fixes
that.

also adds a test for the new V1 format that also verifies it populates
the testsuites correctly and fixes a bug with that format renaming a
column
it's possible for the avg_duration to be NaN (which is fine) but I
wasn't taking this into account in the aggregate calculation which
meant that the NaN's were propagating to the total duration and
slowest tests duration so we need to replace them with 0 because
that's effectively what they are
@joseph-sentry joseph-sentry added this pull request to the merge queue Apr 24, 2025
Merged via the queue into main with commit f02e4cd Apr 24, 2025
26 of 27 checks passed
@joseph-sentry joseph-sentry deleted the joseph/testsuite branch April 24, 2025 14:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants