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

fix: parameter filtering takes branch into account #913

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

joseph-sentry
Copy link
Contributor

No description provided.

@joseph-sentry joseph-sentry requested a review from a team as a code owner October 22, 2024 17:45
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.32%. Comparing base (f8ac094) to head (286598a).
Report is 9 commits behind head on main.

Changes have been made to critical files, which contain lines commonly executed in production. Learn more

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
utils/test_results.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #913      +/-   ##
==========================================
+ Coverage   96.25%   96.32%   +0.06%     
==========================================
  Files         823      823              
  Lines       18999    19644     +645     
==========================================
+ Hits        18288    18922     +634     
- Misses        711      722      +11     
Flag Coverage Δ
unit 92.49% <88.88%> (-0.04%) ⬇️
unit-latest-uploader 92.49% <88.88%> (-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.

@codecov-notifications
Copy link

codecov-notifications bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
utils/test_results.py 88.88% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@@ -298,6 +299,17 @@ def compare(row: TestResultsRow) -> int:
return rows[left:]


def get_relevant_totals(
Copy link
Contributor

Choose a reason for hiding this comment

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

love this refactor!


flaky_test_ids = set([flake.test_id for flake in flakes])
flaky_test_ids = (
Copy link
Contributor

Choose a reason for hiding this comment

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

being able to have a generalized pattern for all these makes it so much easier to read

Q(repository_id=repoid)
& (Q(end_date__date__isnull=True) | Q(end_date__date__gt=since))
)
totals = get_relevant_totals(repoid, branch, since)
Copy link
Contributor

Choose a reason for hiding this comment

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

Reading it this way now, we could also bump totals up to line 372 and use it for each case now right?

Vs. having it be the "starting line" in each of our case statements below

Copy link
Contributor

@ajay-sentry ajay-sentry left a comment

Choose a reason for hiding this comment

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

couple comments, nothing blocking

@joseph-sentry joseph-sentry added this pull request to the merge queue Oct 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 24, 2024
@ajay-sentry ajay-sentry added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit 1279697 Oct 24, 2024
15 of 19 checks passed
@ajay-sentry ajay-sentry deleted the joseph/fix-parameter-filtering branch October 24, 2024 23:57
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