Repository navigation
Continue recursion for #4687 - #4800
Conversation
erikerikson
left a comment
There was a problem hiding this comment.
This looks like the right change! 👍 Apologies for my oversight.
Can you add a test case that fails before and success after this change? Otherwise I can add one tomorrow. We have been working our way out of a deficit of use case coverage.
|
@erikerikson I'm not sure if that is possible. I think this requires that the there be an existing stack that the testing framework has access to. When I had the cf variable pointing to a non-existent stack, the parsing failed before hitting this problem due to the missing stack. Pointers welcome. Please also see my question on the #4687 bug report. Thanks! |
|
There is an SSM variable test case that only success if it encounters a specific error. I think related to identifying the case that the parameter does not exist. However, here I think the problem was that the pre-population of the service left the region in a bad state. This means the test could check that the result of |
|
But this is why it is important to ensure you get a failure prior to applying the fix and a success after. To be sure you arranged the circumstance properly. 😄 |
|
Thanks for the testing pointers. It will take me a week or so before I can find the time to create the test case (crunch time at work). I'm ok with you pushing ahead without me if you prefer. |
|
Test offered here: bsdkurt#1 The simplest case of the error was that it had to continue treating the object being populated as the root (and not ignore it - ignoring it is otherwise very important to avoid infinite recursions from self references) |
|
BTW - go ahead and use |
add test that fails prior to the fix in serverless#4800 and succeeds after
|
@erikerikson Thank you for providing the test case. I have merged it and updated the todo's as you suggested. Looking forward to 1.27 :-) |
|
Of course... Sorry for writing the bug. Thank you for discovering, debugging, and fixing it! @HyperBrain should be GTM! |
|
@erikerikson Good news! I'll merge. |
HyperBrain
left a comment
There was a problem hiding this comment.
Thanks for the PR 👍 .
What did you implement:
Additional fix for #4687
How did you implement it:
Continue recursion for populateValue root case.
How can we verify it:
The following serverless.yml can be used to reproduce the problem. Adjust cf reference to an existing stack with an export.
Todos:
Is this ready for review?: YES
Is it a breaking change?: NO