-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: add filtering for flags and testsuites #834
Conversation
1d38079
to
9082c8f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. 📢 Thoughts on this report? Let us know! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #834 +/- ##
=======================================
Coverage 96.30% 96.31%
=======================================
Files 818 818
Lines 18960 18971 +11
=======================================
+ Hits 18260 18271 +11
Misses 700 700
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❌ 6 Tests Failed:
View the top 3 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time. ❌ Failed Test Results:Completed 2386 tests with View the full list of failed testspytest
|
9082c8f
to
4d9ff63
Compare
we want to be able to filter test results by a list of flags and by a list of testsuite names so this adds that functionality. this is done by adding testsuites and flags fields to the TestResultsFilteringParameter GQL model to filter by flags this uses the TestFlagBridge database model
4d9ff63
to
c925351
Compare
@@ -1,6 +1,8 @@ | |||
input TestResultsFilters { | |||
branch: String | |||
parameter: TestResultsFilterParameter | |||
testsuites: [String!] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: test_suites?
@@ -554,6 +554,8 @@ async def resolve_test_results( | |||
repoid=repository.repoid, | |||
branch=filters.get("branch") if filters else None, | |||
parameter=generate_test_results_param, | |||
testsuites=filters.get("testsuites") if filters else None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_suites
Frontend will likely name the variable testSuites which will get converted to test_suites due to
codecov-api/graphql_api/schema.py
Line 7 in 9aa6458
schema = make_executable_schema(types, *bindables, convert_names_case=True) |
@@ -63,6 +64,8 @@ def generate_test_results( | |||
branch: str | None = None, | |||
history: dt.timedelta = dt.timedelta(days=30), | |||
parameter: GENERATE_TEST_RESULT_PARAM | None = None, | |||
testsuites: list[str] | None = None, | |||
flags: list[str] | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remember to update the function description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
solid
we want to be able to filter test results by a list of flags and by a
list of testsuite names so this adds that functionality.
this is done by adding testsuites and flags fields to the
TestResultsFilteringParameter GQL model
to filter by flags this uses the TestFlagBridge database model