Skip to content

Commit

Permalink
[YAML] The maximum amount of memory is reached when generating chip-t…
Browse files Browse the repository at this point in the history
…ool tests (project-chip#15788)
  • Loading branch information
vivien-apple authored and krypton36 committed Mar 3, 2022
1 parent f1b0e55 commit 6d4e8ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/tools/zap/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def runJavaPrettifier(templates_file, output_dir):
def main():
checkPythonVersion()

# The maximum meory usage is over 4GB (#15620)
os.environ["NODE_OPTIONS"] = "--max-old-space-size=8192"
zap_file, zcl_file, templates_file, output_dir = runArgumentsParser()
runGeneration(zap_file, zcl_file, templates_file, output_dir)

Expand Down

0 comments on commit 6d4e8ee

Please sign in to comment.