From 57a75ba9a213d6bf5cfdb3f8288a480799768366 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Wed, 19 Jun 2024 01:39:18 +0530 Subject: [PATCH 1/9] added ruby 3.3 pipeline Signed-off-by: nikhil2611 --- .expeditor/verify.pipeline.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 588a469..a6ea3b4 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -17,6 +17,13 @@ steps: executor: docker: image: ruby:3.1-buster +- label: run-lint-and-specs-ruby-3.3 + command: + - .expeditor/run_linux_tests.sh rake + expeditor: + executor: + docker: + image: ruby:3.3 - label: run-specs-windows command: - bundle config set --local without docs debug From 14ef4a22c8b9f5aa851478c5cd95a414102a0420 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 4 Jul 2024 19:56:48 +0530 Subject: [PATCH 2/9] added windows ruby 3.3 verify pipeline Signed-off-by: nikhil2611 --- .expeditor/verify.pipeline.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index a6ea3b4..cee2120 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -24,7 +24,7 @@ steps: executor: docker: image: ruby:3.3 -- label: run-specs-windows +- label: run-specs-windows-3.1 command: - bundle config set --local without docs debug - bundle install --jobs=7 --retry=3 @@ -34,3 +34,13 @@ steps: docker: host_os: windows image: rubydistros/windows-2019:3.1 +- label: run-specs-windows-3.3 + command: + - bundle config set --local without docs debug + - bundle install --jobs=7 --retry=3 + - bundle exec rake + expeditor: + executor: + docker: + host_os: windows + image: rubydistros/windows-2019:3.3 From 8f9f4f38840975d7093c64242272edc51d02a7c1 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 11 Jul 2024 00:32:40 +0530 Subject: [PATCH 3/9] updated the test files format Signed-off-by: nikhil2611 --- knife-google.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knife-google.gemspec b/knife-google.gemspec index b1eecf3..c1bb855 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |s| s.description = s.summary s.homepage = "https://github.com/chef/knife-google" s.files = %w{LICENSE} + Dir.glob("lib/**/*") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") + s.test_files = `git ls-files -- spec/*`.split("\n") s.require_paths = ["lib"] s.required_ruby_version = ">= 3.1" From f0026e5c1c88d4a129da00040a9f5054874d15a3 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 11 Jul 2024 20:59:49 +0530 Subject: [PATCH 4/9] added log to debug Signed-off-by: nikhil2611 --- knife-google.gemspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/knife-google.gemspec b/knife-google.gemspec index c1bb855..f37e355 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -1,5 +1,8 @@ $:.push File.expand_path("lib", __dir__) require "knife-google/version" +puts"git version----------" +cmd = `git --version` +puts cmd Gem::Specification.new do |s| s.name = "knife-google" From bb9209286cb39d60057fbf11190f7b59e35207ea Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 11 Jul 2024 21:26:04 +0530 Subject: [PATCH 5/9] added log to debug Signed-off-by: nikhil2611 --- knife-google.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/knife-google.gemspec b/knife-google.gemspec index f37e355..9ec9bc9 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -1,6 +1,8 @@ $:.push File.expand_path("lib", __dir__) require "knife-google/version" puts"git version----------" +curret_path = `pwd` +puts curret_path cmd = `git --version` puts cmd From a6ea2a44673ea1e8fe13106c36cd8985424e560e Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 11 Jul 2024 21:57:01 +0530 Subject: [PATCH 6/9] added log to debug Signed-off-by: nikhil2611 --- knife-google.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/knife-google.gemspec b/knife-google.gemspec index 9ec9bc9..665d79f 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -1,8 +1,7 @@ $:.push File.expand_path("lib", __dir__) require "knife-google/version" puts"git version----------" -curret_path = `pwd` -puts curret_path +puts File.expand_path(File.dirname(__FILE__)) cmd = `git --version` puts cmd From a4c098dda606f6756c5cf47e1440fd13df55b309 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Thu, 11 Jul 2024 22:05:40 +0530 Subject: [PATCH 7/9] removed the logs Signed-off-by: nikhil2611 --- knife-google.gemspec | 4 ---- 1 file changed, 4 deletions(-) diff --git a/knife-google.gemspec b/knife-google.gemspec index 665d79f..c1bb855 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -1,9 +1,5 @@ $:.push File.expand_path("lib", __dir__) require "knife-google/version" -puts"git version----------" -puts File.expand_path(File.dirname(__FILE__)) -cmd = `git --version` -puts cmd Gem::Specification.new do |s| s.name = "knife-google" From 29259c11621d436e53c185c1eab80c42013dab78 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Fri, 12 Jul 2024 15:16:46 +0530 Subject: [PATCH 8/9] added up logs Signed-off-by: nikhil2611 --- knife-google.gemspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/knife-google.gemspec b/knife-google.gemspec index c1bb855..f37e355 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -1,5 +1,8 @@ $:.push File.expand_path("lib", __dir__) require "knife-google/version" +puts"git version----------" +cmd = `git --version` +puts cmd Gem::Specification.new do |s| s.name = "knife-google" From 01513ec1c430c302f88cb9cc5f433f78148129d8 Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Fri, 19 Jul 2024 13:21:53 +0530 Subject: [PATCH 9/9] updated the pipeline to win ruby 3.3 Signed-off-by: nikhil2611 --- .expeditor/verify.pipeline.yml | 17 ----------------- knife-google.gemspec | 7 ++----- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index cee2120..63e772a 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -10,13 +10,6 @@ expeditor: timeout_in_minutes: 30 steps: -- label: run-lint-and-specs-ruby-3.1 - command: - - .expeditor/run_linux_tests.sh rake - expeditor: - executor: - docker: - image: ruby:3.1-buster - label: run-lint-and-specs-ruby-3.3 command: - .expeditor/run_linux_tests.sh rake @@ -24,16 +17,6 @@ steps: executor: docker: image: ruby:3.3 -- label: run-specs-windows-3.1 - command: - - bundle config set --local without docs debug - - bundle install --jobs=7 --retry=3 - - bundle exec rake - expeditor: - executor: - docker: - host_os: windows - image: rubydistros/windows-2019:3.1 - label: run-specs-windows-3.3 command: - bundle config set --local without docs debug diff --git a/knife-google.gemspec b/knife-google.gemspec index f37e355..cd702d5 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -1,8 +1,5 @@ $:.push File.expand_path("lib", __dir__) require "knife-google/version" -puts"git version----------" -cmd = `git --version` -puts cmd Gem::Specification.new do |s| s.name = "knife-google" @@ -14,9 +11,9 @@ Gem::Specification.new do |s| s.description = s.summary s.homepage = "https://github.com/chef/knife-google" s.files = %w{LICENSE} + Dir.glob("lib/**/*") - s.test_files = `git ls-files -- spec/*`.split("\n") + s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") s.require_paths = ["lib"] - s.required_ruby_version = ">= 3.1" + s.required_ruby_version = ">= 3.3" s.add_dependency "knife" s.add_dependency "knife-cloud", ">= 4.0.0"