Skip to content

[JENKINS-75487] limit number of "did you forget the def keyword" warnings to avoid OOM #1704

@jenkins-infra-bot

Description

@jenkins-infra-bot

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions