Skip to content
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

Do not make rego trace unless --trace flag is passed in #556

Merged

Conversation

msarvar
Copy link
Contributor

@msarvar msarvar commented May 6, 2021

Currently conftest always uses tracing even if --trace flag is not used. This is causes significant memory consumption when conftest is used with a semi complicated rego library and big config files. This is a PR to the #555

@jpreese
Copy link
Member

jpreese commented May 7, 2021

@msarvar amazing catch! Don't forget to sign the DCO. I'll take a look in the meantime :)

Signed-off-by: Sarvar Muminov <[email protected]>
@msarvar msarvar force-pushed the move-tracing-into-optional branch from 96f6434 to a59dc0c Compare May 7, 2021 00:57
@msarvar
Copy link
Contributor Author

msarvar commented May 7, 2021

Fixed the DCO. It was a fun debugging session that involved some stracing and looking up system calls :D

@jpreese jpreese merged commit a7464de into open-policy-agent:master May 7, 2021
msarvar added a commit to runatlantis/atlantis that referenced this pull request May 13, 2021
Version 0.25.0 solves OOM issue described in [556](open-policy-agent/conftest#556).
msarvar added a commit to runatlantis/atlantis that referenced this pull request May 13, 2021
Version 0.25.0 solves OOM issue described in [556](open-policy-agent/conftest#556).
macox pushed a commit to macox/conftest that referenced this pull request Oct 5, 2021
…agent#556)

* Making tracing functionality optional

Signed-off-by: Sarvar Muminov <[email protected]>

* Adding tests

Signed-off-by: Sarvar Muminov <[email protected]>

* Use Trace variable for `verify` command

Signed-off-by: Sarvar Muminov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants