Skip to content

firebase dataconnect:sdk:generate generates SDK files in a non-deterministic order #10626

@Amaimaya

Description

@Amaimaya

[REQUIRED] Environment info

firebase-tools:

15.11.0

Platform:

macOS

[REQUIRED] Test case

A TypeScript repository using Firebase Data Connect with generated SDK files committed to source control.

[REQUIRED] Steps to reproduce

  1. Run firebase dataconnect:sdk:generate.
  2. Run the command again without making any changes to the Data Connect schema, operations, or configuration.
  3. Compare the generated files between runs.

[REQUIRED] Expected behavior

The output of firebase dataconnect:sdk:generate should be deterministic. Running the command multiple times without modifying any Data Connect files should produce identical SDK files and no source control diffs.

[REQUIRED] Actual behavior

The generated SDK files change every time the command is executed, even when there have been no changes to the Data Connect schema, operations, or configuration.

The differences appear to be caused by inconsistent ordering in the generated output rather than actual changes to the generated API surface. This results in unnecessary diffs being introduced into source control and makes it difficult to distinguish real changes from generation noise.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions