hi team, I am using the nodejs sdk and the inline ...
# automation-api
v
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
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
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
You could try running your test projects as "local" projects instead rather than inline.
👍 1