Skip to content
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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38219,6 +38219,10 @@ components:
Test runs are tagged with @test.test_management.attempt_to_fix_passed and @test.test_management.is_attempt_to_fix when the attempt to fix workflow is triggered.
example: I42TEO
type: string
broken_test:
description: Whether every non-skipped run of the test failed over the last 7 days.
example: false
type: boolean
codeowners:
description: The name of the test's code owners as inferred from the repository configuration.
example: ["@foo", "@bar"]
Expand Down
12 changes: 11 additions & 1 deletion lib/datadog_api_client/v2/models/flaky_test_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class FlakyTestAttributes
# Test runs are tagged with @test.test_management.attempt_to_fix_passed and @test.test_management.is_attempt_to_fix when the attempt to fix workflow is triggered.
attr_accessor :attempt_to_fix_id

# Whether every non-skipped run of the test failed over the last 7 days.
attr_accessor :broken_test

# The name of the test's code owners as inferred from the repository configuration.
attr_accessor :codeowners

Expand Down Expand Up @@ -103,6 +106,7 @@ class FlakyTestAttributes
def self.attribute_map
{
:'attempt_to_fix_id' => :'attempt_to_fix_id',
:'broken_test' => :'broken_test',
:'codeowners' => :'codeowners',
:'envs' => :'envs',
:'first_flaked_branch' => :'first_flaked_branch',
Expand Down Expand Up @@ -131,6 +135,7 @@ def self.attribute_map
def self.openapi_types
{
:'attempt_to_fix_id' => :'String',
:'broken_test' => :'Boolean',
:'codeowners' => :'Array<String>',
:'envs' => :'Array<String>',
:'first_flaked_branch' => :'String',
Expand Down Expand Up @@ -186,6 +191,10 @@ def initialize(attributes = {})
self.attempt_to_fix_id = attributes[:'attempt_to_fix_id']
end

if attributes.key?(:'broken_test')
self.broken_test = attributes[:'broken_test']
end

if attributes.key?(:'codeowners')
if (value = attributes[:'codeowners']).is_a?(Array)
self.codeowners = value
Expand Down Expand Up @@ -324,6 +333,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
attempt_to_fix_id == o.attempt_to_fix_id &&
broken_test == o.broken_test &&
codeowners == o.codeowners &&
envs == o.envs &&
first_flaked_branch == o.first_flaked_branch &&
Expand Down Expand Up @@ -351,7 +361,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[attempt_to_fix_id, codeowners, envs, first_flaked_branch, first_flaked_sha, first_flaked_ts, flaky_category, flaky_state, history, impact_level, impact_score, last_flaked_branch, last_flaked_sha, last_flaked_ts, _module, name, pipeline_stats, services, suite, test_run_metadata, test_stats, additional_properties].hash
[attempt_to_fix_id, broken_test, codeowners, envs, first_flaked_branch, first_flaked_sha, first_flaked_ts, flaky_category, flaky_state, history, impact_level, impact_score, last_flaked_branch, last_flaked_sha, last_flaked_ts, _module, name, pipeline_stats, services, suite, test_run_metadata, test_stats, additional_properties].hash
end
end
end
Loading