-
Notifications
You must be signed in to change notification settings - Fork 119
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: JUnitReport.xml only contained 50 test results #1649
fix: JUnitReport.xml only contained 50 test results #1649
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
70e871e
to
f69ba8f
Compare
I have read the CLA Document and I hereby sign the CLA |
val testCases = response.testCases.toMutableList() | ||
while (response.nextPageToken != null) { | ||
response = listTestCases(results, response.nextPageToken) | ||
testCases += response.testCases ?: emptyList() |
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.
Should we break the loop if an empty list found?
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.
I am not sure, this code is just copy/paste from a similar code in this file (see listAllEnvironments
, listAllSteps
)
@@ -123,7 +124,10 @@ object GcToolResults { | |||
.executeWithRetry() | |||
|
|||
// Lists Test Cases attached to a Step | |||
fun listTestCases(toolResultsStep: ToolResultsStep): ListTestCasesResponse { | |||
fun listTestCases( |
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.
Looks like we should update unit tests as well.
8ec4c44
to
4e893f9
Compare
Does it solve the sharding problem as well? |
Nope, just |
@Mergifyio rebase |
Command
|
Fixes #1649 PR adds NPE handling when fetching results ## Test Plan > How do we know the code works? 1. build workflows finish with success 2. IT pass
Fixes #1634
Test Plan
Existing tests should not be broken
Checklist