Repository navigation
docs: correct stale cdk-blocks rename references and a removed telemetry opt-out - #1689
Draft
VarshithaPamisetty wants to merge 1 commit into
Draft
VarshithaPamisetty wants to merge 1 commit into
VarshithaPamisetty wants to merge 1 commit into
Conversation
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:18 — with
GitHub Actions
Error
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 16:18 — with
GitHub Actions
Inactive
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Failure
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Failure
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Failure
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Failure
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Failure
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Failure
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Failure
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:21 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 16:30 — with
GitHub Actions
Error
VarshithaPamisetty
force-pushed
the
docs/cdk-blocks-sweep
branch
from
November 19, 2026 16:54
5804fe5 to
da6c7ee
Compare
…try opt-out Five doc lines that the recent renames left false. `docs/guides/upgrading-older-apps.md` - The symptom table offered `Cannot find module 'aws-blocks'` for an un-migrated app. That is the symptom of a HALF-FINISHED rename, not of an un-migrated one: with the folder still `aws-blocks/` and the workspace symlink in place, the app typechecks clean. The row now names what such an app actually reports, with the older wrapper-app case alongside. - The same section said the frontend "cannot resolve the backend until" the three move together. It resolves fine beforehand; it breaks when they move separately. The list of three is unchanged, the tense is corrected. - It invoked `cdk-blocks migrate`. No package declares a `cdk-blocks` bin; `migrate.ts` calls it "the former `cdk-blocks` executable" and the task is `npm run migrate`, which is the form used elsewhere in this guide. - The DistributedDatabase-to-Database step passed `migrationsPath: './aws-blocks/dsql-migrations'`, a path inside the folder the reader is told to `git mv` earlier in the same guide. Only the parent moves: the line now reads `./cdk-blocks/dsql-migrations`, keeping the app's own `dsql-migrations` subfolder, because an explicit `migrationsPath` overrides the default rather than matching it. `DEFAULT_MIGRATIONS_ROOT` is `./cdk-blocks/migrations`, which confirms the parent folder's name only. - Its link into TROUBLESHOOTING.md named the heading's pre-rename anchor, so it landed at the top of the page. It was the only dead relative anchor in the repo. `test-apps/telemetry/README.md` - Listed an environment variable, a global config and a project config as ways to turn telemetry off. All three were removed when telemetry started following CDK's opt-out; the bullet below already names the only remaining mechanism. Docs only, no behaviour change. No publishable package is touched, so no changeset is required.
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 17:25 — with
GitHub Actions
Error
VarshithaPamisetty
had a problem deploying
to
e2e
November 19, 2026 17:25 — with
GitHub Actions
Error
VarshithaPamisetty
force-pushed
the
docs/cdk-blocks-sweep
branch
from
November 19, 2026 17:27
da6c7ee to
5c2b0ab
Compare
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:46 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:46 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 17:53 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 19:08 — with
GitHub Actions
Inactive
VarshithaPamisetty
temporarily deployed
to
e2e
November 19, 2026 20:13 — 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.
What
Five documentation lines that the recent renames left false, not merely old. Docs only; no behaviour change.
docs/guides/upgrading-older-apps.mdLine 12 — the symptom table named a symptom the reader never gets. The row offered
Cannot find module 'aws-blocks'for "any version before thecdk-blocks/rename". That is the symptom of a half-finished rename — the state the reader reaches after step 1 of this section's own instructions — not of an un-migrated app. Reproduced with the npm workspace symlink in place and this repo's owntsc:What an un-migrated app actually reports, both verified in source:
packages/blocks/src/cli/context.ts:314, reached becausefindProjectRoot(start, backendDir = 'cdk-blocks')(context.ts:153) defaults tocdk-blocks, andallowLegacyBackendDiris passed by exactly one caller,migrate.ts:1133.CliErrordefaults toExitCode.Failure.aws-blocks/scripts/*— the dev server starts, thennpm run deployfails in the client codegen atpackages/core/src/scripts/deploy.ts:292, before the deploy at 294, becausedeploy.ts:289resolvescdk-blocks/index.ts. Reproduced:Error [ERR_MODULE_NOT_FOUND]: Cannot find module '<root>/cdk-blocks/index.ts', exit 1.One row, not two, because line 9 already sets the precedent for an alternate case in a parenthetical (
(older releases: ...)). The row is 236 chars against siblings of 157/93/39 — longer than any sibling, which I accepted deliberately: naming only one of two real symptoms would half-repeat the bug being fixed, and this file's lines routinely run to 450. Table structure re-checked: 2 cells, same as every sibling row.Line 20 — wrong tense, and a dead command. It said the frontend "cannot resolve the backend until" the folder, the workspace entry and the imports move together. STATE 1 above shows it resolves fine beforehand; resolution breaks when they move separately. The list of three is kept verbatim and only the tense is corrected.
The same sentence invoked
cdk-blocks migrate. No package onorigin/maindeclares acdk-blocksbin — swept every trackedpackage.json:migrate.ts's own header calls it "the formercdk-blocksexecutable" and names the live formnpm run migrate, which templates declare as a package script.npm run …is also the form this guide already uses (npm run sandboxline 70,npm run typecheckline 196). Its internalRENAMED_ALIASESexists precisely to rewritecdk-blocks <verb>script entries away, so the guide was telling the reader to run the invocation thatmigrateexists to remove.I left "rewrites script wrappers only" as it stands: migrate rewrites package script entries and deletes generated wrappers, so the phrase is loose, but the claim that matters here — it does not move the folder or rewrite imports — is true (
renameSyncappears once, as an atomic temp-to-path file write, and migrate never touches an import specifier).Line 136 — a path the guide itself had just removed. The DistributedDatabase-to-Database step passed
migrationsPath: './aws-blocks/dsql-migrations', inside the folder the reader is told togit mvat line 25. Only the parent moves: the line now reads./cdk-blocks/dsql-migrations, keeping the app's owndsql-migrationssubfolder, because an explicitmigrationsPathoverrides the default rather than matching it.DEFAULT_MIGRATIONS_ROOTis./cdk-blocks/migrations(packages/bb-database/src/constants.ts:112), cited here only to confirm the parent folder's name — the edited line deliberately does not equal it. The// Before:comment on line 135 keeps the pre-rename path on purpose.Line 238 — dead anchor. #1630 renamed the heading to
## TypeScript errors in `cdk-blocks/` from the frontend(packages/blocks/TROUBLESHOOTING.md:90) but not the inbound link. I validated every relative markdown anchor in the repo with a GitHub-accurate slugger: 1 dead before, 0 after, and it was the only one. Unguarded becausereadme-links.test.ts:28-29strips#fragmentbefore checking.test-apps/telemetry/README.mdLine 83, deleted. It listed an environment variable, a global config and a project config as ways to turn telemetry off. All three were removed when telemetry started following CDK's opt-out; the surviving
disable mechanismstest group holds only fourCDK_DISABLE_CLI_TELEMETRY/cli-telemetrycases, which the bullet at line 87 already describes. Rewriting it would duplicate that bullet, so it is removed rather than reworded.Verification
Tests that read or pin documentation text, all at this base:
Measured widths (characters, not bytes — an em-dash is one character and two bytes):
Lines 136 and 238 are same-length substitutions, proved by reconstructing the base line, applying only the intended substitution, and comparing byte-for-byte, plus a span-masked comparison of the remainder. Line 20 is the only reworded prose; its word-level account is exactly three edits:
Opening clause, the list of three ("the folder, the workspace that names it and the imports"), and the closing sentence are preserved verbatim.
No formatter covers this.
biome.jsonincludes onlypackages/**/*.ts, and the repo has no prettier, markdownlint or editorconfig, so markdown width is convention rather than tooling — no gate would have caught a bad wrap. Both edited files are unwrapped, one line per paragraph, and nothing reflowed.No changeset.
changeset-guard verify-coveragereports✓ No publishable packages were changed. Neither file is underpackages/, andscripts/gen-block-docs.mjscopies only frompackages/*, so neither can reach a published tarball.Rebased mid-review
Main moved three times while this was open, so the branch has been rebased three times and now sits on
1de6ea444. It originally sat on703238f56(#1630) and carried a sixth edit: the comment inpackages/blocks/src/sandbox-dir-coverage.test.tsread`cdk-blocks/` → `cdk-blocks/` rename broke 24 tests, because #1630's sweep had rewritten the left side of #1644's arrow. #1655 then merged and rewrote that whole block, fixing it upstream, so that edit is dropped. #1627 then renamed the npm scope to@aws-cdk-blocksand the umbrella to unscopedaws-cdk-blocks, and #1656 made/cdk-blocks/the primary route prefix with/aws-blocks/kept as a legacy alias — the item the brief listed as undecided. Neither touched any of the four lines this PR edits (verified line by line), and every cited file, line number and error string was re-checked at1de6ea444. Dropping it is also why no changeset is needed — it was the only packaged file involved. Every remaining finding was re-verified against the new base.Checked and deliberately unchanged
5,278 occurrence lines of
aws-blocks/AWS_BLOCKS/AWS Blocks/.blocks/blocks-telemetryare classified, with 12 unclassified, each inspected and listed below. Five lines changed; the rest are correct as they stand.@aws-blocks/*/aws-blocks/*route prefix/cdk-blocks/primary and kept/aws-blocks/for deployed clients.blockshidden folder.changeset/*package-lock.jsonmigrate/ this guidemigrate-apps.jsonfixture.blocks-sandboxaws-blocks.native/.vendorizemanifest keysaws-blocksnpm keyword + its guarddocs/DECISIONS.mdNODE_DEBUG=blocks-telemetrySymbol.forkeysaws-blocks:stub-idp$aws-blocks/hosting.ManagedValuemigrate-sandbox-dir.tsVerified not stale though it looked it: the
"telemetry"key in 16test-apps/*/.blocks/config.jsonholdstelemetry.projectId, whichpackages/core/src/telemetry/identifiers.tsstill reads — onlytelemetry.enabledwas removed.Two findings reported, not fixed here
originishttps://github.com/aws/cdk-blocks.git, but 150 tracked references still sayaws-devtools-labs/aws-blocks, includingREADME.mdand therepository/bugs/homepagefields of most publishedpackage.jsonfiles. The old path returns HTTP 301 tohttps://github.com/aws/cdk-blocks, so these redirect rather than break — old, not false, and so outside a correctness-first sweep. Worth its own change because those fields are published npm metadata.hosting-ssr-aws-blocksare package names, not folders. refactor!: rename the scaffolded backend folder to cdk-blocks #1630 renamed each folder tocdk-blocks/and kept these names, and.changeset/config.jsonstill lists them underignore. Renaming them breaks imports, so it is a code change, not a docs one.Out of scope by instruction
.blocks→.cdk-blocks(#1607 open); the served sandbox config path (settled by #1655, which restored the old name); the route prefix (settled by #1656 after this PR opened, which made/cdk-blocks/primary and kept/aws-blocks/as a legacy alias); the "AWS Blocks" brand strings; the npm scope, Maven groupId, user-agent token,aws-blocks:stub-idp, crypto domain separator, published CHANGELOGs, and anything describing a past release.Pre-existing CI failures, not from this change
Local Unit Tests (shard 3)fails repo-wide inpackages/hostingwithENOTDIR: /tmp/hosting-nitro-cache-*/package.json/package.json;Build and TestandBuild, Unit Tests, E2E Localfail in about 3 seconds as aggregates of it.Unclassified after the latest rebase
12 occurrence lines are not auto-bucketed, all inspected and benign: the new dual-prefix route matchers that accept both segments (
segment == 'cdk-blocks' || segment == 'aws-blocks'in the Dart, Kotlin and Swift runtimes, added by #1656), theAWS_BLOCKS_UMBRELLA_MODULEconstant whose name keeps the old prefix while its value isaws-cdk-blocks, a README line aboutaws-cdk-blocks, thebb-authcodemod's positionalaws-blockssource argument, and a test name about leaving the app's own legacy workspace package alone. None is a stale doc.