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

Enhance attach connection method and try to fix unit tests #790

Merged
merged 7 commits into from
Apr 17, 2020

Conversation

pjdarton
Copy link
Member

We keep getting unit-test failures on DockerNodeStepTest on jenkinsci builds ... but these don't seem to happen when run locally. I've seen memory-allocation failures from the JVM which might be each JVM allocating 25% of host ram on a host running more than 3 docker containers at once.

So, this enhances the "attach" connect method to make the command it runs fully configurable (like we can with JNLP nodes) and then uses that to specify a -Xmx limit in the dodgy test.

If we implement equals, we need to implement hashcode too.
Unnecessary else
Added javaExe, jvmArgs and entryPointCmd fields.
We can now fully customise the cmd we run to run the slave code.
This lets us set JVM args like -Xmx500m etc.
Removed unused method
Refactored code to avoid repetition of dockerNode pipeline syntax.
Added in -Xmx250m JVM arg in an attempt to fix persistent JVM OOM errors
on unit-tests during jenkinsci builds.
@pjdarton pjdarton merged commit 0057d45 into jenkinsci:master Apr 17, 2020
@pjdarton pjdarton deleted the enhance_attach_and_fix_tests branch April 18, 2020 09:35
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.

1 participant