You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
changie batch should throw a better error message when a change entry yaml is invalid yaml #554
Description
Using the latest version of changie seems to have broken our deployment pipeline. We run changie batch v2023.10.20 today and we get the following error
yaml: line 2: mapping values are not allowed in this context
This worked on our last release v2023.10.3
What happened
yaml: line 2: mapping values are not allowed in this context
Expected behavior
To create the batch of changes
Additional context
Here is the .changie.yaml we are using
@miniscruff looks like it was due to a inline github edit 😢
So ya no problem with changie - just a better error message would help. After i regenerated the .changie.yaml from scratch and used the baseline the tool generates and it still was erroring it hit me it might be a change entry yaml file. Sure enough. 😢
changed the title [-]changie batch is broken?[/-][+]changie batch should throw a better error message when a change entry yaml is invalid yaml[/+]on Oct 20, 2023
@miniscruff looks like it was due to a inline github edit 😢
So ya no problem with changie - just a better error message would help. After i regenerated the .changie.yaml from scratch and used the baseline the tool generates and it still was erroring it hit me it might be a change entry yaml file. Sure enough. 😢
Ok yea that makes sense. A new issue to update the error to include which file would be good.
Activity
rocktavious commentedon Oct 20, 2023
hmm it appears this was due to a change entry with bad yaml
was the entry and you can see there is a non-escaped
:or not quotes around it.switching it to
Fixed the
changie batchcommand. Maybe it would be good to be more explicit which.yamlfile was failing to be parsed?miniscruff commentedon Oct 20, 2023
Was this file manually written or did changie create a bad file?
A more explicit error sounds like a good plan as well, I would of had a hard time finding that.
rocktavious commentedon Oct 20, 2023
@miniscruff looks like it was due to a inline github edit 😢

So ya no problem with changie - just a better error message would help. After i regenerated the
.changie.yamlfrom scratch and used the baseline the tool generates and it still was erroring it hit me it might be a change entry yaml file. Sure enough. 😢[-]changie batch is broken?[/-][+]changie batch should throw a better error message when a change entry yaml is invalid yaml[/+]miniscruff commentedon Oct 20, 2023
Ok yea that makes sense. A new issue to update the error to include which file would be good.