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

chore: Update Pulumi Java SDK to v0.8.0 #2337

Merged
merged 1 commit into from
Mar 16, 2023
Merged

chore: Update Pulumi Java SDK to v0.8.0 #2337

merged 1 commit into from
Mar 16, 2023

Conversation

rquitales
Copy link
Contributor

@rquitales rquitales commented Mar 16, 2023

Fixes #2333

Steps carried out in this PR:

  1. Updated Java gen version in Makefile
  2. Run make build

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

1 similar comment
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@@ -123,7 +123,7 @@ javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
options.jFlags("-Xmx2g", "-Xms512m")
options.jFlags("-Xmx8g", "-Xms512m")
Copy link
Contributor

Choose a reason for hiding this comment

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

can we rely on having that much on CI runners?

Copy link
Member

Choose a reason for hiding this comment

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

Assume this will just act as unbounded and will fail if the host won't give it more memory - this is only the max and not the inital memory to be reserved?

Copy link
Contributor

Choose a reason for hiding this comment

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

this is max, yes

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the extra memory required? I'm not opposed to the change, but curious what the motivation is.

Copy link
Member

Choose a reason for hiding this comment

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

Think this is generated by the java language - was increased because some providers (probably AWS or Azure) crash with only 2gb

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, these changes come from upstream (in the make build, particularly, building the Java sdk step) when we updated to the latest Java gen version. Xmx indicates the maximum allowed, so it won't fail on start, only if the program requires more and the host can't allocate it.

@squaremo
Copy link
Contributor

squaremo commented Mar 16, 2023

This looks like it takes the form

  • update the version in the Makefile (and elsewhere? build.gradle?)
  • rerun a generation step
    If so, it'd be nice to either separate those things into commits, so it's obvious which change precipated the other changes, or at least to say in the commit message what was changed and what was regenerated (and how).

Copy link
Contributor

@kpitzen kpitzen left a comment

Choose a reason for hiding this comment

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

Added a question that's purely interrogatory - wouldn't consider it a blocker as the rest of the PR looks good to me.

@rquitales rquitales merged commit 8c45e3f into master Mar 16, 2023
@rquitales rquitales deleted the update-java branch March 16, 2023 17:07
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.

Please update to JAVA_GEN_VERSION := v0.8.0
5 participants