bvolpato commented on code in PR #40780:
URL: https://github.com/apache/beam/pull/40780#discussion_r4449680978
##########
sdks/go/test/integration/integration.go:
##########
@@ -362,3 +359,30 @@ func CheckFilters(t *testing.T) {
}
}
}
+
+// dataflowJobName keeps the test name readable while adding enough random
+// suffix bits to avoid collisions between concurrent integration runs.
+func dataflowJobName(testName string, id uuid.UUID) string {
+ const (
+ maxLength = 40
+ prefix = "go-"
+ suffixSize = 18 // 66 random bits from a UUIDv4.
+ )
+
+ readableName := strings.ToLower(testName)
Review Comment:
Done in 102958b7a2, using `n`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]