From f202682e3f43982065ccd2b1ac83547073a93a48 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Wed, 6 May 2026 16:16:16 +0100 Subject: [PATCH] fix(cli-integ): release on every commit\n\nPreviously, the cli-integ package only released on commits matching\nthe conventional commits pattern for feat/fix. This meant dependency\nupdates and other changes labeled as 'chore' would not trigger a\nrelease, causing canary failures when the integ tests package was\nout of date. --- .projenrc.ts | 9 +++++++++ packages/@aws-cdk-testing/cli-integ/.projen/tasks.json | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.projenrc.ts b/.projenrc.ts index 8a64bf6f7..867227932 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -1556,6 +1556,15 @@ const cliInteg = configureProject( // integ tests. majorVersion: 3, + // For our integ tests we can just release anything, doesn't matter if it + // is a dependency update or something else. In fact we often incorrectly + // label changes updates as 'chore' and then our canaries start failing + // because we didn't release the integ tests package. + // + // Cannot be set to `ReleasableCommits.everyCommit()` because that would + // actually include very commit in the monorepo. + releasableCommits: pj.ReleasableCommits.exec('git log --no-merges --oneline $LATEST_TAG..HEAD -- .'), + srcdir: '.', libdir: '.', deps: [ diff --git a/packages/@aws-cdk-testing/cli-integ/.projen/tasks.json b/packages/@aws-cdk-testing/cli-integ/.projen/tasks.json index b820bb782..f5eb89dd2 100644 --- a/packages/@aws-cdk-testing/cli-integ/.projen/tasks.json +++ b/packages/@aws-cdk-testing/cli-integ/.projen/tasks.json @@ -33,7 +33,7 @@ "VERSIONRCOPTIONS": "{\"path\":\".\"}", "BUMP_PACKAGE": "commit-and-tag-version@^12", "NEXT_VERSION_COMMAND": "tsx ../../../projenrc/next-version.ts neverMajor maybeRc", - "RELEASABLE_COMMITS": "git log --no-merges --oneline $LATEST_TAG..HEAD -E --grep \"^(feat|fix){1}(\\([^()[:space:]]+\\))?(!)?:[[:blank:]]+.+\" -- .", + "RELEASABLE_COMMITS": "git log --no-merges --oneline $LATEST_TAG..HEAD -- .", "MAJOR": "3" }, "steps": [ @@ -202,7 +202,7 @@ "VERSIONRCOPTIONS": "{\"path\":\".\"}", "BUMP_PACKAGE": "commit-and-tag-version@^12", "NEXT_VERSION_COMMAND": "tsx ../../../projenrc/next-version.ts neverMajor maybeRc", - "RELEASABLE_COMMITS": "git log --no-merges --oneline $LATEST_TAG..HEAD -E --grep \"^(feat|fix){1}(\\([^()[:space:]]+\\))?(!)?:[[:blank:]]+.+\" -- ." + "RELEASABLE_COMMITS": "git log --no-merges --oneline $LATEST_TAG..HEAD -- ." }, "steps": [ {