You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a non-existent stack is launched, Sceptre tries to be helpful in its error message by outputting a list of valid stack paths. In a large workspace (we have nearly 5000 stacks), this is not useful.
Your environment
version of sceptre 3.2.0
version of python 3.8.8
which OS/distro: Windows 10
Steps to reproduce
Run a sceptre command (launch, generate etc) on a stack name that doesn't exist. i.e. sceptre launch dev/foo2.yaml
Expected behaviour
Annotate the error message with the valid stack paths only when there are a limited number of stacks in the workspace (<10?)
Actual behaviour
The following error is produced, listing all stack paths in the workspace.
"No stacks detected from the given path dev/foo2.yaml. Valid stack paths are: ['dev/foo.yaml', 'dev/bar.yaml']"
Solution
I am happy to raise a PR to improve this error handling.
The text was updated successfully, but these errors were encountered:
That's a great call-out. I think a maximum number is probably appropriate, since I know there are some folks running 500, 1000 stack setups.
With that said, I think added functionality ought to be that if you've specified "dev/foo2.yaml", if "dev/" actually does exist, perhaps we would only show the valid stacks that start with "dev/" and only limit those if they're > than the max.
Subject of the issue
If a non-existent stack is launched, Sceptre tries to be helpful in its error message by outputting a list of valid stack paths. In a large workspace (we have nearly 5000 stacks), this is not useful.
Your environment
3.2.0
3.8.8
Windows 10
Steps to reproduce
Run a sceptre command (launch, generate etc) on a stack name that doesn't exist. i.e.
sceptre launch dev/foo2.yaml
Expected behaviour
Annotate the error message with the valid stack paths only when there are a limited number of stacks in the workspace (<10?)
Actual behaviour
The following error is produced, listing all stack paths in the workspace.
Solution
I am happy to raise a PR to improve this error handling.
The text was updated successfully, but these errors were encountered: