Draft: fix failing pipeline

Summary

The pipeline was failing due to two critical issues:

  1. Bundler version incompatibility with Ruby 2.7 - The latest Bundler requires Ruby >= 3.2.0
  2. Deprecated --path flag in Bundler 4.x - Ruby 3.3 & 3.4 jobs were failing due to the deprecated configuration syntax

Changes

  • Added conditional logic to install Bundler 2.4.22 specifically for Ruby 2.7, while Ruby 3.0+ continues to use the latest Bundler version
  • Updated the bundle config command from bundle config set path to bundle config set --local path to fix Bundler 4.x compatibility
  • Modified the .gitlab-ci.yml before_script section to implement both fixes

Verification

CI Linter: Configuration validated with no errors or warnings Conditional Logic: Verified to correctly install Bundler 2.4.22 for Ruby 2.7 and latest Bundler for other versions Bundle Config: Confirmed using the correct --local flag for path configuration

All four previously failed jobs should now pass:

  • rspec: [2.7] - Will use Bundler 2.4.22 (compatible with Ruby 2.7)
  • rspec: [3.2] - Will use latest Bundler with correct config syntax
  • rspec: [3.3] - Will use Bundler 4.x with correct config syntax
  • rspec: [3.4] - Will use Bundler 4.x with correct config syntax

Fixes failing pipeline on !14

Session 1398361

Edited by Paul Phillips

Merge request reports

Loading