From 22320b040e64d88ffde711db7bb3d9b3b4aa01f7 Mon Sep 17 00:00:00 2001 From: Alex Bit Date: Thu, 14 May 2026 01:17:04 -0700 Subject: [PATCH 1/3] chore: changeset for dd-trace v6 0.2.0 registry republish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add a minor bump for all nine dd-trace 5→6 packages (automation will set 0.2.0 on merge). - Remove obsolete issue-backlog section from CONTRIBUTING (issues/ no longer exists). Co-authored-by: Cursor --- .changeset/dd-trace-v6-0-2-0-registry.md | 13 +++++++++++++ CONTRIBUTING.md | 4 ---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .changeset/dd-trace-v6-0-2-0-registry.md diff --git a/.changeset/dd-trace-v6-0-2-0-registry.md b/.changeset/dd-trace-v6-0-2-0-registry.md new file mode 100644 index 0000000..c3ba64f --- /dev/null +++ b/.changeset/dd-trace-v6-0-2-0-registry.md @@ -0,0 +1,13 @@ +--- +'dd-trace-5-to-6-add-link-object-argument': minor +'dd-trace-5-to-6-flatten-ingestion-options': minor +'dd-trace-5-to-6-migration-recipe': minor +'dd-trace-5-to-6-move-experimental-appsec-options': minor +'dd-trace-5-to-6-move-experimental-iast-options': minor +'dd-trace-5-to-6-rename-b3-style': minor +'dd-trace-5-to-6-rename-plugin-list-options': minor +'dd-trace-5-to-6-rename-profiling-env-vars': minor +'dd-trace-5-to-6-rename-runtime-id-env-var': minor +--- + +Bump all dd-trace-js 5→6 codemods to **0.2.0** so they can be republished to the Codemod Registry after prior versions were unpublished. Release automation will run `version-packages` on merge. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d8adf88..9ca6842 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -122,7 +122,3 @@ Each codemod package should include: - `tests//metrics.json` when the transform records metrics Keep transformations atomic and verifiable with fixtures. - -## Issue backlog - -Draft issues live under [`issues/`](./issues/README.md). From f49640d02932480e4a8543f97bad3253adaae64c Mon Sep 17 00:00:00 2001 From: Alex Bit Date: Thu, 14 May 2026 01:19:04 -0700 Subject: [PATCH 2/3] ci: discover changeset files via .changeset/ pathspec Quoting '.changeset/*.md' passes a literal asterisk on Linux runners, so git diff listed no changeset files and the job falsely reported missing package coverage. Diff the directory and filter to non-README .md files instead. Co-authored-by: Cursor --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d676a89..8b0f9fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,7 +171,11 @@ jobs: exit 0 fi - changeset_files=$(git diff --name-only --diff-filter=ACMR origin/main...HEAD -- '.changeset/*.md' \ + # Resolve the whole `.changeset/` tree; a quoted `*.md` pathspec is treated + # literally on many Linux/Git combinations and matches nothing, producing + # false "missing changeset" failures when codemods/ did change. + changeset_files=$(git diff --name-only --diff-filter=ACMR origin/main...HEAD -- .changeset \ + | grep '\.md$' \ | grep -v 'README.md' \ || true) From 0d2d38eeb058a233c565e334b6ae7dfd90d05868 Mon Sep 17 00:00:00 2001 From: Alex Bit Date: Thu, 14 May 2026 01:22:14 -0700 Subject: [PATCH 3/3] ci: fix changeset-check set -e trap on empty codemod diff - After no codemods/ paths match, grep -v '^$' sees no lines and exits 1; with bash -e the job aborted before the 'changeset not required' early exit. - Use grep -Fxq (line match) instead of -w for hyphenated package names. Co-authored-by: Cursor --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b0f9fd..9b77ebd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,7 +142,9 @@ jobs: d=$parent done done - changed_dirs=$(printf '%s\n' "$changed_dirs" | sort -u | grep -v '^$') + # grep exits 1 when it filters down to zero lines; with `bash -e` that would + # abort before we can treat "no codemod dirs" as success (changeset-only PRs). + changed_dirs=$(printf '%s\n' "$changed_dirs" | sort -u | grep -v '^$' || true) if [ -z "$changed_dirs" ]; then echo "No codemod source files changed. Changeset not required." @@ -188,7 +190,8 @@ jobs: missing="" for pkg in $changed_packages; do - if ! echo "$covered_packages" | grep -qw "$pkg"; then + # Exact line match: `grep -w` is unreliable for hyphenated npm-style names on GNU grep. + if ! printf '%s\n' $covered_packages | grep -Fxq "$pkg"; then missing="$missing $pkg" fi done