Repository navigation
chore: repair main's changeset, sink-guard and unit-test checks - #1701
Merged
Merged
Conversation
…-header-case The changeset from #1565 still named @aws-blocks/core and @aws-blocks/blocks, which left the workspace in #1627. `changeset status` and `changeset version` stop on an unknown package, so Require changeset failed on every PR and the release job could not version. It now names @aws-cdk-blocks/core and the unscoped umbrella aws-cdk-blocks, with the same patch bumps and text.
…page #1691 added renderLocalDashboard, whose page interpolates `metrics`. Every part of it is escaped or constant markup: per metrics source it is `<h3>${escapeHtml(namespace)}</h3><ul>${names}</ul>` or '', and `names` joins `<li><code>${escapeHtml(name)}</code></li>`. The guard checks both templates on their own (dropping either escapeHtml call flags line 12 or 13). It flags line 25 only because it follows `.map()` callbacks with an expression body, and this callback has a block body. The entry records that.
Three tests hard-coded byte budgets that assumed a five-character core version. With CORE_VERSION at 1.0.0-rc.0, `aws-blocks/<core>` is 21 bytes, so the expected `... bb/KnowledgeBase/1.2.3 ...` chain is 66 bytes and cannot fit in 63, the 20-byte budget no longer admits the origin, and the 50-character precondition no longer holds. formatUserAgentString itself is unchanged: it keeps the origin and the leaf whole and drops parents to fit, which is what it did here. With dist/version.js set back to 0.8.0 the old tests pass again. - The outer parent is Auth, which fits beside the origin for a core version of up to 16 characters. - The origin test uses a budget of exactly the origin's length. - The bytes test uses a budget of the string's length in characters.
#1630 changed the probe's outgoing user agent fixture to `aws-sdk-js/3.700.0 cdk-blocks/0.5.0`, and #1565, merged after it, added three tests that still expected `aws-blocks/0.5.0`. The handler passes the fixture through unchanged, so the three expectations now name cdk-blocks like the four tests above them.
#1694 renamed the docs bullet in resources/AGENTS.md to "AWS CDK Blocks docs" and "AWS CDK Blocks APIs". The test still looked for the old bullet and found none. It now looks for the bullet as the file has it.
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 20:46 — with
GitHub Actions
Inactive
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 20:46 — with
GitHub Actions
Inactive
pranavosu
had a problem deploying
to
agent-bench
November 19, 2026 20:46 — with
GitHub Actions
Error
pranavosu
had a problem deploying
to
agent-bench
November 19, 2026 20:46 — with
GitHub Actions
Error
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 21:39 — with
GitHub Actions
Inactive
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 21:39 — with
GitHub Actions
Inactive
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 21:39 — with
GitHub Actions
Inactive
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 21:39 — with
GitHub Actions
Inactive
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 21:39 — with
GitHub Actions
Inactive
svidgen
approved these changes
Nov 19, 2026
pranavosu
temporarily deployed
to
agent-bench
November 19, 2026 22:28 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
mainat 6b1086b fails its own checks, so no PR can go green and the release job cannot version packages for 1.0.0-rc.1. This PR makes the non-E2E checks and the Telemetry E2E expectations pass again. Each failure comes from two changes that merged out of order around the package rename and the rc version.What changed
.changeset/core-client-user-agent-header-case.md(fix(core): read x-blocks-user-agent in any letter case in the Lambda handler #1565) named@aws-blocks/coreand@aws-blocks/blocks, which chore: rename packages to @aws-cdk-blocks, umbrella to unscoped aws-cdk-blocks #1627 renamed. It now names@aws-cdk-blocks/coreandaws-cdk-blocks, with the same bumps and text.changeset status, Require changeset and the Release job stopped on the unknown package.scripts/publish/publish.ts107 to 110 (chore: rename packages to @aws-cdk-blocks, umbrella to unscoped aws-cdk-blocks #1627) andpackages/core/src/raw-route.ts444 to 443 (feat!: serve the framework URL prefix at /cdk-blocks/, keep /aws-blocks/ as a legacy alias #1656).${metrics}on the local dashboard page (fix(dashboard): run locally without credentials or a deployment #1691) is allowlisted. It joins<h3>${escapeHtml(namespace)}</h3><ul>${names}</ul>per source, andnamesjoins<li><code>${escapeHtml(name)}</code></li>. The guard checks both templates on their own. It flags the join only because the.map()callback has a block body.packages/core: threeformatUserAgentStringtests hard-coded budgets that assumed a five-character core version. At1.0.0-rc.0theaws-blocks/<core>token is 21 bytes. The method keeps the origin and the leaf whole and drops parents to fit, as designed. The tests now size their budgets for any core version.packages/core: threelambda-handlertests from fix(core): read x-blocks-user-agent in any letter case in the Lambda handler #1565 expectedaws-blocks/0.5.0, but refactor!: rename the scaffolded backend folder to cdk-blocks #1630 had changed the probe fixture tocdk-blocks/0.5.0.packages/create-blocks-app:docs-pointers.test.tslooks for the bullet as docs: rename AWS Blocks to AWS CDK Blocks in AGENTS.md files #1694 renamed it, "AWS CDK Blocks docs".test-apps/telemetry: two sandbox lifecycle cases in the Telemetry E2E expected the eventsandbox. The app's script callsstartSandbox({ deployOnly: true }), which reportssandbox:deploysince feat(cli): send a usage event for every command #1690. The cases and the README now use that name.Scope
Test files, sink-guard allowlists and one changeset's frontmatter. No package source changes, so no new changeset.
Tradeoffs
The dashboard site gets an allowlist entry. Teaching the shared detector to follow block-bodied
.map()callbacks would also clear it, but it changes the guard for every file.Blast Radius
No shipped code changes. The renamed changeset entries add a core and umbrella patch to the next release, which #1565 already intended.
Verification
Before and after output, and the probes below: evidence comment.
npx changeset statusexits 0 and lists the bumps. Before, it exited 1 on the unknown package.scripts/sink-guards/*.test.mjspasses. Before,shell,regexandhtmlfailed.changeset versionin a throwaway worktree bumps the packages to1.0.0-rc.1.dist/version.jsset back to0.8.0, the oldformatUserAgentStringtests pass, and at1.0.0-rc.0they fail, with the product code unchanged.npm run build,npm run lint,npm run lint:deps,npm testand the Local Build and Checks steps pass, apart from tests that depend on the macOS shell (listed in the evidence comment).