Skip to content

Commit d520d92

Browse files
committed
migrate Datadog Test Optimization setup to use the new datadog-ci gem
1 parent 0a91af4 commit d520d92

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
env:
8585
BUNDLE_WITHOUT: docs
8686
DD_PROFILING_NO_EXTENSION: true
87+
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
88+
DD_ENV: prod
89+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
8790
steps:
8891
- uses: actions/checkout@v3
8992
- name: Set up Ruby ${{ matrix.ruby-version }}
@@ -129,7 +132,7 @@ jobs:
129132
with:
130133
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
131134
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
132-
repositories: datadog-api-spec
135+
repositories: datadog-api-spec
133136
- name: Post status 3heck
134137
uses: DataDog/github-actions/post-status-check@v2
135138
with:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gemspec
77
group :development, :test do
88
gem 'activesupport'
99
gem 'cucumber', '~> 9.1.1'
10-
gem 'ddtrace', '>=1.0.0.beta1'
10+
gem 'datadog-ci', '~> 1.11'
1111
gem 'gem-release'
1212
gem 'rake', '~> 13.0.1'
1313
gem 'rspec-expectations'

LICENSE-3rdparty.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cucumber-messages,MIT,Aslak Hellesøy
2020
cucumber-tag-expressions,MIT,"Andrea Nodari, Aslak Hellesøy"
2121
cucumber-wire,MIT,Matt Wynne
2222
datadog_api_client,Apache-2.0,"Datadog, Inc."
23-
ddtrace,BSD-3-Clause,"Datadog, Inc."
23+
datadog-ci,BSD-3-Clause,"Datadog, Inc."
2424
diff-lcs,"Artistic-2.0,GPL-2.0+,MIT",Austin Ziegler
2525
docile,MIT,Marc Siegel
2626
e2mmap,BSD-2-Clause,Keiju ISHITSUKA

features/support/env.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99
require 'cgi'
1010
require 'cucumber'
1111
require 'datadog_api_client'
12-
require 'ddtrace'
12+
require 'datadog/ci'
1313
require 'time'
1414
require 'timecop'
1515
require 'vcr'
1616

17-
1817
Datadog.configure do |c|
19-
c.time_now_provider = -> { Time.now_without_mock_time }
2018
c.ci.enabled = true
21-
c.ci.instrument :cucumber, operation_name: 'test'
19+
c.ci.instrument :cucumber
2220
c.tracing.instrument :http
2321
end
2422

0 commit comments

Comments
 (0)