Open ryanbratten opened 2 years ago
Hi Ryan,
Sorry for your experience. What was the feature file you were using ? Is it possible to share that as well ?
Yep of course
Feature: Subnets
Scenario: Ensure a multi-layered network architecture
Given I have aws_subnet defined
When I count them
Then I expect the result is more than 2
Yep, I can confirm it consumes around 7.96G of memory without faster_parsing
flag.
I must say I am super surprised to this :D Looking into.
Expectedly same happens without faster_parsing
just slower.
Hey @eerkunt, Do you know when there might be a fix for this issue? I have now completed a big refactoring to spit out our terraform scripts into smaller chunks however we are still experiencing high memory usage in a couple areas
Hi @ryanbratten, we had the same issue. Using only one feature file with all scenarios solved our memory problem.
I am sorry you are experiencing this problem guys. Life is being crazy for the last couple of months for me, unfortunately. I hope I will create some time and look into this issue asap.
Description
It looks like terraform-compliance[faster-parsing] uses up a large amount of memory to handle a codebase using lots of terraform modules. I’ve slimmed it down to one simple rule and it's unable to parse the plan file and run the test after 53 mins of trying.
terraform-compliance exits with the following error:
To Reproduce
Large plan file using multiple modules (attached) Running on GitHub free hosted agents, currently 7GB of RAM
Plan file: plan.out.json.txt
Used
terraform-compliance
Parameters: noneRunning via Docker: No
Error Output: Lots of warnings about ambiguous modules like this:
then
Expected Behavior: Features to be executed
Tested Versions: