Skip to content

Increase the Budget for check-yaml hooks #1838

@aldy505

Description

@aldy505

Hi! I'm trying to replace pre-commit to prek on getsentry/self-hosted, and I came across an issue of:

- hook id: check-yaml
- exit code: 1

  docker-compose.yml: Failed to yaml decode (error: line 857 column 1: YAML document too large or too complex: limits breached: AliasAnchorRatio { aliases: 158, anchors: 9 }
     --> <input>:856:26
      |
  855 |   sentry-smtp-log:
  856 |   sentry-clickhouse-log:
      |                         ^ YAML document too large or too complex: limits breached: AliasAnchorRatio { aliases: 158, anchors: 9 })

On the source code, this is what the configuration looks like:

let options = serde_saphyr::Options {
ignore_binary_tag_for_string: true,
..Default::default()
};

Is there any way we can increase the Budget options by default? Or is there any way to configure this from us?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions