Trim pages deployment file name to 60 characters

What does this MR do and why?

Trims the Pages deployment filename to a maximum of 60 characters by removing characters from the beginning when necessary. This prevents issues with excessively long filenames during uploads to object storage.

Prior to !167150 (merged), filenames were limited to 60 characters as logged here. Hence, we decided to keep it 60 character long.

Changelog: fixed

References

gitlab-com/request-for-help#2862

Screenshots or screen recordings

Logged below values in local during testing:

  • original filename: 28da28dae7c8bde2f3ca608f86d0e16a214dee74c74bee011cdfdd46bc04b655bc14finalfd1271dbdc10c0d2894e5a266b7d8fc8200922b4a781b67deb24a16c6d502b3120250521-59610-jq2e59
  • Trimmed filename: b7d8fc8200922b4a781b67deb24a16c6d502b3120250521-59610-jq2e59
Before After

How to set up and validate locally

After this change also, pages are getting deployed successfully.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading