Skip to content

Fix misleading error for empty adaptive subsets#1292

Open
ono-max wants to merge 1 commit intov1from
fix-err-msg
Open

Fix misleading error for empty adaptive subsets#1292
ono-max wants to merge 1 commit intov1from
fix-err-msg

Conversation

@ono-max
Copy link
Copy Markdown
Contributor

@ono-max ono-max commented Apr 22, 2026

Adaptive Dynamic Subset can return an empty subset when the model decides no tests in that suite are relevant to the code change.

Until now, the CLI treated any empty subset as:

Error: no tests found matching the path.

That's confusing for users even though that empty subset is valid. I got this feedback from users, so I'd like to fix this problem.

Comment on lines +629 to +633
if len(subset_result.rest) == 0:
warn_and_exit_if_fail_fast_mode("Error: no tests found matching the path.")
return
else:
click.echo(click.style("No tests were selected for this code change.", fg="yellow"), err=True)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Konboi

What do you think about this change?

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.

1 participant