Skip to content

lexicons: azure, k8s, github, gitlab and fly do not keep published names when an upstream type shares a short name #5551

Done

Description

@lex00

Core's NamingStrategy takes reservedNames, which hands each published name back to its type before short names are contested. aws and cpln feed it from their committed surface snapshot, and gcp does after #5549. azure, k8s, github, gitlab and fly have a snapshot and do not, so an upstream type that shares a short name renames a type users already import, as the gcp upgrade to Config Connector v1.161.0 would have.

aws and cpln have a second gap that gcp's change closes: once every published type has its name back, a new type whose short name only published types share looks unique and takes the bare name, and the snapshot then keeps it. gcp gives a newcomer the name the collision rule gives it over the whole input unless a published type holds that name.

Expected: every lexicon with a surface snapshot reserves its published names, with the newcomer rule, from one shared helper in core.

Activity

  1. added
    bug
    area:core
    epic:ci-hardening
    on Nov 23, 2026
  2. lex00 commented on Nov 23, 2026

    @lex00
    ContributorAuthor

    Built in #5559 for azure and k8s: the naming step gcp uses now lives in core (publishedNamingConfig, readPublishedNames), and both generators read their surface snapshot so a new upstream type that shares a short name cannot take or move a published name.

    No change for github and gitlab. Their types come from fixed lists in the lexicon, each with a fixed name, so an upstream schema cannot add a colliding type.

    Left open, each needing a choice:

    • fly: every type is Fly::Machines::<Name>, so a new schema with the same short name gets the identical type name, and reserving the published one would declare it twice. The parser has to decide what the newcomer is called (keep its namespace in the name) or refuse the collision.
    • k8s interface-only names (nameDefinitions in lexicons/k8s/src/spec/parse.ts): a new definition with the same last segment can rename a published interface, and the surface snapshot does not record these names. They need recording, in the snapshot or a list of their own.
    • aws and cpln reserve published names with their own code and could move to the shared step.

    Nothing collides in fly today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corebugepic:ci-hardening

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions