Skip to content

Commit

Permalink
migrate Datadog Test Optimization setup to use the new datadog-ci gem
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Jan 3, 2025
1 parent 0a91af4 commit d520d92
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
env:
BUNDLE_WITHOUT: docs
DD_PROFILING_NO_EXTENSION: true
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
DD_ENV: prod
DD_API_KEY: ${{ secrets.DD_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
Expand Down Expand Up @@ -129,7 +132,7 @@ jobs:
with:
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
repositories: datadog-api-spec
repositories: datadog-api-spec
- name: Post status 3heck
uses: DataDog/github-actions/post-status-check@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gemspec
group :development, :test do
gem 'activesupport'
gem 'cucumber', '~> 9.1.1'
gem 'ddtrace', '>=1.0.0.beta1'
gem 'datadog-ci', '~> 1.11'
gem 'gem-release'
gem 'rake', '~> 13.0.1'
gem 'rspec-expectations'
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cucumber-messages,MIT,Aslak Hellesøy
cucumber-tag-expressions,MIT,"Andrea Nodari, Aslak Hellesøy"
cucumber-wire,MIT,Matt Wynne
datadog_api_client,Apache-2.0,"Datadog, Inc."
ddtrace,BSD-3-Clause,"Datadog, Inc."
datadog-ci,BSD-3-Clause,"Datadog, Inc."
diff-lcs,"Artistic-2.0,GPL-2.0+,MIT",Austin Ziegler
docile,MIT,Marc Siegel
e2mmap,BSD-2-Clause,Keiju ISHITSUKA
Expand Down
6 changes: 2 additions & 4 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@
require 'cgi'
require 'cucumber'
require 'datadog_api_client'
require 'ddtrace'
require 'datadog/ci'
require 'time'
require 'timecop'
require 'vcr'


Datadog.configure do |c|
c.time_now_provider = -> { Time.now_without_mock_time }
c.ci.enabled = true
c.ci.instrument :cucumber, operation_name: 'test'
c.ci.instrument :cucumber
c.tracing.instrument :http
end

Expand Down

0 comments on commit d520d92

Please sign in to comment.