-
Notifications
You must be signed in to change notification settings - Fork 598
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
Performance problems with AWS::StepFunctions::StateMachine #3895
Comments
@b01f6b82b8a347f6045406b8f31f239d Can you see if the solution in #3717 helps your use case? Lots of |
Unfortunately I didn't see any improvement. I try to supply a "non working" example as soon as possible.. |
Thanks. If needed we may have some options to exchange that template privately if that would help. |
I think I have a non working template. If you don't mind I would still prefer to send it to you privately ^^ |
You can email to |
cfn-lint Version
cfn-lint 1.18.4
Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
Hi,
first of all sorry if this is the wrong issue type but I´m not quite sure about the problem at the moment.
We use cfn-lint in our CI/CD Pipeline to test CloudFormation templates. After an upgrade from version 0.8.x to 1.18.4 our lint job broke because cfn-lint took longer than 1 hour to lint the templates. The problematic templates only contain AWS::StepFunctions::StateMachine resources. It seems like cfn-lint takes extremely long to parse the DefinitionString's if they contain many intrinsic functions like "Ref", "FindInMap", "If". It takes so long, that I don't even know if it would actually finish execution. I let it ran locally for over an hour and it wouldn't proceed past the E1001 rule:
Because I couldn't understand what the problem is I cloned the cfn-lint repo and started to debug it.
So far I can only tell that at some point, this for loop: https://github.com/aws-cloudformation/cfn-lint/blob/main/src/cfnlint/rules/jsonschema/CfnLint.py#L33 won't proceed because cfn-lint tries to constantly resolve values: https://github.com/aws-cloudformation/cfn-lint/blob/main/src/cfnlint/jsonschema/validators.py#L172 and this goes on forever.
Unfortunately I´m not able to provide a CloudFormation template at the moment because it`s too big (1.4k loc) and contains too many sensitive data. I try to recreate a "not working" minimal example in the next few days but does someone has some guesses in the meantime what the problem could be?
Thank you!
The text was updated successfully, but these errors were encountered: