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

Warn about undefined stack outputs #13608

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Warn about undefined stack outputs #13608

merged 1 commit into from
Jul 28, 2023

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Jul 27, 2023

Description

Fixes #7376

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

@Frassle Frassle requested a review from a team July 27, 2023 14:27
@pulumi-bot
Copy link
Contributor

pulumi-bot commented Jul 27, 2023

Changelog

[uncommitted] (2023-07-28)

Features

  • [sdk/nodejs] NodeJS programs will now warn that undefined values will not show as stack outputs.
    #13608

@Frassle
Copy link
Member Author

Frassle commented Jul 27, 2023

Not sure why the tests are failing, they don't look related 😕 will dig into those.

Copy link
Contributor

@dixler dixler left a comment

Choose a reason for hiding this comment

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

LGTM

@Frassle
Copy link
Member Author

Frassle commented Jul 28, 2023

bors merge

bors bot added a commit that referenced this pull request Jul 28, 2023
13608: Warn about undefined stack outputs r=Frassle a=Frassle

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

Fixes #7376

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [x] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Cloud,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


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

bors bot commented Jul 28, 2023

Build failed:

@Frassle
Copy link
Member Author

Frassle commented Jul 28, 2023

Windows!

bors retry

@bors
Copy link
Contributor

bors bot commented Jul 28, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

  • bors-ok

@bors bors bot merged commit 58b9697 into master Jul 28, 2023
52 checks passed
@bors bors bot deleted the fraser/warnUndefOutput branch July 28, 2023 17:14
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.

When stack outputs are undefined, they act as though there was no stack output at all
3 participants