Skip to content

Commit

Permalink
Merge pull request #110 from DataDog/anmarchenko/minitest_instrumenta…
Browse files Browse the repository at this point in the history
…tion_ci_queue

[CIVIS-8552] ci-queue runner support for minitest
  • Loading branch information
anmarchenko authored Jan 23, 2024
2 parents b8ce942 + 8ef8818 commit c3ccfee
Show file tree
Hide file tree
Showing 81 changed files with 2,191 additions and 989 deletions.
13 changes: 13 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,22 @@ def self.with_minitest_gem(versions: 5)
end
end

def self.with_ci_queue_minitest_gem(minitest_versions: 5, ci_queue_versions: 0)
Array(minitest_versions).each do |minitest_v|
Array(ci_queue_versions).each do |ci_queue_v|
appraise "ci-queue-#{ci_queue_v}-minitest-#{minitest_v}" do
gem "minitest", "~> #{minitest_v}"
gem "ci-queue", "~> #{ci_queue_v}"
gem "minitest-reporters", "~> 1"
end
end
end
end

with_minitest_gem
with_rspec_gem
with_cucumber_gem(versions: 3..9)
with_ci_queue_minitest_gem

major, minor, = Gem::Version.new(RUBY_ENGINE_VERSION).segments

Expand Down
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ TEST_METADATA = {
},
"minitest" => {
"minitest-5" => "✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ jruby"
},
"ci_queue_minitest" => {
"ci-queue-0-minitest-5" => "✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ jruby"
}
}

Expand Down Expand Up @@ -101,7 +104,8 @@ namespace :spec do
[
:cucumber,
:rspec,
:minitest
:minitest,
:ci_queue_minitest
].each do |contrib|
desc "" # "Explicitly hiding from `rake -T`"
RSpec::Core::RakeTask.new(contrib) do |t, args|
Expand Down
2 changes: 1 addition & 1 deletion Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ target :lib do
library "rspec"
library "cucumber"
library "msgpack"
library "weakref"
library "ci_queue"
end
33 changes: 33 additions & 0 deletions gemfiles/jruby_9.4_ci_queue_0_minitest_5.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "os"
gem "climate_control"
gem "rspec"
gem "rspec-collection_matchers"
gem "rspec_junit_formatter"
gem "appraisal"
gem "timecop"
gem "standard", "~> 1.31"
gem "yard"
gem "webrick"
gem "pimpmychangelog", ">= 0.1.2"
gem "simplecov"
gem "simplecov-cobertura", "~> 2.1.0"
gem "minitest", "~> 5"
gem "ci-queue", "~> 0"
gem "minitest-reporters", "~> 1"

group :check do

end

group :development do

end

gemspec path: "../"
148 changes: 148 additions & 0 deletions gemfiles/jruby_9.4_ci_queue_0_minitest_5.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
PATH
remote: ..
specs:
datadog-ci (0.6.0)
msgpack

GEM
remote: https://rubygems.org/
specs:
ansi (1.5.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
builder (3.2.4)
ci-queue (0.42.0)
climate_control (1.2.0)
coderay (1.1.3)
ddtrace (1.19.0)
datadog-ci (~> 0.6.0)
debase-ruby_core_source (= 3.3.1)
libdatadog (~> 5.0.0.1.0)
libddwaf (~> 1.14.0.0.0)
msgpack
debase-ruby_core_source (3.3.1)
diff-lcs (1.5.0)
docile (1.4.0)
ffi (1.16.3-java)
json (2.7.1-java)
language_server-protocol (3.17.0.3)
libdatadog (5.0.0.1.0)
libddwaf (1.14.0.0.0-java)
ffi (~> 1.0)
lint_roller (1.1.0)
method_source (1.0.0)
minitest (5.21.2)
minitest-reporters (1.6.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
msgpack (1.7.2-java)
os (1.1.4)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pimpmychangelog (0.1.3)
pry (0.14.2-java)
coderay (~> 1.1)
method_source (~> 1.0)
spoon (~> 0.0)
racc (1.7.3-java)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-collection_matchers (1.2.1)
rspec-expectations (>= 2.99.0.beta1)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.59.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
spoon (0.0.6)
ffi
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.59.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.3)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.3.1)
lint_roller (~> 1.1)
rubocop-performance (~> 1.20.2)
thor (1.3.0)
timecop (0.9.8)
unicode-display_width (2.5.0)
webrick (1.8.1)
yard (0.9.34)

PLATFORMS
universal-java-11

DEPENDENCIES
appraisal
ci-queue (~> 0)
climate_control
datadog-ci!
ddtrace
minitest (~> 5)
minitest-reporters (~> 1)
os
pimpmychangelog (>= 0.1.2)
pry
rake
rspec
rspec-collection_matchers
rspec_junit_formatter
simplecov
simplecov-cobertura (~> 2.1.0)
standard (~> 1.31)
timecop
webrick
yard

BUNDLED WITH
2.3.26
34 changes: 17 additions & 17 deletions gemfiles/jruby_9.4_cucumber_3.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ GEM
cucumber-expressions (6.0.1)
cucumber-tag_expressions (1.1.1)
cucumber-wire (0.0.1)
ddtrace (1.18.0)
datadog-ci (~> 0.5.0)
debase-ruby_core_source (= 3.2.3)
ddtrace (1.19.0)
datadog-ci (~> 0.6.0)
debase-ruby_core_source (= 3.3.1)
libdatadog (~> 5.0.0.1.0)
libddwaf (~> 1.14.0.0.0)
msgpack
debase-ruby_core_source (3.2.3)
debase-ruby_core_source (3.3.1)
diff-lcs (1.5.0)
docile (1.4.0)
ffi (1.16.3-java)
Expand All @@ -54,8 +54,8 @@ GEM
multi_json (1.15.0)
multi_test (1.1.0)
os (1.1.4)
parallel (1.23.0)
parser (3.2.2.4)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pimpmychangelog (0.1.3)
Expand All @@ -66,7 +66,7 @@ GEM
racc (1.7.3-java)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.8.3)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand All @@ -85,22 +85,22 @@ GEM
rspec-support (3.12.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.57.2)
rubocop (1.59.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (1.13.0)
simplecov (0.22.0)
docile (~> 1.1)
Expand All @@ -113,18 +113,18 @@ GEM
simplecov_json_formatter (0.1.4)
spoon (0.0.6)
ffi
standard (1.32.1)
standard (1.33.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.57.2)
rubocop (~> 1.59.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.2)
standard-performance (~> 1.3)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.2.1)
standard-performance (1.3.1)
lint_roller (~> 1.1)
rubocop-performance (~> 1.19.1)
rubocop-performance (~> 1.20.2)
thor (1.3.0)
timecop (0.9.8)
unicode-display_width (2.5.0)
Expand Down
Loading

0 comments on commit c3ccfee

Please sign in to comment.