From 4998f32346fc9bc1ccca5b43e0e8ccf300131e38 Mon Sep 17 00:00:00 2001 From: Aidan Daly Date: Thu, 16 Apr 2026 18:35:22 -0400 Subject: [PATCH 1/2] test: update asset snapshot for @aws/agentcore-cdk 0.1.0-alpha.19 Regenerates the CDK package.json snapshot to match the version bump landed in #852, which pinned @aws/agentcore-cdk to 0.1.0-alpha.19 in the vended CDK template but did not refresh the corresponding snapshot. --- src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap b/src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap index 405d6e6e..02b37a33 100644 --- a/src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +++ b/src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap @@ -357,7 +357,7 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/package.json should m "typescript": "~5.9.3" }, "dependencies": { - "@aws/agentcore-cdk": "0.1.0-alpha.18", + "@aws/agentcore-cdk": "0.1.0-alpha.19", "aws-cdk-lib": "^2.248.0", "constructs": "^10.0.0" } From 9f870fa753c6a4ac25120b2047ea173799ee5981 Mon Sep 17 00:00:00 2001 From: Aidan Daly Date: Thu, 16 Apr 2026 18:42:48 -0400 Subject: [PATCH 2/2] ci: auto-update asset snapshots during release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a step to the Release workflow that regenerates the CDK asset snapshot immediately after the @aws/agentcore-cdk version sync, so any version drift in src/assets/cdk/package.json is captured in the same release commit (picked up by the existing `git add -A` on line 162). Scoped to the `Assets Directory Snapshots` describe block via `-t` so only the one snapshot file that can drift from a CDK version bump runs — ~35s instead of a full ~65s unit-test run, and not blocked by unrelated tests that require `dist/cli/index.mjs` (e.g., dev.test.ts). Follow-up to #852 and #875, which had to manually regenerate this snapshot after the 0.1.0-alpha.18 → 0.1.0-alpha.19 pin landed. --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 712e7e4a..9f893c92 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,6 +88,9 @@ jobs: fi fi + - name: Update asset snapshots + run: npx vitest run --project unit --update -t "Assets Directory Snapshots" + - name: Get current version id: current run: |