Commit graph

12 commits

Author SHA1 Message Date
Matthias Kaeppler
f7db299357 Apply object tracing mark patch from upstream Ruby
Original commit:
7a58ee9b96

This might fix https://gitlab.com/gitlab-org/gitlab/-/issues/350296
2022-01-20 13:37:02 +01:00
Stan Hu
012bc5654a
Add Ruby patch to test GC issues with object tracing enabled
It's possible we just need a `RB_GC_GUARD` to prevent `obj` from being
prematurely freed by the garbage collector. This is test out
https://github.com/ruby/ruby/pull/5470/files.

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/350296
2022-01-19 11:37:36 -08:00
Stan Hu
b90f2f9d79
Fix gsutil rsync supported args
This fixes a problem with -x <args> no longer worked. Seen in
https://gitlab.com/gitlab-com/www-gitlab-com/-/jobs/1946099171.
2022-01-05 20:20:54 -08:00
Stan Hu
519554013c
Add custom www-gitlab-com image with patched gsutil rsync command
Currently the `gsutil rsync` command does not support the `-z` or `-Z`
options available in `gsutil cp` to compress files locally via gzip
before uploading
(https://github.com/GoogleCloudPlatform/gsutil/issues/579). As
https://cloud.google.com/storage/docs/gsutil/commands/cp states:

When you specify the -z option, the data from your files is
compressed before it is uploaded, but your actual files are left
uncompressed on the local disk. The uploaded objects retain the
Content-Type and name of the original files, but have their
Content-Encoding metadata set to gzip to indicate that the object data
stored are compressed on the Cloud Storage servers and have their
Cache-Control metadata set to no-transform.

about.gitlab.com is currently serving uncompressed HTML files because
`Cache-Control: max-age=0` is set (see
https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/87045),
and Fastly has a custom rule to skip HTML files and therefore won't
cache them.

This patches the `rsync.py` using
https://github.com/GoogleCloudPlatform/gsutil/pull/1430 to support these
command-line options so local gzip compression can be performed.

Relates to
https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14852
2022-01-05 08:37:26 -08:00
Stan Hu
ef05340775
Add Ruby 2.7.5 patches 2021-12-04 08:11:19 -08:00
Matthias Käppler
88d8ef2879 Update Ruby 3 images to 3.0.3 2021-11-25 08:21:32 +00:00
Matthias Kaeppler
19cbe92aa9 Pin ruby-2.7.2 image, add ruby-2.7
The ruby-2.7 tags will always contain the latest
patch released for that minor version.

This allows us to ship patches more easily but
retains backwards compatibility with existing
repos asking for 2.7.2.
2021-08-18 11:46:43 +02:00
Matthias Kaeppler
c87c1d58bf Add Ruby 3.0.2 patches to fix method override bug
These patches are necessary to fix https://bugs.ruby-lang.org/issues/17725
which is unreleased.

This is currently breaking our Ruby 3 build, so until 3.0.3 is out
let's apply these independently.
2021-08-12 15:31:46 +02:00
Matthias Kaeppler
ee30123fab Fix patches not applied to Ruby 3 build image
Since RUBY_VERSION expands to 3.0.2, and since
we look for patches in a director of the same
name, no patches were applied from the 3.0.0
directory.
2021-08-06 14:11:25 +02:00
Stan Hu
8c7986e6af
Add patch to debug seg faults
This is a temporary patch to investigate
https://gitlab.com/gitlab-org/gitlab/-/issues/326348.
2021-04-20 16:23:40 -07:00
Kamil Trzciński
f0bf9d8f0c Fix support for Ruby versions 2021-02-01 17:45:17 +01:00
Kamil Trzciński
0b0a3b745a Add missing patch 2021-02-01 14:20:17 +01:00