-
Notifications
You must be signed in to change notification settings - Fork 197
Description
I've meanwhile experienced several pipelines that almost lead to crashing the controller after introducing the "def keyword" warning. When this warning is triggered in tightly looped groovy code, it easily increases the log size by hundreds of MB.
Would it be possible to only add that warning at most a fixed number of times (like 10.000) to avoid the log size getting out of control?
This is not meant as an excuse to not fix these pipelines. It's just that some teams basically had issues to even investigate the problem because of their huge logs now.
Originally reported by
bananeweizen, imported from: limit number of "did you forget the def keyword" warnings to avoid OOM
- status: Open
- priority: Minor
- component(s): workflow-cps-plugin
- resolution: Unresolved
- votes: 0
- watchers: 3
- imported: 2025-12-07
Raw content of original issue
I've meanwhile experienced several pipelines that almost lead to crashing the controller after introducing the "def keyword" warning. When this warning is triggered in tightly looped groovy code, it easily increases the log size by hundreds of MB.
Would it be possible to only add that warning at most a fixed number of times (like 10.000) to avoid the log size getting out of control?
This is not meant as an excuse to not fix these pipelines. It's just that some teams basically had issues to even investigate the problem because of their huge logs now.