-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from DataDog/anmarchenko/upgrade_guide_1.0
[CIVIS-2985] upgrade guide for 1.0
- Loading branch information
Showing
2 changed files
with
88 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Upgrading from ddtrace 1.x to datadog-ci | ||
|
||
[Test visibility for Ruby](https://docs.datadoghq.com/tests/setup/ruby/) is no longer part of `datadog` gem and fully migrated to | ||
`datadog-ci` gem. To continue using it after gem `datadog` v2.0 is released, do these changes. | ||
|
||
## Add datadog-ci to your gemfile | ||
|
||
Before: | ||
|
||
```ruby | ||
gem "ddtrace", "~> 1.0" | ||
``` | ||
|
||
After: | ||
|
||
```ruby | ||
group :test do | ||
gem "datadog-ci", "~> 1.0" | ||
end | ||
``` | ||
|
||
Or if you use other Datadog products: | ||
|
||
```ruby | ||
gem "datadog", "~> 2.0" | ||
|
||
group :test do | ||
gem "datadog-ci", "~> 1.0" | ||
end | ||
``` | ||
|
||
## Change WebMock or VCR configuration | ||
|
||
New test visibility features (such as [intelligent test runner](https://docs.datadoghq.com/intelligent_test_runner/), git metadata upload, [code coverage support](https://docs.datadoghq.com/tests/code_coverage)) require some DataDog endpoints to be allowlisted by WebMock/VCR tools when using agentless mode. | ||
|
||
For WebMock allow all requests that match datadoghq: | ||
|
||
```ruby | ||
WebMock.disable_net_connect!(:allow => /datadoghq/) | ||
``` | ||
|
||
For VCR provide `ignore_request` configuration: | ||
|
||
```ruby | ||
VCR.configure do |config| | ||
config.ignore_request do |request| | ||
# ignore all requests to datadoghq hosts | ||
request.uri =~ /datadoghq/ | ||
end | ||
end | ||
``` |