From a0c62807524eef0ac984770a4d2d1eface23d6bd Mon Sep 17 00:00:00 2001 From: corentin Date: Fri, 2 Jan 2026 17:48:26 +0100 Subject: [PATCH 1/6] Fix typo everywhere --- packages/datadog-ci/src/commands/elf-symbols/renderer.ts | 2 +- .../datadog-ci/src/commands/flutter-symbols/renderer.ts | 2 +- packages/datadog-ci/src/commands/pe-symbols/renderer.ts | 2 +- packages/datadog-ci/src/commands/react-native/renderer.ts | 6 +++--- packages/datadog-ci/src/commands/sourcemaps/renderer.ts | 2 +- packages/datadog-ci/src/commands/unity-symbols/renderer.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/datadog-ci/src/commands/elf-symbols/renderer.ts b/packages/datadog-ci/src/commands/elf-symbols/renderer.ts index b6d732776..6a3770013 100644 --- a/packages/datadog-ci/src/commands/elf-symbols/renderer.ts +++ b/packages/datadog-ci/src/commands/elf-symbols/renderer.ts @@ -75,7 +75,7 @@ export const renderMissingBuildId = (path: string) => chalk.red(`${ICONS.FAILED} Error: Invalid or missing 'build_id' file. Expected at path ${path}`) export const renderGitWarning = (errorMessage: string) => - chalk.yellow(`${ICONS.WARNING} An error occured while invoking git: ${errorMessage} + chalk.yellow(`${ICONS.WARNING} An error occurred while invoking git: ${errorMessage} Make sure the command is running within your git repository to fully leverage Datadog's git integration. To ignore this warning use the --disable-git flag.\n`) diff --git a/packages/datadog-ci/src/commands/flutter-symbols/renderer.ts b/packages/datadog-ci/src/commands/flutter-symbols/renderer.ts index 83874b23f..7879d6b90 100644 --- a/packages/datadog-ci/src/commands/flutter-symbols/renderer.ts +++ b/packages/datadog-ci/src/commands/flutter-symbols/renderer.ts @@ -84,7 +84,7 @@ export const renderCommandSummary = (statuses: UploadStatus[], duration: number, } export const renderGitWarning = (errorMessage: string) => - chalk.yellow(`${ICONS.WARNING} An error occured while invoking git: ${errorMessage} + chalk.yellow(`${ICONS.WARNING} An error occurred while invoking git: ${errorMessage} Make sure the command is running within your git repository to fully leverage Datadog's git integration. To ignore this warning use the --disable-git flag.\n`) diff --git a/packages/datadog-ci/src/commands/pe-symbols/renderer.ts b/packages/datadog-ci/src/commands/pe-symbols/renderer.ts index 7648fe240..eaaa205da 100644 --- a/packages/datadog-ci/src/commands/pe-symbols/renderer.ts +++ b/packages/datadog-ci/src/commands/pe-symbols/renderer.ts @@ -77,7 +77,7 @@ export const renderMissingPdbFile = (pdbFilename: string, dllPath: string) => chalk.yellow(`${ICONS.WARNING} Error: Missing '${pdbFilename}' file expected for ${dllPath}`) export const renderGitWarning = (errorMessage: string) => - chalk.yellow(`${ICONS.WARNING} An error occured while invoking git: ${errorMessage} + chalk.yellow(`${ICONS.WARNING} An error occurred while invoking git: ${errorMessage} Make sure the command is running within your git repository to fully leverage Datadog's git integration. To ignore this warning use the --disable-git flag.\n`) diff --git a/packages/datadog-ci/src/commands/react-native/renderer.ts b/packages/datadog-ci/src/commands/react-native/renderer.ts index e3c27218a..ac6b8b973 100644 --- a/packages/datadog-ci/src/commands/react-native/renderer.ts +++ b/packages/datadog-ci/src/commands/react-native/renderer.ts @@ -6,7 +6,7 @@ import chalk from 'chalk' import {RNSourcemap} from './interfaces' export const renderGitWarning = (errorMessage: string) => - chalk.yellow(`${ICONS.WARNING} An error occured while invoking git: ${errorMessage} + chalk.yellow(`${ICONS.WARNING} An error occurred while invoking git: ${errorMessage} Make sure the command is running within your git repository to fully leverage Datadog's git integration. To ignore this warning use the --disable-git flag.\n`) @@ -43,12 +43,12 @@ export const renderRemoveSourcesContentWarning = () => )}` export const renderFailedSourcesContentRemovalError = (payload: RNSourcemap, errorMessage: string) => `${chalk.red( - `An error occured while removing the "sourcesContent" part of the sourcemap file ${payload.sourcemapPath}": ${errorMessage}` + `An error occurred while removing the "sourcesContent" part of the sourcemap file ${payload.sourcemapPath}": ${errorMessage}` )}. Trying to upload the full sourcemap with the "sourcesContent".` /** - * As of now, this command takes an array of one signe UploadStatus element since we only support upload + * As of now, this command takes an array of one single UploadStatus element since we only support upload * of a single sourcemap. * We considered it was preferable to leave it this way so it's ready for multiple sourcemaps uploads, * rather than investing into adapting it for this purpose. diff --git a/packages/datadog-ci/src/commands/sourcemaps/renderer.ts b/packages/datadog-ci/src/commands/sourcemaps/renderer.ts index 09aaf1e1f..ed1edf1db 100644 --- a/packages/datadog-ci/src/commands/sourcemaps/renderer.ts +++ b/packages/datadog-ci/src/commands/sourcemaps/renderer.ts @@ -6,7 +6,7 @@ import chalk from 'chalk' import {Sourcemap} from './interfaces' export const renderGitWarning = (errorMessage: string) => - chalk.yellow(`${ICONS.WARNING} An error occured while invoking git: ${errorMessage} + chalk.yellow(`${ICONS.WARNING} An error occurred while invoking git: ${errorMessage} Make sure the command is running within your git repository to fully leverage Datadog's git integration. To ignore this warning use the --disable-git flag.\n`) diff --git a/packages/datadog-ci/src/commands/unity-symbols/renderer.ts b/packages/datadog-ci/src/commands/unity-symbols/renderer.ts index e916a7d49..acf0eae77 100644 --- a/packages/datadog-ci/src/commands/unity-symbols/renderer.ts +++ b/packages/datadog-ci/src/commands/unity-symbols/renderer.ts @@ -81,7 +81,7 @@ export const renderMissingBuildId = (path: string) => chalk.red(`${ICONS.FAILED} Error: Invalid or missing 'build_id' file. Expected at path ${path}\n`) export const renderGitWarning = (errorMessage: string) => - chalk.yellow(`${ICONS.WARNING} An error occured while invoking git: ${errorMessage} + chalk.yellow(`${ICONS.WARNING} An error occurred while invoking git: ${errorMessage} Make sure the command is running within your git repository to fully leverage Datadog's git integration. To ignore this warning use the --disable-git flag.\n`) From d8e822fb9f67d6324c8b3eb52cb79828e9b5f166 Mon Sep 17 00:00:00 2001 From: corentin Date: Fri, 2 Jan 2026 17:59:37 +0100 Subject: [PATCH 2/6] Align `--disable-git` description in readme --- packages/datadog-ci/src/commands/sourcemaps/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/datadog-ci/src/commands/sourcemaps/README.md b/packages/datadog-ci/src/commands/sourcemaps/README.md index 62e9ccf51..da08705f1 100644 --- a/packages/datadog-ci/src/commands/sourcemaps/README.md +++ b/packages/datadog-ci/src/commands/sourcemaps/README.md @@ -41,7 +41,7 @@ Example: if you're uploading `dist/file.js` to `https://example.com/static/file. In addition, some optional parameters are available: * `--max-concurrency` (default: `20`): number of concurrent upload to the API. -* `--disable-git` (default: false): prevents the command from invoking git in the current working directory and sending repository related data to Datadog (hash, remote URL and the paths within the repository of the sources referenced in the sourcemap). +* `--disable-git` (default: false): prevents the command from invoking git in the current working directory and sending repository-related data to Datadog (such as the hash, remote URL, and paths within the repository of sources referenced in the source map). * `--quiet` (default: false): suppresses individual line output for each upload. Success and error logs are never suppressed. * `--dry-run` (default: `false`): it will run the command without the final step of upload. All other checks are performed. * `--project-path` (default: empty): the path of the project where the sourcemaps were built. This will be stripped off from sources paths referenced in the sourcemap so they can be properly matched against tracked files paths. See details in the [dedicated section](#setting-the-project-path). From a4f7c38db4db174fa81d2e8073bb7ae511180843 Mon Sep 17 00:00:00 2001 From: corentin Date: Fri, 2 Jan 2026 18:13:56 +0100 Subject: [PATCH 3/6] Add sentence in readme --- packages/datadog-ci/src/commands/sourcemaps/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/datadog-ci/src/commands/sourcemaps/README.md b/packages/datadog-ci/src/commands/sourcemaps/README.md index da08705f1..c0a12b57f 100644 --- a/packages/datadog-ci/src/commands/sourcemaps/README.md +++ b/packages/datadog-ci/src/commands/sourcemaps/README.md @@ -59,6 +59,8 @@ When these requirements are met, the upload command reports Git information such - for each sourcemap, the list of file paths that are tracked in the repository. Only tracked file paths that could be related to a sourcemap are gathered. For example, for a sourcemap referencing `["webpack:///./src/folder/example.ts"]` inside its `sources` attribute, the command will gather all file paths with `example.ts` as filename. +When those requirements are not met (or `--disable-git` is set), your errors are displayed in Datadog with a minified stack trace and no context. See [Troubleshoot errors with ease][2]. + #### Override repository URL The repository URL is inferred @@ -121,3 +123,4 @@ Additional helpful documentation, links, and articles: - [Learn about Uploading JavaScript Source Maps][1] [1]: https://docs.datadoghq.com/real_user_monitoring/guide/upload-javascript-source-maps/ +[2]: https://docs.datadoghq.com/real_user_monitoring/guide/upload-javascript-source-maps/#troubleshoot-errors-with-ease \ No newline at end of file From e10f8529c8043a7d1dd79444ed868c8ac5a4f437 Mon Sep 17 00:00:00 2001 From: corentin Date: Fri, 2 Jan 2026 18:16:36 +0100 Subject: [PATCH 4/6] Align with rest of the file --- packages/datadog-ci/src/commands/sourcemaps/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/datadog-ci/src/commands/sourcemaps/README.md b/packages/datadog-ci/src/commands/sourcemaps/README.md index c0a12b57f..4db0943ca 100644 --- a/packages/datadog-ci/src/commands/sourcemaps/README.md +++ b/packages/datadog-ci/src/commands/sourcemaps/README.md @@ -41,7 +41,7 @@ Example: if you're uploading `dist/file.js` to `https://example.com/static/file. In addition, some optional parameters are available: * `--max-concurrency` (default: `20`): number of concurrent upload to the API. -* `--disable-git` (default: false): prevents the command from invoking git in the current working directory and sending repository-related data to Datadog (such as the hash, remote URL, and paths within the repository of sources referenced in the source map). +* `--disable-git` (default: false): prevents the command from invoking git in the current working directory and sending repository-related data to Datadog (such as the hash, remote URL, and paths within the repository of sources referenced in the sourcemap). * `--quiet` (default: false): suppresses individual line output for each upload. Success and error logs are never suppressed. * `--dry-run` (default: `false`): it will run the command without the final step of upload. All other checks are performed. * `--project-path` (default: empty): the path of the project where the sourcemaps were built. This will be stripped off from sources paths referenced in the sourcemap so they can be properly matched against tracked files paths. See details in the [dedicated section](#setting-the-project-path). From 17eaabd8b5ba5ddc361406177c5406e5f987d758 Mon Sep 17 00:00:00 2001 From: Corentin Girard Date: Mon, 5 Jan 2026 14:52:24 +0100 Subject: [PATCH 5/6] Replace wrong sentence --- packages/datadog-ci/src/commands/sourcemaps/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/datadog-ci/src/commands/sourcemaps/README.md b/packages/datadog-ci/src/commands/sourcemaps/README.md index 4db0943ca..fb3c950fd 100644 --- a/packages/datadog-ci/src/commands/sourcemaps/README.md +++ b/packages/datadog-ci/src/commands/sourcemaps/README.md @@ -49,9 +49,10 @@ In addition, some optional parameters are available: ### Link errors with your source code -Errors in Datadog UI can be enriched with links to GitHub/GitLab/Bitbucket/Azure DevOps if these requirements are met: +Errors in Datadog UI can be enriched with direct links to your repository if these requirements are met: - `git` executable is installed - `datadog-ci` is run within the git repository +- `--disable-git` is not set When these requirements are met, the upload command reports Git information such as: - the current commit hash @@ -59,8 +60,6 @@ When these requirements are met, the upload command reports Git information such - for each sourcemap, the list of file paths that are tracked in the repository. Only tracked file paths that could be related to a sourcemap are gathered. For example, for a sourcemap referencing `["webpack:///./src/folder/example.ts"]` inside its `sources` attribute, the command will gather all file paths with `example.ts` as filename. -When those requirements are not met (or `--disable-git` is set), your errors are displayed in Datadog with a minified stack trace and no context. See [Troubleshoot errors with ease][2]. - #### Override repository URL The repository URL is inferred From a4d3fecaaa85d3365f58e345f858eb61fef47033 Mon Sep 17 00:00:00 2001 From: Corentin Girard Date: Mon, 5 Jan 2026 14:54:04 +0100 Subject: [PATCH 6/6] Remove unused link --- packages/datadog-ci/src/commands/sourcemaps/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/datadog-ci/src/commands/sourcemaps/README.md b/packages/datadog-ci/src/commands/sourcemaps/README.md index fb3c950fd..6a7652354 100644 --- a/packages/datadog-ci/src/commands/sourcemaps/README.md +++ b/packages/datadog-ci/src/commands/sourcemaps/README.md @@ -121,5 +121,4 @@ Additional helpful documentation, links, and articles: - [Learn about Uploading JavaScript Source Maps][1] -[1]: https://docs.datadoghq.com/real_user_monitoring/guide/upload-javascript-source-maps/ -[2]: https://docs.datadoghq.com/real_user_monitoring/guide/upload-javascript-source-maps/#troubleshoot-errors-with-ease \ No newline at end of file +[1]: https://docs.datadoghq.com/real_user_monitoring/guide/upload-javascript-source-maps/ \ No newline at end of file