Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New YAML engine writes invalid yaml arrays #6679

Closed
nesl247 opened this issue Apr 1, 2021 · 6 comments
Closed

New YAML engine writes invalid yaml arrays #6679

nesl247 opened this issue Apr 1, 2021 · 6 comments
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec p1 Bugs severe enough to be the next item assigned to an engineer resolution/fixed This issue was fixed
Milestone

Comments

@nesl247
Copy link
Contributor

nesl247 commented Apr 1, 2021

With the new yaml engine in 2.24.0, previously written valid yaml is rewritten in invalid yaml when running pulumi config set. The invalid yaml are arrays, however, this is triggered by updating anything in the file. It's only necessary to trigger pulumi to rewrite the file to cause the problem.

Expected behavior

This is a subsection of our Pulumi.staging.yaml file.

    unvailablePods:
      configuration:
        notifyTargets:
          - '@some-target'
        priorities:
          critical: P3

Current behavior

This is a subsection of our Pulumi.staging.yaml file.

    unvailablePods:
      configuration:
        notifyTargets:
        - @some-target
        priorities:
          critical: P3

Steps to reproduce

  1. Use pulumi 2.24.0
  2. Have a config that has an array of strings
  3. Use pulumi config set to change any value in the configuration (it does not need to be related to the array at all)
  4. The array is rewritten in invalid yaml

Context (Environment)

This occurs using pulumi 2.24.0.

Affected feature

Our deployment pipeline got broken by this as pulumi is writing invalid yaml. We had to revert to a fixed version pointing to the previous release.

@nesl247 nesl247 added the kind/bug Some behavior is incorrect or out of spec label Apr 1, 2021
@mikhailshilkov
Copy link
Member

@lblackstone this sounds like a nasty issue, could you please take a look?

@lblackstone
Copy link
Member

This must be a bug in the new YAML package because #6489 hasn't merged yet. I'll see about getting this fixed today.

@lblackstone lblackstone added p1 Bugs severe enough to be the next item assigned to an engineer kind/bug Some behavior is incorrect or out of spec and removed kind/bug Some behavior is incorrect or out of spec labels Apr 1, 2021
@lblackstone
Copy link
Member

We decided to revert the package change for now until we can make sure this is fixed. We'll cut a patch release ASAP.

@stack72
Copy link
Contributor

stack72 commented Apr 1, 2021

Hi @nesl247

As a follow up to what @lblackstone said, I am cutting v2.24.1 release right now

Paul

@stack72 stack72 added the resolution/fixed This issue was fixed label Apr 2, 2021
@stack72
Copy link
Contributor

stack72 commented Apr 2, 2021

Hey @nesl247 this is closed via #6689

@stack72 stack72 closed this as completed Apr 2, 2021
@stack72 stack72 added this to the 0.54 milestone Apr 2, 2021
@nesl247
Copy link
Contributor Author

nesl247 commented Apr 2, 2021

Thanks @stack72 and @lblackstone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec p1 Bugs severe enough to be the next item assigned to an engineer resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

4 participants