I'm running integration tests and one of them references another stack. The pulumi auth is via a PAT token, and my user account has access to three orgs - the tests run fine on my machine, but in CI (on azure devops) my stackreference isn't finding the target stack and dies with pulumi
pulumiStackReference ref-to-registry error: unknown stack "effectiveflow/TestStandardRuntime_Up_FullSDLC/singletons". In CI I logged pulumi whoami - that's correct (it's my account name). I'm stumped as to why the CI system can't see the stack. The only thing I can think of right now is the automation api code that I'm using to create the stack is using a different org to set the stack compared to the hard-coded org I'm expecting. Is there a way to force which org the LocalWorkspace uses when calling CreateStackAsync?
code:
using var singletonStack =
await LocalWorkspace.CreateStackAsync(new InlineProgramArgs(pulumiProjectName, singletonsStackName,
singletonProgram));
I'm wondering if I should set the pulumiProjectName to "org/project" instead of just "project" for example.
thank you!