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 error out if list or run find no matching environments to run #223

Closed

Conversation

romainkomorn-exdatadog
Copy link

@romainkomorn-exdatadog romainkomorn-exdatadog commented Oct 3, 2023

This updates the CLI to exit with error code 1 for the list and run commands if there ends up being no matches.

The intention here is to prevent scenarios where list or run end up matching nothing, giving the caller (or in the case motivating this PR: CI runs) the false impression that tests succeeded when, in fact, it is more likely that the pattern passed to riot wasn't properly formed and no tests were run at all.

@romainkomorn-exdatadog romainkomorn-exdatadog self-assigned this Oct 3, 2023
@romainkomorn-exdatadog romainkomorn-exdatadog requested a review from a team as a code owner October 3, 2023 09:10
@romainkomorn-exdatadog romainkomorn-exdatadog requested review from majorgreys and Kyle-Verhoog and removed request for a team October 3, 2023 09:10
P403n1x87
P403n1x87 previously approved these changes Oct 3, 2023
@romainkomorn-exdatadog romainkomorn-exdatadog changed the title Romain.komorn/fix no matches error code fix no matches error code Oct 3, 2023
@romainkomorn-exdatadog romainkomorn-exdatadog changed the title fix no matches error code fix error out if list or run find no matching environments to run Oct 3, 2023
@romainkomorn-exdatadog romainkomorn-exdatadog changed the base branch from fix/no-matches-error-code to master October 3, 2023 09:48
@romainkomorn-exdatadog romainkomorn-exdatadog dismissed P403n1x87’s stale review October 3, 2023 09:48

The base branch was changed.

@romainkomorn-exdatadog
Copy link
Author

I'm going to close this in favor of "we're moving to hatch" context.

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