launchableinc / cli

Launchable CLI
https://pypi.org/project/launchable/
Apache License 2.0
24 stars 13 forks source link

Traceback when running `launchable record tests maven --help` #554

Open basil opened 1 year ago

basil commented 1 year ago

Steps to reproduce

Run launchable record tests maven --help.

Expected results

Detailed usage information, no traceback, and an exit status of 0.

Actual results

No detailed usage information, a traceback, and an exit status of 0 (!) despite the traceback.

$ launchable record tests maven --help
Traceback (most recent call last):
  File "lib/python3.10/site-packages/launchable/commands/record/tests.py", line 200, in tests
    session_id = str(find_or_create_session(
  File "lib/python3.10/site-packages/launchable/commands/helper.py", line 54, in find_or_create_session
    raise click.UsageError(
click.exceptions.UsageError: No saved build name found.
To fix this, run `launchable record build`.
If you already ran this command on a different machine, use the --session option. See https://docs.launchableinc.com/sending-data-to-launchable/managing-complex-test-session-layouts
Usage: launchable record tests maven [OPTIONS] SOURCE_ROOTS...

Options:
  --help  Show this message and exit.
$ echo $?
0
Konboi commented 1 year ago

Thank you for your report, we'll check it