Skip to content

Commit

Permalink
Merge pull request #112 from DataDog/anmarchenko/rspec_instrumentatio…
Browse files Browse the repository at this point in the history
…n_ci_queue

[CIVIS-8552] ci-queue support for rspec
  • Loading branch information
anmarchenko authored Jan 23, 2024
2 parents c3ccfee + 1d7d3ac commit d1034f0
Show file tree
Hide file tree
Showing 25 changed files with 1,359 additions and 30 deletions.
12 changes: 12 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,22 @@ def self.with_ci_queue_minitest_gem(minitest_versions: 5, ci_queue_versions: 0)
end
end

def self.with_ci_queue_rspec_gem(rspec_versions: 3, ci_queue_versions: 0)
Array(rspec_versions).each do |rspec_v|
Array(ci_queue_versions).each do |ci_queue_v|
appraise "ci-queue-#{ci_queue_v}-rspec-#{rspec_v}" do
gem "rspec", "~> #{rspec_v}"
gem "ci-queue", "~> #{ci_queue_v}"
end
end
end
end

with_minitest_gem
with_rspec_gem
with_cucumber_gem(versions: 3..9)
with_ci_queue_minitest_gem
with_ci_queue_rspec_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 @@ -42,6 +42,9 @@ TEST_METADATA = {
},
"ci_queue_minitest" => {
"ci-queue-0-minitest-5" => "✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ jruby"
},
"ci_queue_rspec" => {
"ci-queue-0-rspec-3" => "✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ jruby"
}
}

Expand Down Expand Up @@ -105,7 +108,8 @@ namespace :spec do
:cucumber,
:rspec,
:minitest,
:ci_queue_minitest
:ci_queue_minitest,
:ci_queue_rspec
].each do |contrib|
desc "" # "Explicitly hiding from `rake -T`"
RSpec::Core::RakeTask.new(contrib) do |t, args|
Expand Down
31 changes: 31 additions & 0 deletions gemfiles/jruby_9.4_ci_queue_0_rspec_3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "ddtrace"
gem "pry"
gem "rake"
gem "os"
gem "climate_control"
gem "rspec", "~> 3"
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 "ci-queue", "~> 0"

group :check do

end

group :development do

end

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

GEM
remote: https://rubygems.org/
specs:
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
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)
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
os
pimpmychangelog (>= 0.1.2)
pry
rake
rspec (~> 3)
rspec-collection_matchers
rspec_junit_formatter
simplecov
simplecov-cobertura (~> 2.1.0)
standard (~> 1.31)
timecop
webrick
yard

BUNDLED WITH
2.3.26
32 changes: 32 additions & 0 deletions gemfiles/ruby_2.7_ci_queue_0_rspec_3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file was generated by Appraisal

source "https://rubygems.org"

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

group :check do

end

group :development do

end

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

GEM
remote: https://rubygems.org/
specs:
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
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)
json (2.7.1)
language_server-protocol (3.17.0.3)
libdatadog (5.0.0.1.0-aarch64-linux)
libddwaf (1.14.0.0.0-aarch64-linux)
ffi (~> 1.0)
lint_roller (1.1.0)
method_source (1.0.0)
msgpack (1.7.2)
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)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.7.3)
rainbow (3.1.1)
rake (13.1.0)
redcarpet (3.6.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)
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
aarch64-linux

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

BUNDLED WITH
2.3.26
Loading

0 comments on commit d1034f0

Please sign in to comment.