Skip to content

RFC-04: prebuilt-provider collision sweep (script + pinned results)#3

Open
so0k wants to merge 1 commit into
mainfrom
rfc04/collision-sweep
Open

RFC-04: prebuilt-provider collision sweep (script + pinned results)#3
so0k wants to merge 1 commit into
mainfrom
rfc04/collision-sweep

Conversation

@so0k

@so0k so0k commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Adds the collision sweep requested in the PR #296 review: reproducible evidence that no real provider trips the generator's deliberate collision hard-fails (function method names, reserved wrapper members constructor/providerLocalName, parameter names, and the functions-getter vs provider-attribute collision).

What's included

  • RFCS/04-provider-feature-availability/scripts/collision-sweep.js — imports the exact compiled sanitizers from a cdk-terrain PR-296 build (CDKTN_REPO env var), no reimplemented name rules; self-tests by injecting synthetic collisions before sweeping the real corpus.
  • data/collision-sweep-manifest.json — pinned provider→version/source manifest: 29 providers from the cdktn-repository-manager catalog + Grafana 4.41.0 and MongoDB Atlas 2.14.0 (pending prebuilt requests New Pre-built Provider Request: MongoDB Atlas cdktn-io/cdktn-repository-manager#27 / #20).
  • data/collision-sweep-results.json — machine-readable per-provider verdicts.
  • README section with re-run instructions (raw schemas are fetched locally, never committed).

Result

31/31 clean — 0 collisions, 0 unfetched; 26 provider-defined functions / 32 parameters exercised (aws 4, google/google-beta 6 each, kubernetes 3, time 3, azurerm 2, grafana 1, local 1). The hard-fails in open-constructs/cdk-terrain#296 are currently unreachable by any provider cdktn prebuilds today or plans to.

Follow-up: open-constructs/cdk-terrain#340 tracks the long-term dedupe strategy and wiring this sweep into the drift check (open-constructs/cdk-terrain#309).

cdk-terrain PR #296 makes provider-generator abort generation instead of
silently overwriting on provider-defined-function method/parameter-name
collisions, reserved wrapper-member collisions, and provider-attribute
collisions with the generated `functions` getter. Sweep every provider in
the cdktn-repository-manager prebuilt catalog (plus the pending
grafana/grafana and mongodb/mongodbatlas requests) through the real,
compiled sanitizers to confirm none of them trip these hard-fails today:
31/31 clean, 0 collisions, 0 unfetched.
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.

1 participant