Skip to content

Conversation

@sleaux
Copy link
Collaborator

@sleaux sleaux commented Jan 22, 2025

The tests returned by resmoke's test discovery for a task may be empty. The codepath for splitting the task when stats from evergreen are successfully collected handles this, but the fallback method here naively did not. An empty list of sub-suites should be returned to match behavior.

@sleaux sleaux requested a review from a team January 22, 2025 15:22
@sleaux sleaux marked this pull request as ready for review January 22, 2025 15:22
Comment on lines 517 to 519
if n_suites == 0 {
return Ok(sub_suites);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: can this early-return occur before getting origin_suite? Always like to push the bailouts up as high as possible

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not quite before origin_suite, but I have now moved it up as far as it can be.

@sleaux sleaux added this pull request to the merge queue Jan 22, 2025
Merged via the queue into master with commit 71c0f50 Jan 22, 2025
2 checks passed
@sleaux sleaux deleted the sleaux/DEVPROD-14354 branch January 22, 2025 15:59
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.

4 participants