Verified Commit 4fadf279 authored by Bob Van Landuyt's avatar Bob Van Landuyt 💬
Browse files

chore(deps): drop support for Ruby 3.2

This drops support for Ruby 3.2, which hasn't been used in GitLab-rails
since January 2025. So we don't need to support it anymore in Labkit.

We do need to keep supporting 3.3 for now, we're working on the upgrade
to 3.4 in gitlab-org#16601

In the meantime, this allows us to upgrade labkit to start using Ruby 4,
making sure that Labkit does not become a bottleneck in upgrading
GitLab-rails or other applications to Ruby 4. We keep running the tests
against Ruby 3.3 & Ruby 3.4 to make sure we still support those, and can
backport fixes if needed.

Prerequisite to
!217
parent 810d4635
Loading
Loading
Loading
Loading
+11 −12
Original line number Diff line number Diff line
@@ -27,21 +27,20 @@ include:

  - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/danger@v3.11

.test_template: &test_definition
  extends: .with_bundle
  image: ruby:${RUBY_VERSION}
  stage: validate
  script:
    - gem install bundler --no-document
    - bundle config --local path vendor
    - bundle install
    - bundle exec rake verify build install

ruby-versions:
  <<: *test_definition
  extends: rspec
  image: ${CI_REGISTRY}/gitlab-com/gl-infra/common-ci-tasks-images/ruby:${RUBY_VERSION}
  parallel:
    matrix:
      - RUBY_VERSION: ["3.4"]

# These versions aren't built in common CI tasks, so use a public ruby image
legacy-ruby-versions:
  extends: rspec
  image: ruby:${RUBY_VERSION}
  parallel:
    matrix:
      - RUBY_VERSION: ["3.2", "3.3"]
      - RUBY_VERSION: ["3.3"]

deploy:
  rules:
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
  spec.bindir = "exe"
  spec.executables = %w[labkit-logging]
  spec.require_paths = ["lib"]
  spec.required_ruby_version = "~> 3.2"
  spec.required_ruby_version = ">= 3.3", "< 5"

  # Please maintain alphabetical order for dependencies
  spec.add_runtime_dependency "actionpack", ">= 5.0.0", "< 8.1.0"