https://pulumi.com logo
v

victorious-tomato-90057

10/13/2021, 4:22 AM
hi team, I am using the nodejs sdk and the inline runner for integration test of different projects ( shared lib etc.. ). I found that there is
runSxScheck
in the
sdk/nodejs/runtime/settings.ts
which compare the the module level global identifier
sxsRandomIdentifier
. It will failed for the any pulumi runtimes if not point to same module even they have the same version. Is there any way we can bypass it ?
l

lemon-agent-27707

10/13/2021, 5:29 PM
Using multiple versions of the pulumi/pulumi SDK at runtime can cause promises to leak and your program to terminate early with outstanding work. This results in undefined behavior. Is there a reason why using the resolutions field of the package.json doesn't work for your use case?
v

victorious-tomato-90057

10/14/2021, 2:48 AM
Thanks, I reckon we need to restructure our test codes. We have a new test pulumi project next to the Iac project and try to reference the files inside the Iac project, which bring two pulumi runtimes.
l

lemon-agent-27707

10/14/2021, 9:02 PM
You could try running your test projects as "local" projects instead rather than inline.
👍 1