Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion src/specify_cli/workflows/command_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ def workflow_status(
f"{cli._escape_markup(scope['workflow_id'])}: {scope['status']}"
)
else:
runs = engine.list_runs()
err = cli._error_console(json_output)
try:
runs = engine.list_runs()
except (OSError, ValueError) as exc:
err.print(f"[red]Error:[/red] {cli._escape_markup(str(exc))}")
Comment on lines +103 to +107

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Added workflow status --json regressions for symlinked run directories and state.json, asserting clean failure and stderr-only output. Fixed in 79f1da7.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The workflow status --json listing regressions for symlinked run directories and state.json are present and pass on the current branch (02159bf0).

raise cli.typer.Exit(1)

if json_output:
payload = {
Expand Down
Loading
Loading