Fix a test case with a undefined result#42
Conversation
a48b664 to
37c1208
Compare
|
@kaibocai @cgillum @XavierGeerinck @microsoftopensource Thank you! |
|
Hi @TonyPythoneer , thanks for your contribution, would you mind helping check why the CI is failing? Thanks. |
37c1208 to
c5718bc
Compare
|
@microsoft-github-policy-service agree |
|
Hi @kaibocai , The failed case comes from It seems to run 10 sub-orchestrations, each with 3 activities, which is too many if it is just testing its functionality. Please have a look. Thank you! By the way, this is my test result from my local. |
|
Merged, thanks for your contribution! @TonyPythoneer |
I just attached the build history I was resolving here when it suffered from the timeout issue in the test cases. https://github.com/microsoft/durabletask-js/actions/runs/10051155988/job/27783699271 I hope this can help other viewers read here and get the complete context. |
|
Hi @kaibocai I have another question. I'd like to let So, what's your release plan? Thank you! |
|
Hi @TonyPythoneer , I don't have an estimate for the release. But I will note this down and start looking into it. Will keep you updated. |
|
We are migrating our release pipeline due to security requirements. I am actively working on it. I will keep you updated. Thanks. |
|
Hi @kaibocai I have a question. Could I expect these changes to be updated in Thank you! |
|
@TonyPythoneer , sorry for the late reply, I missed your previous message. The new release is here https://www.npmjs.com/package/@microsoft/durabletask-js. thanks |
Root cause
If
resultisundefined, it should add a?afterresultto avoid the potential error.Ref: https://github.com/microsoft/durabletask-js/actions/runs/10032489350/job/27763486093
Else
I add
Object.prototype.toString.callto detect object class.I think this way is more correct when referring to the MDN document.
Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString#using_tostring_to_detect_object_class