Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions launchable/commands/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,6 @@ def subset(
app = context.obj
tracking_client = TrackingClient(Tracking.Command.SUBSET, app=app)

if is_observation and is_get_tests_from_previous_sessions:
Copy link
Contributor

Choose a reason for hiding this comment

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

I gave it some thought, we should change this validation
from if is_observation and is_get_tests_from_previous_sessions: to if is_observation and is_output_exclusion_rules: to prevent miss integration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We've already checked those condition at https://github.com/launchableinc/cli/blob/main/launchable/commands/subset.py#L235, don't we?

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't know that. Thanks

msg = "Cannot use --observation and --get-tests-from-previous-sessions options at the same time"
click.echo(
click.style(
msg,
fg="red"),
err=True,
)
tracking_client.send_error_event(
event_name=Tracking.ErrorEvent.INTERNAL_CLI_ERROR,
stack_trace=msg,
)
sys.exit(1)

if is_observation and is_output_exclusion_rules:
msg = (
"WARNING: --observation and --output-exclusion-rules are set. "
Expand Down
Loading