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

migrate Datadog Test Optimization setup to use the new datadog-ci gem #2172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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
Loading