From 49cb89f531152c466a4612b56d179014b3230e99 Mon Sep 17 00:00:00 2001
From: Stan Hu <stanhu@gmail.com>
Date: Tue, 5 Mar 2024 19:19:10 -0800
Subject: [PATCH] Fix detect-tests CI job

The detect-tests job is failing in
https://gitlab.com/gitlab-renovate-forks/gitlab/-/jobs/6326977771
because `ruby:3.1-slim` doesn't come with `gcc` and `make`, which is
needed to build native extensions. `activesupport` depends on `i18n`,
which depends on `racc`. `racc` has a native extension.
---
 .gitlab/ci/setup.gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab/ci/setup.gitlab-ci.yml b/.gitlab/ci/setup.gitlab-ci.yml
index 2d09c95166d80..fa6707bd8516c 100644
--- a/.gitlab/ci/setup.gitlab-ci.yml
+++ b/.gitlab/ci/setup.gitlab-ci.yml
@@ -132,7 +132,7 @@ detect-tests:
   variables:
     RSPEC_TESTS_MAPPING_ENABLED: "true"
   before_script:
-    - apt-get update && apt-get install -y curl  # Not present in ruby-slim, so we add it manually
+    - apt-get update && apt-get install -y curl make gcc # Not present in ruby-slim, so we add it manually
   script:
     - source ./scripts/utils.sh
     - source ./scripts/rspec_helpers.sh
-- 
GitLab