You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by Martin Henke <ma...@web.de> on 2019/06/18 15:49:03 UTC
Accept NodeJs syntax quirks
Rodrics latest updates to the nodeJs runtime uncovered that some of our NodeJs test actions are using variables in the global scope (by omitting the let or var keywords). The related tests are now failing in the Travis build.
I opened https://github.com/apache/incubator-openwhisk/pull/4514 to fix the syntax of those actions.
While this PR would fix the build problem, there would be the danger of breaking existing customer actions with the runtime changes.
Therefore Rodric additionally opened a PR in the NodeJs runtime to allow these syntax quirks again.
https://github.com/apache/incubator-openwhisk-runtime-nodejs/pull/136
I do suggest to fix the problem by accepting his runtime PR and only optionally merge my core PR with the syntax changes
after we see the problem go away.
Regards,
Martin
Re: Accept NodeJs syntax quirks
Posted by Martin Henke <ma...@web.de>.
Rodric,
I am fine with closing #4514 and merging #136.
Regards,
Martin
> Am 18.06.2019 um 18:01 schrieb Rodric Rabbah <ro...@gmail.com>:
>
> Hey Martin - the refactoring was not intended to be semantic changing.
> Thanks for reporting the bug. I prefer to not accept #4514 and instead
> address this by restoring the behavior as noted in #136. I did add a test
> in the latter inspired by the code that broke in the former.
>
> -r
>
>> On Tue, Jun 18, 2019 at 11:49 AM Martin Henke <ma...@web.de> wrote:
>>
>> Rodrics latest updates to the nodeJs runtime uncovered that some of our
>> NodeJs test actions are using variables in the global scope (by omitting
>> the let or var keywords). The related tests are now failing in the Travis
>> build.
>>
>> I opened https://github.com/apache/incubator-openwhisk/pull/4514 to fix
>> the syntax of those actions.
>> While this PR would fix the build problem, there would be the danger of
>> breaking existing customer actions with the runtime changes.
>>
>> Therefore Rodric additionally opened a PR in the NodeJs runtime to allow
>> these syntax quirks again.
>> https://github.com/apache/incubator-openwhisk-runtime-nodejs/pull/136
>>
>> I do suggest to fix the problem by accepting his runtime PR and only
>> optionally merge my core PR with the syntax changes
>> after we see the problem go away.
>>
>> Regards,
>> Martin
Re: Accept NodeJs syntax quirks
Posted by Rodric Rabbah <ro...@gmail.com>.
Hey Martin - the refactoring was not intended to be semantic changing.
Thanks for reporting the bug. I prefer to not accept #4514 and instead
address this by restoring the behavior as noted in #136. I did add a test
in the latter inspired by the code that broke in the former.
-r
On Tue, Jun 18, 2019 at 11:49 AM Martin Henke <ma...@web.de> wrote:
> Rodrics latest updates to the nodeJs runtime uncovered that some of our
> NodeJs test actions are using variables in the global scope (by omitting
> the let or var keywords). The related tests are now failing in the Travis
> build.
>
> I opened https://github.com/apache/incubator-openwhisk/pull/4514 to fix
> the syntax of those actions.
> While this PR would fix the build problem, there would be the danger of
> breaking existing customer actions with the runtime changes.
>
> Therefore Rodric additionally opened a PR in the NodeJs runtime to allow
> these syntax quirks again.
> https://github.com/apache/incubator-openwhisk-runtime-nodejs/pull/136
>
> I do suggest to fix the problem by accepting his runtime PR and only
> optionally merge my core PR with the syntax changes
> after we see the problem go away.
>
> Regards,
> Martin