Skip to content

Non-deterministic detailed diff output for set element addition/removal #2325

@VenelinMartinov

Description

@VenelinMartinov

What happened?

The detailed diff output for set element addition/removal is non deterministic.

Discovered in #2159

Example

The output of TestDetailedDiffPlainTypes/set_element_added_front oscillates between:

  ~ setProps: [
      ~ [0]: "val2" => "val1"
      ~ [1]: "val3" => "val2"
      + [2]: "val3"

and

  ~ setProps: [
      + [0]: "val1"
      ~ [1]: "val3" => "val2"
      + [2]: "val3"
    ]

The outputs of the other set element tests are also non-deterministic.

Output of pulumi about

.

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Labels

kind/bugSome behavior is incorrect or out of specresolution/fixedThis issue was fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions