-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Deploy command freezes when tag containing space is provided in samconfig file #6657
Comments
Hey @jbutz thanks for reporting the issue. I tried the steps you provided. I found out that the process did not hang, but just took a significant amount of time:
From my example, it took slight more than a minute for the last line to show up. f I reduced the number of tags, the wait time significantly improved. It seems like a performance issue. I have yet to locate where and what cause this perform. I'll mark this a bug and continue to look into it. Meanwhile, can you also check if the command gets faster after removing any one tag? |
The performance issue came from regex parsing on this line, whereas the pattern used is When the space in the tag value is removed, it avoided the regex parsing and thus was much faster. |
Patch is released in v1.117.0. Closing |
Description:
There appears to be a situation where deployment either freezes and does not proceed, or takes an exceptionally long time to proceed, based on the tag values provided. For me it appears to be based on the presence of a space in a tag value being passed through the
samconfig.toml
file. The same issue appeared to occur when I tried to use a YAML samconfig file as well.Steps to reproduce:
[default.deploy.parameters]
in the samconfig.toml fileDigital Core
Observed result:
The deploy command appears to freeze here. Removing the space, I receive:
and the deploy command continues from there
Expected result:
I expect the deploy command to be able to function with tags that contain spaced being provided through the samconfig file.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
I have experienced this both on my local Mac and on a GitHub Codespace.
Local Machine
GitHub Codespace
The text was updated successfully, but these errors were encountered: