Use unqualified test name as test ID since the full package makes the datadog metrics overly verbose

This commit is contained in:
David Dworken 2023-10-22 20:57:21 -07:00
parent 982f7b5f02
commit ff79707ccf
No known key found for this signature in database

View File

@ -63,7 +63,7 @@ func main() {
type eventHandler struct{}
func (eventHandler) Event(event testjson.TestEvent, execution *testjson.Execution) error {
testIdentifier := fmt.Sprintf("%s#%s", event.Package, event.Test)
testIdentifier := event.Test
if event.Action == testjson.ActionFail {
GLOBAL_STATSD.Incr("test_status", []string{"result:failed", "test:" + testIdentifier, "os:" + runtime.GOOS}, 1.0)
NUM_TEST_RETRIES[testIdentifier] += 1