Skip to content

chore: repair main's changeset, sink-guard and unit-test checks - #1701

Merged
pranavosu merged 7 commits into
mainfrom
fix/main-checks
Nov 19, 2026
Merged

pranavosu merged 7 commits into
mainfrom
fix/main-checks

Conversation

@pranavosu

@pranavosu pranavosu commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Why

main at 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

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 status exits 0 and lists the bumps. Before, it exited 1 on the unknown package.
  • Every scripts/sink-guards/*.test.mjs passes. Before, shell, regex and html failed.
  • changeset version in a throwaway worktree bumps the packages to 1.0.0-rc.1.
  • With dist/version.js set back to 0.8.0, the old formatUserAgentString tests pass, and at 1.0.0-rc.0 they fail, with the product code unchanged.
  • CI on this PR: Require changeset, Local Build and Checks, Local E2E and all three Local Unit Tests shards pass.
  • Locally: npm run build, npm run lint, npm run lint:deps, npm test and the Local Build and Checks steps pass, apart from tests that depend on the macOS shell (listed in the evidence comment).

…-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.
…s moved to

The packDir execSync in scripts/publish/publish.ts moved from line 107 to 110
in #1627, and new RegExp(fullPattern) in packages/core/src/raw-route.ts from
line 444 to 443 in #1656. Each entry follows its site; the code and the
reasons are unchanged.
…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
pranavosu requested a review from a team as a code owner November 19, 2026 20:34
@pranavosu
pranavosu merged commit d0b23ee into main Nov 19, 2026
99 of 101 checks passed
@pranavosu
pranavosu deleted the fix/main-checks branch November 19, 2026 23:58

This branch was previously deployed

2 inactive deployments
e2e — 0e82cbdb Deployed Nov 19, 2026 by pranavosu via E2E Teardown Verify #7513
agent-bench — 0e82cbdb Deployed Nov 19, 2026 by pranavosu via bench / summary #6543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants