Skip to content

Commit

Permalink
Merge pull request #15 from DataDog/anmarchenko/ci_vis_validate_git_tags
Browse files Browse the repository at this point in the history
[CIAPP-5371] validate git tags
  • Loading branch information
anmarchenko committed Sep 6, 2023
2 parents 4106401 + 0837f35 commit 562cbaf
Show file tree
Hide file tree
Showing 113 changed files with 3,472 additions and 662 deletions.
2 changes: 2 additions & 0 deletions lib/datadog/ci/configuration/components.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../flush"

module Datadog
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/configuration/settings.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../ext/settings"

module Datadog
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/cucumber/configuration/settings.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../ext"

require "datadog/tracing/contrib/configuration/settings"
Expand Down
18 changes: 10 additions & 8 deletions lib/datadog/ci/contrib/cucumber/ext.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# frozen_string_literal: true

module Datadog
module CI
module Contrib
module Cucumber
# Cucumber integration constants
# TODO: mark as `@public_api` when GA, to protect from resource and tag name changes.
module Ext
APP = "cucumber".freeze
ENV_ENABLED = "DD_TRACE_CUCUMBER_ENABLED".freeze
ENV_OPERATION_NAME = "DD_TRACE_CUCUMBER_OPERATION_NAME".freeze
FRAMEWORK = "cucumber".freeze
OPERATION_NAME = "cucumber.test".freeze
SERVICE_NAME = "cucumber".freeze
STEP_SPAN_TYPE = "step".freeze
TEST_TYPE = "test".freeze
APP = "cucumber"
ENV_ENABLED = "DD_TRACE_CUCUMBER_ENABLED"
ENV_OPERATION_NAME = "DD_TRACE_CUCUMBER_OPERATION_NAME"
FRAMEWORK = "cucumber"
OPERATION_NAME = "cucumber.test"
SERVICE_NAME = "cucumber"
STEP_SPAN_TYPE = "step"
TEST_TYPE = "test"
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/cucumber/formatter.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../../test"
require_relative "../../ext/app_types"
require_relative "../../ext/environment"
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/cucumber/instrumentation.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "formatter"

module Datadog
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/cucumber/integration.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "configuration/settings"
require_relative "patcher"

Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/cucumber/patcher.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "datadog/tracing/contrib/patcher"
require_relative "instrumentation"

Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/minitest/configuration/settings.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../ext"

require "datadog/tracing/contrib/configuration/settings"
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/minitest/ext.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Datadog
module CI
module Contrib
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/minitest/hooks.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Datadog
module CI
module Contrib
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/minitest/integration.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "configuration/settings"
require_relative "patcher"

Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/rspec/configuration/settings.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../ext"

require "datadog/tracing/contrib/configuration/settings"
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/rspec/example.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "../../test"

require_relative "../../ext/app_types"
Expand Down
16 changes: 9 additions & 7 deletions lib/datadog/ci/contrib/rspec/ext.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# frozen_string_literal: true

module Datadog
module CI
module Contrib
module RSpec
# RSpec integration constants
# TODO: mark as `@public_api` when GA, to protect from resource and tag name changes.
module Ext
APP = "rspec".freeze
ENV_ENABLED = "DD_TRACE_RSPEC_ENABLED".freeze
ENV_OPERATION_NAME = "DD_TRACE_RSPEC_OPERATION_NAME".freeze
FRAMEWORK = "rspec".freeze
OPERATION_NAME = "rspec.example".freeze
SERVICE_NAME = "rspec".freeze
TEST_TYPE = "test".freeze
APP = "rspec"
ENV_ENABLED = "DD_TRACE_RSPEC_ENABLED"
ENV_OPERATION_NAME = "DD_TRACE_RSPEC_OPERATION_NAME"
FRAMEWORK = "rspec"
OPERATION_NAME = "rspec.example"
SERVICE_NAME = "rspec"
TEST_TYPE = "test"
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/rspec/integration.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "datadog/tracing/contrib/integration"

require_relative "configuration/settings"
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog/ci/contrib/rspec/patcher.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "datadog/tracing/contrib/patcher"
require_relative "example"

Expand Down
4 changes: 3 additions & 1 deletion lib/datadog/ci/ext/app_types.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# frozen_string_literal: true

module Datadog
module CI
module Ext
module AppTypes
TYPE_TEST = "test".freeze
TYPE_TEST = "test"
end
end
end
Expand Down
Loading

0 comments on commit 562cbaf

Please sign in to comment.