{
  "slug": "datadog-ci-sourcemaps-upload-reads-sourcemappingurl-values-47fb12c4d960",
  "title": "datadog-ci sourcemaps upload reads sourceMappingURL values",
  "tools": [
    "datadog-ci"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-08T15:25:59.000Z",
  "announced_at": "2026-01-08T15:25:59.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When minified JavaScript files in the directory use `sourceMappingURL` values instead of the legacy filename pattern, run `sourcemaps upload` on that directory; it uses those values to locate sourcemaps. Set the required service, release version, and minified path prefix, and provide a Datadog API key.",
    "examples": [
      "datadog-ci sourcemaps upload <directory> --service <service> --minified-path-prefix <URL-or-absolute-path> --release-version <version>"
    ],
    "gotchas": [
      "Version: v5.2.0",
      "<directory> (required): Directory containing sourcemaps; searched recursively.",
      "--service <service> (required): Service name used to match the RUM SDK `service` tag.",
      "--release-version <version> (required): Version used to match the RUM SDK `version` tag.",
      "--minified-path-prefix <URL-or-absolute-path> (required): Common URL or absolute-path prefix for the served JavaScript files.",
      "Prerequisite: Set `DD_API_KEY` or `DATADOG_API_KEY` in the environment.",
      "Looks at the last non-empty lines of minified JS files in the given directory."
    ]
  },
  "why_it_matters": "Upload source maps for minified JavaScript files in a directory when their map filenames do not follow the previous hardcoded naming pattern.",
  "before": "The mapping was hardcoded: `foo.min.js` → `foo.map.js`.",
  "sources": [
    "https://github.com/DataDog/datadog-ci/releases/tag/v5.2.0",
    "https://github.com/DataDog/datadog-ci/pull/2035",
    "https://github.com/DataDog/datadog-ci/pull/2048",
    "https://github.com/DataDog/datadog-ci/blob/v5.2.0/packages/datadog-ci/src/commands/sourcemaps/README.md"
  ],
  "rank": 0.95024,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-3c3cb72010c49040-0:gate",
    "evidence_hash": "504024ae61c88b2cba1a51084b0817abdccb016435ee570649b9cc225f3cee7b"
  },
  "review": {
    "draft_hash": "b84ead82ead4967b66518da406a3188af6bb1ab6e1c9322578fb9a0248a151dd",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.66 (>= 0.6 needed)."
  }
}
