You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My pre-commit.ci run failed during environment initialization after installing this hook with the following error:
build of https://github.com/renovatebot/pre-commit-hooks:renovate@43.216.1@43.216.1 for node@lts exceeds tier max size 250MiB: 610.4MiB
Warning
I noticed that the build took around 1m and 45s and eventually failed. This is significant because with a warm cache, the build can be around 100ms or 3s when a new hook has been added. When installing the hook locally, it also took a significant time during the environment initialization phase.
Root Cause
The resulting pre-commit environment exceeds the maximum size allowed by pre-commit.ci (250 MiB), causing environment creation to fail before the hook can execute.
This is an incompatibility between:
The size of the hook's runtime/dependency footprint.
The environment size limits enforced by pre-commit.ci.
Impact
For users who rely on pre-commit.ci as their SSOT for CI validation, this integration failure with the target platform makes adoption questionable. This should not be the case given that this is the most developer-convenient option to config validation.
Suggestions
Compatibility with pre-commit.ci should be a goal for this hook, for the community. I believe this is what is being addressed in #4224.
Note
Reduce the hook's installation footprint or explore a lighter-weight validation mechanism.
In the meantime, this known limitation with pre-commit.ci should be documented so users avoid running it in CI. This can be accomplished by adding the following to pre-commit-config.yaml:
Description
My
pre-commit.cirun failed during environment initialization after installing this hook with the following error:build of https://github.com/renovatebot/pre-commit-hooks:renovate@43.216.1@43.216.1 for node@lts exceeds tier max size 250MiB: 610.4MiBWarning
I noticed that the build took around 1m and 45s and eventually failed. This is significant because with a warm cache, the build can be around 100ms or 3s when a new hook has been added. When installing the hook locally, it also took a significant time during the environment initialization phase.
Root Cause
The resulting
pre-commitenvironment exceeds the maximum size allowed bypre-commit.ci(250 MiB), causing environment creation to fail before the hook can execute.This is an incompatibility between:
pre-commit.ci.Impact
For users who rely on
pre-commit.cias their SSOT for CI validation, this integration failure with the target platform makes adoption questionable. This should not be the case given that this is the most developer-convenient option to config validation.Suggestions
Compatibility with
pre-commit.cishould be a goal for this hook, for the community. I believe this is what is being addressed in #4224.Note
Reduce the hook's installation footprint or explore a lighter-weight validation mechanism.
In the meantime, this known limitation with
pre-commit.cishould be documented so users avoid running it in CI. This can be accomplished by adding the following topre-commit-config.yaml:Environment
Error: