[19.0] Move Ruby regexp patches to the 3.3.11 directory
What does this MR do?
Ruby 3.3.13 and later include the regexp-program-size, regexp-repeat-id-overflow and regexp-repeat-range-double-free fixes, so these patches no longer apply to newer Ruby. With Ruby 3.3.14, the current 19-0-stable patches leave .rej files.
This MR moves the three patches from gitlab-ruby/patches/3.3/ to gitlab-ruby/patches/3.3.11/. The patch script applies <version>/ patches only for that exact Ruby version. This branch builds Ruby 3.3.11, and GitLab's end-to-end tests build CNG with GitLab's own RUBY_VERSION, which is also 3.3.11 on 19-0-stable-ee. So 3.3.11 builds do not change, and newer Ruby builds skip the patches.
The file contents do not change. !3316 (merged) makes the same move as part of the Ruby 3.3.14 bump, and it should rebase cleanly on this MR.
Test plan
I ran shared/build-scripts/apply_ruby_patches.sh from this branch against clean Ruby source tarballs with GNU patch, as in CI:
| Ruby | Exit | Patches applied |
|---|---|---|
| 3.3.11 | 0 | 5 (2 from 3.3/, 3 from 3.3.11/) |
| 3.3.14 | 0 | 2 (3.3/ only) |
No patch failed, and no .rej files were left.
Related MRs
The same change for each branch:
master: !3323 (merged)19-6-stable: !3324 (merged)19-5-stable: !3325 (merged)19-4-stable: !3326 (merged)19-3-stable: !3336 (merged)19-2-stable: !3335 (merged)19-1-stable: !3334 (merged)19-0-stable: !3333 (merged)18-11-stable: !3332 (merged)
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
- Merge Request Title, and Description are up to date, accurate, and descriptive
- MR targeting the appropriate branch
- MR has a green pipeline on GitLab.com
- When ready for review, MR is labeled "~workflow::ready for review" per the Distribution MR workflow
Expected (please provide an explanation if not completing)
- Test plan indicating conditions for success has been posted and passes
- Documentation created/updated
- Integration tests added to GitLab QA
- The impact any change in container size has should be evaluated
- New dependencies are managed with GitLab forked renovatebot