From 3540066cc5703c309023b5846870d1341b15f60d Mon Sep 17 00:00:00 2001 From: Eunice Remoquillo Date: Fri, 21 Jun 2024 00:03:52 +0800 Subject: [PATCH 1/3] Install requirements for tests using gemfile This commit moves the gem install using gemfile to fix encountered issue when installing parallel_tests. This also updates parallel and parallel_tests version to latest versions that supports ruby v2.5.0. This resolves MON-13444. Signed-off-by: Eunice Remoquillo --- Gemfile | 11 +++++++++++ op5build/ci_config.yml | 10 ++-------- 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 Gemfile diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..ee83a1dd --- /dev/null +++ b/Gemfile @@ -0,0 +1,11 @@ +source "https://rubygems.org" + +ruby '~> 2.5.0' + +gem 'mysql2', '~> 0.5.2' +gem 'cucumber', '1.3.18' +gem 'rspec', '2.14.1' +gem 'parallel', '1.19.2' +gem 'parallel_tests', '2.32.0' +gem 'syntax', '1.0.0' +gem 'sequel', '5.71.0' \ No newline at end of file diff --git a/op5build/ci_config.yml b/op5build/ci_config.yml index a3db8fc9..254a6b0a 100644 --- a/op5build/ci_config.yml +++ b/op5build/ci_config.yml @@ -18,14 +18,8 @@ post: stat --printf='%U:%G %a' /opt/monitor/op5/merlin/merlin.conf | xargs -I{} test "root:apache 660" = "{}" # Install requirements for cucumber test - gem install --no-ri --no-rdoc \ - mysql2 \ - cucumber:1.3.18 \ - rspec:2.14.1 \ - parallel:1.13.0 \ - parallel_tests:2.23.0 \ - syntax:1.0.0 \ - sequel:5.71.0 + gem install --no-ri --no-rdoc bundler -v '~> 2.3.0' + bundle install # Run cucumber tests ulimit -c unlimited From 7584a7844d76c3f9891b114aff15ac08c69debe7 Mon Sep 17 00:00:00 2001 From: Eunice Remoquillo Date: Mon, 24 Jun 2024 14:19:27 +0800 Subject: [PATCH 2/3] Update pinned ruby version This commit allows ruby version to get latest ruby v2.5.x Signed-off-by: Eunice Remoquillo --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ee83a1dd..88a15168 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -ruby '~> 2.5.0' +ruby '~> 2.5' gem 'mysql2', '~> 0.5.2' gem 'cucumber', '1.3.18' From d973fc1ffde1b17901dc5d461bf45f8bbb063fa4 Mon Sep 17 00:00:00 2001 From: Eunice Remoquillo Date: Mon, 24 Jun 2024 17:50:58 +0800 Subject: [PATCH 3/3] Added rubygems update This commit adds rubygems update to test if it will resolve the error regarding rubygem version (2.7.6.3) error on bundle install. --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 88a15168..c0b839b1 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source "https://rubygems.org" ruby '~> 2.5' +gem 'rubygems-update', '~> 3.3' gem 'mysql2', '~> 0.5.2' gem 'cucumber', '1.3.18' gem 'rspec', '2.14.1'