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
[sdk/python] Fix comment about ROOT_STACK_RESOURCE
#13323
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Looks like this was copied from the Node.js SDK. It should be `ROOT_STACK_RESOURCE` not `rootStackResource` for Python.
justinvp
added
the
impact/no-changelog-required
This issue doesn't require a CHANGELOG update
label
Jun 29, 2023
Changelog[uncommitted] (2023-06-29) |
|
Passes locally but something's iffy in tests. I'll make the test randomize the project name. |
abhinav
added a commit
that referenced
this pull request
Jun 29, 2023
TestCreatingProjectWithEmptyConfig appears to be broken on master: ``` === Failed === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (0.00s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (re-run 1) (0.28s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig ``` As seen in #13323 and the attempts to land #13322. To reduce likelihood of "name already exists" errors, generate a random name for all tests where the name is currently based on the name of the temporary directory. Also, change all manually managed temporary directories (with an unchecked error) to `t.TempDir()` -- making the testing package handle cleanup of the temporary directories.
bors bot
added a commit
that referenced
this pull request
Jun 29, 2023
13325: test: Attempt to fix TestCreatingProjectWithEmptyConfig r=abhinav a=abhinav TestCreatingProjectWithEmptyConfig appears to be broken on master: ``` === Failed === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (0.00s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (re-run 1) (0.28s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig ``` As seen in #13323 and the attempts to land #13322. To reduce likelihood of "name already exists" errors, generate a random name for all tests where the name is currently based on the name of the temporary directory. Also, change all manually managed temporary directories (with an unchecked error) to `t.TempDir()` -- making the testing package handle cleanup of the temporary directories. Note: The randomly generated directory name is used only in cases where the name of the directory was used as input in the rest of the test. Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
abhinav
added a commit
that referenced
this pull request
Jun 29, 2023
TestCreatingProjectWithEmptyConfig appears to be broken on master: ``` === Failed === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (0.00s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (re-run 1) (0.28s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig ``` As seen in #13323 and the attempts to land #13322. To reduce likelihood of "name already exists" errors, generate a random name for all tests where the name is currently based on the name of the temporary directory. Also, change all manually managed temporary directories (with an unchecked error) to `t.TempDir()` -- making the testing package handle cleanup of the temporary directories.
bors bot
added a commit
that referenced
this pull request
Jun 29, 2023
13325: test: Attempt to fix TestCreatingProjectWithEmptyConfig r=abhinav a=abhinav TestCreatingProjectWithEmptyConfig appears to be broken on master: ``` === Failed === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (0.00s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig === FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (re-run 1) (0.28s) new_test.go:330: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330 Error: Received unexpected error: A project with this name already exists Test: TestCreatingProjectWithEmptyConfig ``` As seen in #13323 and the attempts to land #13322. To reduce likelihood of "name already exists" errors, generate a random name for all tests where the name is currently based on the name of the temporary directory. Also, change all manually managed temporary directories (with an unchecked error) to `t.TempDir()` -- making the testing package handle cleanup of the temporary directories. Note: The randomly generated directory name is used only in cases where the name of the directory was used as input in the rest of the test. Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
bors merge |
bors bot
added a commit
that referenced
this pull request
Jun 29, 2023
13265: Fix isInstance methods on generated provider types in the nodejs sdks r=abhinav 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 #12584 ## 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. --> 13316: Test duplicate outputs r=abhinav 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. --> Regression test to cover #9411 ## 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 - [x] 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. --> - [ ] 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. --> 13323: [sdk/python] Fix comment about `ROOT_STACK_RESOURCE` r=abhinav a=justinvp Looks like this was copied from the Node.js SDK. It should be `ROOT_STACK_RESOURCE` not `rootStackResource` for Python. 13326: ci: Include Go and NodeJS hosts in unit tests r=abhinav a=abhinav The CI test matrix generator expects every module that we want to test to be provided explicitly. Since the Go and Node hosts became independent Go modules, we haven't been running their unit tests in CI. Fortunately, the tests still pass today, but we need to include these in the build. 13327: ci/build-binaries: Don't enable cgo for Darwin r=abhinav a=abhinav Previously, it was necessary to enable cgo and use the system's DNS resolver on macOS. In Go 1.20, the `net` package was rewritten to not use cgo at all, so CGO_ENABLED no longer has any effect there. In fact, ever since 3898600, this setting has been meaningless because we've been building Darwin binaries on Ubuntu machines (so cgo can't be enabled anyway). This commit just deletes this now-unused block. Co-authored-by: Fraser Waters <fraser@pulumi.com> Co-authored-by: Justin Van Patten <jvp@justinvp.com> Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
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. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Looks like this was copied from the Node.js SDK. It should be
ROOT_STACK_RESOURCE
notrootStackResource
for Python.