Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump: add ddtrace in Gemfile #429

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ jobs:
- name: Run tests
run: bin/rspec -fd
continue-on-error: ${{ matrix.allow-failure }}
- name: Send test coverage report to codecov.io
uses: codecov/codecov-action@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action v4 will also need to make use of the codecov secret when not working with PRs from forks.

This exists in this repo as secrets.CODECOV_TOKEN but you'll need to make use of it here similar to here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will try this out right now

with:
lags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ gem 'dalli'
gem 'rest-client'

group :test do
gem 'codecov', :require => false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the reason for this change?

Copy link
Member Author

@ghassanmas ghassanmas Jun 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

install newer version of codecov for ruby, as I remeber I followed this doc https://docs.codecov.com/docs/deprecated-uploader-migration-guide#ruby-uploader
Since it was using the deprecated uploader https://github.com/codecov/codecov-ruby?tab=readme-ov-file

gem 'simplecov-cobertura', :require => false
gem 'mongoid_cleaner', '~> 1.2.0'
gem 'factory_bot'
gem 'faker'
Expand All @@ -69,3 +69,4 @@ gem "rack-contrib", :git => 'https://github.com/rack/rack-contrib.git', :ref =>


gem "timecop", "~> 0.9.5"
gem 'ddtrace', require: 'ddtrace/auto_instrument'
23 changes: 19 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,21 @@ GEM
bigdecimal (3.1.6)
bson (4.15.0)
bson_ext (1.5.1)
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
coderay (1.1.3)
concurrent-ruby (1.2.3)
crack (1.0.0)
bigdecimal
rexml
dalli (3.2.8)
datadog-ci (0.8.3)
msgpack
ddtrace (1.22.0)
datadog-ci (~> 0.8.1)
debase-ruby_core_source (= 3.3.1)
libdatadog (~> 7.0.0.1.0)
libddwaf (~> 1.14.0.0.0)
msgpack
debase-ruby_core_source (3.3.1)
delayed_job (4.1.11)
activesupport (>= 3.0, < 8.0)
delayed_job_mongoid (3.0.0)
Expand Down Expand Up @@ -107,6 +114,9 @@ GEM
i18n (1.14.1)
concurrent-ruby (~> 1.0)
kgio (2.11.4)
libdatadog (7.0.0.1.0)
libddwaf (1.14.0.0.0)
ffi (~> 1.0)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
Expand All @@ -127,6 +137,7 @@ GEM
mongoid_magic_counter_cache (1.1.1)
mongoid
rake
msgpack (1.7.2)
multi_json (1.15.0)
multipart-post (2.4.0)
mustermann (3.0.0)
Expand Down Expand Up @@ -188,10 +199,13 @@ GEM
rspec-support (3.13.0)
ruby2_keywords (0.0.5)
shellany (0.0.1)
simplecov (0.21.2)
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)
sinatra (4.0.0)
Expand Down Expand Up @@ -228,8 +242,8 @@ DEPENDENCIES
bson
bson_ext
bundler
codecov
dalli
ddtrace
delayed_job
delayed_job_mongoid
elasticsearch (~> 7.8.0)
Expand Down Expand Up @@ -258,6 +272,7 @@ DEPENDENCIES
rspec
rspec-collection_matchers
rspec-its
simplecov-cobertura
sinatra
sinatra-param (~> 1.4)
timecop (~> 0.9.5)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile3
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ gem 'dalli'
gem 'rest-client'

group :test do
gem 'codecov', :require => false
gem 'simplecov-cobertura', :require => false
gem 'mongoid_cleaner', '~> 1.2.0'
gem 'factory_bot'
gem 'faker'
Expand Down
10 changes: 6 additions & 4 deletions Gemfile3.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ GEM
bigdecimal (3.1.6)
bson (4.15.0)
bson_ext (1.5.1)
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
coderay (1.1.3)
concurrent-ruby (1.2.3)
crack (1.0.0)
Expand Down Expand Up @@ -210,10 +208,13 @@ GEM
rspec-support (3.13.0)
ruby2_keywords (0.0.5)
shellany (0.0.1)
simplecov (0.21.2)
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)
sinatra (4.0.0)
Expand Down Expand Up @@ -245,14 +246,14 @@ GEM
PLATFORMS
aarch64-linux
arm64-darwin-22
arm64-darwin-23
x86_64-linux

DEPENDENCIES
activemodel
bson
bson_ext
bundler
codecov
dalli
ddtrace
delayed_job
Expand Down Expand Up @@ -284,6 +285,7 @@ DEPENDENCIES
rspec
rspec-collection_matchers
rspec-its
simplecov-cobertura
sinatra
sinatra-param (~> 1.4)
timecop (~> 0.9.5)
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require 'simplecov'
SimpleCov.start
if ENV['CI']=='true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

require File.join(File.dirname(__FILE__), '..', 'app')
Expand Down
Loading