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

(#4871)fix(test): Fix the jvm args -Xmx4G of gradle test can be overwrite by the extraJvmArgs. #4872

Merged
merged 2 commits into from
Sep 8, 2024

Conversation

diqiu50
Copy link
Contributor

@diqiu50 diqiu50 commented Sep 6, 2024

What changes were proposed in this pull request?

Fix the oom error when run the gradle test.

Why are the changes needed?

Fix: #4871

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually

@@ -431,9 +431,9 @@ subprojects {
reports.html.outputLocation.set(file("${rootProject.projectDir}/build/reports/"))
val skipTests = project.hasProperty("skipTests")
if (!skipTests) {
jvmArgs = listOf("-Xmx4G")
val extraArgs = project.property("extraJvmArgs") as List<String>
jvmArgs = listOf("-Xmx4G") + extraArgs
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you provide relevant screenshots to prove that this parameter actually works?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

WeChat627be692d957c301004fa7a165a7ec33

Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be backported to branch-0.6?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need backport

@jerryshao jerryshao merged commit 2a5e7d4 into apache:main Sep 8, 2024
27 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 8, 2024
…rwrite by the `extraJvmArgs`. (#4872)

### What changes were proposed in this pull request?

Fix the oom error when run the gradle test.

### Why are the changes needed?

Fix: #4871 

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manually

Co-authored-by: Jerry Shao <[email protected]>
@diqiu50 diqiu50 deleted the fix_memory branch September 13, 2024 06:27
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.

[Bug report] Out of memory of grade run tests
3 participants