Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test and fix for nodejs automation api #11943

Merged
merged 1 commit into from Jan 23, 2023
Merged

Test and fix for nodejs automation api #11943

merged 1 commit into from Jan 23, 2023

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Jan 21, 2023

nodejs automation api was setting the envvar PULUMI_CONFIG for every pulumi command it called, this tripped up the dotnet sdk which only expects PULUMI_CONFIG to be set to a valid JSON string (not the empty string).

Looks like this was just a slightly confused bit of code to try and deal with parallel programs, I've moved it out of the workspace part of automation api and fixed up the inline server to deal with parallel programs correctly instead.

Fixes #11945

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Jan 21, 2023

Changelog

[uncommitted] (2023-01-23)

Bug Fixes

  • [auto/nodejs] Fix NodeJS automation api always setting the PULUMI_CONFIG environment variable.
    #11943

@Frassle Frassle changed the title Test to show dotnet config error Test and fix for nodejs automation api Jan 22, 2023
@Frassle Frassle marked this pull request as ready for review January 22, 2023 16:15
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, aside from needing a changelog file and some nits.

I opened an issue so we can better track bugs (#11945) and updated the description of this PR to say it fixes the bug.

@Frassle
Copy link
Member Author

Frassle commented Jan 23, 2023

bors merge

bors bot added a commit that referenced this pull request Jan 23, 2023
11943: Test and fix for nodejs automation api r=Frassle a=Frassle

nodejs automation api was setting the envvar PULUMI_CONFIG for every pulumi command it called, this tripped up the dotnet sdk which only expects PULUMI_CONFIG to be set to a valid JSON string (not the empty string).

Looks like this was just a slightly confused bit of code to try and deal with parallel programs, I've moved it out of the workspace part of automation api and fixed up the inline server to deal with parallel programs correctly instead.

Fixes #11945

Co-authored-by: Fraser Waters <fraser@pulumi.com>
@bors
Copy link
Contributor

bors bot commented Jan 23, 2023

Canceled.

@Frassle
Copy link
Member Author

Frassle commented Jan 23, 2023

bors merge

@bors
Copy link
Contributor

bors bot commented Jan 23, 2023

Build succeeded:

@bors bors bot merged commit d583192 into master Jan 23, 2023
@bors bors bot deleted the fraser/configError branch January 23, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[auto/nodejs] PULUMI_CONFIG set for every pulumi command which breaks .NET programs
3 participants