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

5758 for Node JS #8047

Merged
merged 3 commits into from
Oct 7, 2021
Merged

5758 for Node JS #8047

merged 3 commits into from
Oct 7, 2021

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Sep 23, 2021

Description

Fixes #7944
Part of #5758 for Node JS.

This brings Node JS to parity with Go and Python. .NET is pending.

@mikhailshilkov adding you to see if there are blockers to merging this we need to address first. This is a change in codegen and it increases the size of the generated packages. Currently PR checks on azure-native show up as failing which is slightly concerning to me. In the beginning of developing this feature I manually rebuilt azure-native and found a TypeScript compilation issue. I've cut out a part of the azure-native schema and added it to the test suite, so I do not believe the particular issues is happening again, but this is good to discuss. Should I go ahead and try to manually built azure-native with this change prior to merging?

Thank you.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@t0yv0 t0yv0 mentioned this pull request Sep 23, 2021
3 tasks
@t0yv0 t0yv0 changed the title Rebase 5758 feature for Node onto latest base branch 5758 for Node JS Sep 23, 2021
@github-actions
Copy link

Diff for pulumi-azuread with merge commit d842d4b

@github-actions
Copy link

Diff for pulumi-random with merge commit d842d4b

@github-actions
Copy link

Diff for pulumi-random with merge commit adc68fb

@github-actions
Copy link

Diff for pulumi-azuread with merge commit adc68fb

@t0yv0 t0yv0 requested review from a team and mikhailshilkov September 23, 2021 20:10
@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit d842d4b

@github-actions
Copy link

Diff for pulumi-gcp with merge commit d842d4b

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit adc68fb

@github-actions
Copy link

Diff for pulumi-gcp with merge commit adc68fb

@github-actions
Copy link

Diff for pulumi-azuread with merge commit aed6f5b

@github-actions
Copy link

Diff for pulumi-random with merge commit aed6f5b

@github-actions
Copy link

Diff for pulumi-kubernetes with merge commit aed6f5b

@github-actions
Copy link

Diff for pulumi-gcp with merge commit aed6f5b

@github-actions
Copy link

Diff for pulumi-azure with merge commit adc68fb

@github-actions
Copy link

Diff for pulumi-aws with merge commit adc68fb

@github-actions
Copy link

Diff for pulumi-aws with merge commit d842d4b

@github-actions
Copy link

Diff for pulumi-azure with merge commit d842d4b

@github-actions
Copy link

Diff for pulumi-aws with merge commit aed6f5b

@mikhailshilkov
Copy link
Member

Unfortunately, Azure Native is falling further and further behind on pulumi/pulumi freshness due to the Go SDK size limitation. Does the check failure looks related to your change? I don't see it yet.

@github-actions
Copy link

Diff for pulumi-azure with merge commit aed6f5b

@t0yv0
Copy link
Member Author

t0yv0 commented Sep 23, 2021

Does the check failure looks related to your change? I don't see it yet.

NO, master branch is still affected by this check failure.

This particular PR would only add to the Node SDK size, not Go.

That being said I'm interested in what can we do to help azure-native catch up.

@komalali
Copy link
Member

@t0yv0 I'm merging the fix for azure-native today as soon as tests pass.

@komalali
Copy link
Member

komalali commented Sep 23, 2021

But TBH I don't have a solution for the size issues with azure-native yet. Sorry, lots of other things with overlapping priorities. The fix is only for the enum naming collisions that'll fix the downstream tests here.

@t0yv0
Copy link
Member Author

t0yv0 commented Sep 23, 2021

Curious, does your fix result in reducing Go codegen size for azure-native also? A few semantic fixes were on my radar, like #7985 but the problem with generating too much code would remain after that.

@t0yv0
Copy link
Member Author

t0yv0 commented Sep 23, 2021

#7835 was one idea we could still pursue to fix that.

// limitations under the License.

import 'mocha';
import * as assert from 'assert';
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I don't feel too strongly about this, but we generally use double quotes in our other ts code. At some point we should make sure these files are linted (and style checked + auto formatted if/when we hook that up).

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

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-aws with merge commit e7a09ae

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azure with merge commit e7a09ae

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azure-native with merge commit e7a09ae

@pgavlin
Copy link
Member

pgavlin commented Oct 7, 2021

I'm having trouble reviewing this due to the volume of added baselines. Would it be possible to restructure the commits a bit s.t. the codegen changes are in a single commit?

@t0yv0
Copy link
Member Author

t0yv0 commented Oct 7, 2021

Yes, definitely, let me do that.

@@ -622,7 +629,7 @@ func (mod *modContext) genResource(w io.Writer, r *schema.Resource) error {
allOptionalInputs = true
}

// Write out callable constructor: We only emit a single public constructor, even though we use a private signature
// Writef out callable constructor: We only emit a single public constructor, even though we use a private signature
Copy link
Member Author

Choose a reason for hiding this comment

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

Typo, pressed a wrong Emacs chord here.

@t0yv0
Copy link
Member Author

t0yv0 commented Oct 7, 2021

@pgavlin PTAL, two-commit version, first commit has the essential changes, and the second one has the combination of new tests providing coverage and the less meaningful noise of propagating changes to all langs.

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-random with merge commit 22947ad

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azuread with merge commit 22947ad

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-gcp with merge commit 22947ad

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-kubernetes with merge commit 22947ad

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azure with merge commit 22947ad

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-aws with merge commit 22947ad

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azure-native with merge commit 22947ad

@t0yv0 t0yv0 merged commit 6f8d411 into master Oct 7, 2021
@pulumi-bot pulumi-bot deleted the t0yv0/5758-node-rebased branch October 7, 2021 19:39
@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-random with merge commit 7a1cbac

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azuread with merge commit 7a1cbac

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-kubernetes with merge commit 7a1cbac

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-gcp with merge commit 7a1cbac

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-aws with merge commit 7a1cbac

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azure with merge commit 7a1cbac

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Diff for pulumi-azure-native with merge commit 7a1cbac

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.

Implement 5758 for Node JS
5 participants