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

[auto/nodejs] Test remote operations #11292

Merged
merged 1 commit into from
Nov 9, 2022
Merged

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Nov 8, 2022

@justinvp justinvp added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Nov 8, 2022
@pulumi-bot
Copy link
Contributor

pulumi-bot commented Nov 8, 2022

Changelog

[uncommitted] (2022-11-09)

Comment on lines -158 to +162
if (args.commitHash && args.branch) {
throw new Error("commitHash and branch cannot both be specified.");
if (args.branch && args.commitHash) {
throw new Error("branch and commitHash cannot both be specified.");
}
if (!args.commitHash && !args.branch) {
throw new Error("at least commitHash or branch are required.");
if (!args.branch && !args.commitHash) {
throw new Error("either branch or commitHash is required.");
Copy link
Member Author

Choose a reason for hiding this comment

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

Minor change to reorder the check to match the error message (changed to be consistent with CLI and other languages).

Copy link
Contributor

@RobbieMcKinstry RobbieMcKinstry left a comment

Choose a reason for hiding this comment

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

I aspire to write code this clean and thorough! LGTM! One nit about adding a comment.

Also cleans up some error messages to be consistent with the CLI and other languages.
@justinvp
Copy link
Member Author

justinvp commented Nov 9, 2022

bors merge

bors bot added a commit that referenced this pull request Nov 9, 2022
11292: [auto/nodejs] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11291
- #11293
- #11294

11293: [auto/python] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11291
- #11292
- #11294

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
@bors
Copy link
Contributor

bors bot commented Nov 9, 2022

Build failed (retrying...):

@bors
Copy link
Contributor

bors bot commented Nov 9, 2022

Build succeeded:

@bors bors bot merged commit f33924e into master Nov 9, 2022
@pulumi-bot pulumi-bot deleted the justin/remote_tests_nodejs branch November 9, 2022 20:39
bors bot added a commit that referenced this pull request Nov 9, 2022
11293: [auto/python] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11291
- #11292
- #11294

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
bors bot added a commit that referenced this pull request Nov 9, 2022
11290: [cli] Test remote operations r=justinvp a=justinvp

Also some changes to validate flags earlier (before getting the backend).

Related:
- #11291
- #11292
- #11293
- #11294

11293: [auto/python] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11291
- #11292
- #11294

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
bors bot added a commit that referenced this pull request Nov 16, 2022
11291: [auto/go] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11292
- #11293
- #11294

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
bors bot added a commit that referenced this pull request Nov 16, 2022
11294: [auto/dotnet] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11291
- #11292
- #11293

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
bors bot added a commit that referenced this pull request Nov 24, 2022
11291: [auto/go] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11292
- #11293
- #11294

11294: [auto/dotnet] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- #11290
- #11291
- #11292
- #11293

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
abhinav pushed a commit to pulumi/pulumi-dotnet that referenced this pull request Jan 11, 2023
11291: [auto/go] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- pulumi/pulumi#11290
- pulumi/pulumi#11292
- pulumi/pulumi#11293
- pulumi/pulumi#11294

11294: [auto/dotnet] Test remote operations r=justinvp a=justinvp

Also cleans up some error messages to be consistent with the CLI and other languages.

Related:
- pulumi/pulumi#11290
- pulumi/pulumi#11291
- pulumi/pulumi#11292
- pulumi/pulumi#11293

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants