Speed up a few tests and re-enable JS on DirectoryBrowserSupportTest#10764
Speed up a few tests and re-enable JS on DirectoryBrowserSupportTest#10764timja wants to merge 11 commits intojenkinsci:masterfrom
Conversation
By using a plugin with no dependencies there's no background jobs required to wait for (that are hard to tell when complete)
|
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Co-authored-by: Thorsten Scherler <scherler@gmail.com>
|
This PR improves test time on my machine: master: 02:46 Just test harness change: 44.669s Test change to require less dependency loading: 39.233 Non scientific testing, haven't run multiple builds and averaged. I tried a couple of weeks ago to run many builds and see improvements but was too hard with tests falling over everywhere for other reasons. A couple of sample builds:
|
There was a problem hiding this comment.
Do not check in binaries. If you need a random plugin binary, use https://javadoc.jenkins.io/component/jenkins-test-harness/org/jvnet/hudson/test/RealJenkinsRule.html#createSyntheticPlugin(org.jvnet.hudson.test.RealJenkinsRule.SyntheticPlugin)
|
Is there a reason you closed this @timja? |
|
Didn't have the time to address, the more important change was the htmlunit change to not wait forever for JS that is constantly running. These make a bit of difference to an individual test but not huge.. |
Plugin manager tests sped up by loading plugin without dependencies, a bunch of time was spent waiting for plugin installation / JS to execute in update center.
DirectoryBrowserSupportTest now runs fine with the new HtmlUnit API update in the test harness
See jenkinsci/jenkins-test-harness#985
Testing done
Proposed changelog entries
Proposed changelog category
/label skip-changelog
Proposed upgrade guidelines
N/A
Submitter checklist
@Restrictedor have@since TODOJavadocs, as appropriate.@Deprecated(since = "TODO")or@Deprecated(forRemoval = true, since = "TODO"), if applicable.evalto ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@mention
Before the changes are marked as
ready-for-merge:Maintainer checklist
upgrade-guide-neededlabel is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidateto be considered (see query).