MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / normalizeJobName

Function normalizeJobName

scripts/report-ci-failures.mjs:30–35  ·  view source on GitHub ↗

* Collapse matrix variants of a job name so the same test failing across the matrix dedupes to a * single issue instead of one per node/TS version. We strip only version-like parenthetical groups * — a bare number (e.g. node version) or a `TS x.y` bracket — leaving other parentheticals (e.g. * `(

(name)

Source from the content-addressed store, hash-verified

28 * "Node (24) (TS 3.8) Integration Tests" -> "Node Integration Tests"
29 */
30function normalizeJobName(name) {
31 return name
32 .replace(/\(\s*(?:\d+|TS\s+[\d.]+)\s*\)/gi, ' ')
33 .replace(/\s+/g, ' ')
34 .trim();
35}
36
37/**
38 * Collapse esm/cjs variants of a test name so the same test failing in both module formats dedupes

Callers 1

runFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected