Skip to content

Commit 59d7f4e

Browse files
Limit the number of verified tag vectors in CI Visibility metric tests (#9905)
1 parent 8db72c0 commit 59d7f4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dd-java-agent/agent-ci-visibility/src/test/groovy/datadog/trace/civisibility/telemetry/CiVisibilityMetricCollectorTest.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ class CiVisibilityMetricCollectorTest extends Specification {
149149
}
150150

151151
/**
152-
* This test enumerates all possible metric+tags variants,
153-
* then tries submitting all possible variant pairs (combinations of 2 different metric+tags).
152+
* This test enumerates a few different tag combinations for every metric,
153+
* then submits a metric count for each one.
154154
* The goal is to ensure that index calculation logic and card-marking are done right.
155155
*/
156-
def "test submission of all possible count metric pairs"() {
156+
def "test submission of different count metric pairs"() {
157157
setup:
158158
List<PossibleMetric> possibleMetrics = []
159159

160160
for (CiVisibilityCountMetric metric : CiVisibilityCountMetric.values()) {
161161
def metricTags = metric.getTags()
162162

163-
int cartesianProductSizeLimit = 2000 // limiting the number of combinations to avoid OOM/timeout
163+
int cartesianProductSizeLimit = 20 // limiting the number of combinations to avoid OOM/timeout
164164
for (TagValue[] tags : cartesianProduct(metricTags, cartesianProductSizeLimit)) { // iterate over combinations of metric tags
165165
possibleMetrics += new PossibleMetric(metric, tags)
166166
}

0 commit comments

Comments
 (0)