-
Notifications
You must be signed in to change notification settings - Fork 3
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
Disable static analyzer by default #73
Comments
@cusma can you provide an example or expand on what exactly is growing quickly? I have just instantiated a template against latest python example, generated 100 hello world artifacts, and then run the analyze task which resulted in a snapshots folder of size only ~2mb. Which will remain static unless new contracts are added or new contract is added into the project. Are you able to provide a small reproducible example if you are saying that multiple re runs of the tealer task against unchanged artifacts increases size of snapshots. Alternatively if you have a lot of contracts, it may also depend on the complexity of the contract itself, algokit-cli only forwards the inputs into tealer but if tealer produces an abnormally large snapshot file then might be an even better case for having a reproducible example so we can report on the tealer repository. |
So, I can be wrong here. Not sure if I'm able to set up a reproducible example quickly, but... this is my condition: I have just 1 contract. The resulting |
@cusma this sounds like a bug on tealer side then, any chance this contract can be shared ? I can re test against tealer and open an issue on tealer repository with a reproducible snippet. |
@cusma just found this on tealer repo, looks like its the related root cause for why your approval snapshot is so large -> crytic/tealer#101 |
@cusma above PR disables this as per this issue but will keep it open until there are fixes in tealer. At that point worth re enabling the behaviour as other than the existing bug, its a useful feature to have out of the box |
Yes, that my be the cause. My contract is not complex but involved quite heavy loops. Maybe TEALer files/paths proliferate with each loop execution. |
Problem
The
.algokit/static_analysis/snapshot
JSONs keep growing (quickly) with the#
ofpre-commit
runs.I've noticed it just when GB rejected a commit due to file oversize (118 MB 😱).
Solution
Make static analysis optional and disable them by default.
Dependencies
None.
The text was updated successfully, but these errors were encountered: