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

Increase max_yaml_size_bytes to 50MB #986

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

mvandenburgh
Copy link
Member

@mvandenburgh mvandenburgh commented Oct 31, 2024

See https://spackpm.slack.com/archives/C02N33GM28H/p1730299174926259.

We've encountered a generated pipeline yaml that exceeded the currently set limit of 20MB (https://gitlab.spack.io/spack/spack/-/pipelines/873775). That particular yaml took 20.9MB of memory, which I was able to confirm by patching the staging gitlab instance to report the memory used. (https://gitlab.staging.spack.io/mvandenburgh/spack/-/pipelines/1372)

I'm not sure what the best approach is here; I've bumped up the limit to 50MB, but technically that's a lot more than what we needed in this case. I'm not sure what the implications of a high yaml size limit are, anyone have any thoughts?

Copy link
Collaborator

@scottwittenburg scottwittenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC the reason they added the limit was to protect against the billion laughs attack (reference). But 50MB isn't that much bigger than 20MB, and it buys time by allowing the stacks to more than double in size (roughly) before we run into this again. When we have the common stacks stuff set up, pipelines could become smaller in general, so maybe we could revisit then to see if we can decrease the limit.

@mvandenburgh mvandenburgh merged commit fac1292 into main Oct 31, 2024
1 check passed
@mvandenburgh mvandenburgh deleted the increase-yaml-limit branch October 31, 2024 17:31
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