GitLab Pages deployments over the max int size in bytes fail to upload
Summary
When the Pages artifact is larger than MAX_INT, the upload fails to complete, with an pages:deploy - <SIZE_GREATER_THAN_MAX_INT> is out of range for ActiveModel::Type::Integer with limit 4 bytes
error:
Because the size
column in the pages_deployments table is an integer
, this fails for values outside of this range.
Steps to reproduce
Configure a bucket for Pages, create a project with the Pages artifact size greater than ~2gb.
What is the current bug behavior?
Pages deployment artifacts greater than ~2gb fail to upload.
What is the expected correct behavior?
There shouldn't be an error when deploying large Pages artifacts.
Relevant logs and/or screenshots
pages:deploy - <SIZE_GREATER_THAN_MAX_INT> is out of range for ActiveModel::Type::Integer with limit 4 bytes
Possible fixes
Possibly change the size
column type in pages_deployments
?
Workaround
In %13.6 you can disable zip_pages_deployments
feature flag. See docs: https://docs.gitlab.com/ee/administration/feature_flags.html
In %13.7 we expect this problem to be fixed by !50262 (merged)
/cc @vshushlin