Commit Graph
1307 Commits
Author SHA1 Message Date
Jesse Glick f0328e55b7 testTriggerJob has been unstable recently, probably because of executor-ondemand branch changes. 2013-10-17 09:59:06 -04:00
Jesse Glick acff33106e [FIXED JENKINS-16936] Added SecureRequester extension point. 2013-10-16 17:03:03 -04:00
Nicolas De loof 86fe60eee7 Merge pull request #970 from vjuranek/JENKINS-19926
[FIXED JENKINS-19926] Add only new env. variables
2013-10-16 01:59:32 -07:00
Kohsuke Kawaguchi 957dbdf675 Fixed a test failure.
Turns out in the new executor on-demand code, queue maintenance happens so quickly that even when a job is submitted with delay 0,
it can still fail the test if the check happens when "new GregorianCalendar()" returns the same value as "top.timestamp".

I'm relaxing that check
2013-10-11 12:34:53 -07:00
Vojtech Juranek b95f269452 [FIXED JENKINS-19926] Add only new env. variables
Previous patch (3eea396489) broke usescases when evn. variable overwrites already existing one
like PATH = $PATH:/my/path
2013-10-10 22:23:54 +02:00
Kohsuke Kawaguchi c01333c346 [FIXED JENKINS-18629]
Consult Descriptor.newInstance() even when proccessing is in the middle
of JSON tree.
(cherry picked from commit d15c15506e)
2013-10-09 15:49:04 -07:00
Jesse Glick 793b6826e5 [FIXED JENKINS-19947] Restore historical undocumented behavior of a top-level entry in a ZIP.
Noting that various DirScanner implementations handle this inconsistently.
2013-10-09 09:55:06 -04:00
Kohsuke Kawaguchi 8c4288ca59 Merge remote-tracking branch 'origin/master' into executor-ondemand 2013-10-07 20:38:34 -07:00
Jesse Glick 7ca4dc47ec [FIXED JENKINS-19920] Using selfReference to mean “none” from nextBuild/previousBuild was just asking for trouble.
JENKINS-16194 and an analogous but opposite bug fixed more simply by introducing a separate NONE constant.
Also numberOnDisk did not get updated properly after a build was deleted, causing double loading of build records in some cases.
2013-10-07 13:30:05 -04:00
Jesse Glick 571de9c148 JUnit 4; introduced GroovyJenkinsRule. 2013-10-07 11:43:39 -04:00
Jesse Glick ed03fbbc9d Revert "[FIXED JENKINS-18629]"
This reverts commit d15c15506e.
2013-10-07 11:18:36 -04:00
Kohsuke Kawaguchi d15c15506e [FIXED JENKINS-18629]
Consult Descriptor.newInstance() even when proccessing is in the middle
of JSON tree.
2013-10-07 08:10:42 -07:00
Jesse Glick b9437154d8 ClassicPluginStrategy.DETACHED_LIST could confuse ClassicPluginStrategyTest by injecting dependencies on split plugins that have an index.jelly. 2013-10-04 18:19:49 -04:00
Jesse Glick 071139f8e5 Merge branch 'master' of github.com:jenkinsci/jenkins 2013-10-04 14:59:01 -04:00
Jesse Glick 7b38b7c5e9 Merge pull request #967 from akiellor/fix-local-build-issues
Fix `mvn -Plight-test install` on Ubuntu 13.04 with OpenJDK
2013-10-04 11:48:27 -07:00
Jesse Glick f1205fa4d6 Copy basic Surefire configuration, esp. forkCount=2, to the plugin POM.
Shaves >11min off the test time for maven-plugin on my machine!
2013-10-04 14:37:27 -04:00
Jesse Glick 261f40533e Moving one test case to maven-plugin. 2013-10-04 13:43:48 -04:00
Andrew Kiellor ff71ab755c Migrated some usages of GNUCLibrary to the jnr PosixAPI, fixed 'mvn -Plight-test install' on ubuntu with OpenJDK. 2013-10-04 13:42:42 -04:00
Jesse Glick facfc178df Moving hudson.maven tests to maven-plugin. 2013-10-04 12:50:28 -04:00
Jesse Glick ea85489a0a Fixing JenkinsRule as HudsonTestCase was for optional dependencies in e11c01c.
(Implies reverting c4e3add as well, since we need resolvePluginFile to return null.)
2013-10-01 17:09:15 -04:00
Vojtěch Juránek 67be8def39 Merge pull request #958 from lvotypko/userTest
Better wait until build is finshed and remove existing CauseAction.
2013-09-29 23:43:56 -07:00
lvotypko ef26f8a87d Better wait until build is finshed and remove existing CauseAction. 2013-09-28 21:42:13 +02:00
Oliver Gondža 7e1fc28c88 Merge pull request #799 from imod/JENKINS-17555 2013-09-28 11:51:24 +02:00
Oliver Gondža ca067fd273 [JENKINS-19752] Forgotten debug statement 2013-09-26 18:08:40 +02:00
Oliver Gondža 82af0fb562 [JENKINS-19752] Test 2013-09-26 16:34:39 +02:00
Oliver Gondža 2b2a5b4d72 Junit 4 2013-09-26 16:19:49 +02:00
Oliver Gondža 786c1d8993 Merge pull request #938 from vjuranek/vjuranek-JENKINS-19488 2013-09-21 18:37:42 +02:00
Oliver Gondža 66fdeab216 [JENKINS-19488] test for #938 2013-09-21 18:28:49 +02:00
christ66 562204628e Add @DataBoundConstructor to SleepBuilder along with test unit. 2013-09-17 17:26:12 -07:00
Stefan Wolf 92e81bf0c9 Merge branch 'master' into aggregate-test-result
Conflicts:
	changelog.html
2013-09-17 20:55:53 +02:00
Jesse Glick 41a4ef6526 Random failure.
https://jenkins.ci.cloudbees.com/job/core/job/jenkins_main_trunk/1199/testReport/hudson.tasks/FingerprinterTest/fingerprintCleanup/
java.lang.AssertionError: expected:<[hudson.model.FreeStyleProject@590e5b8[test0]]> but was:<[]>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at hudson.tasks.FingerprinterTest.fingerprintCleanup(FingerprinterTest.java:302)
2013-09-16 17:23:33 -04:00
Jesse Glick 8c59dc7939 JUnit 4.
And ignoring an occasionally failing test:
https://jenkins.ci.cloudbees.com/job/core/job/jenkins_main_trunk/1198/testReport/junit/hudson.model/UpdateCenter2Test/testInstall/
Sep 16, 2013 12:39:53 PM com.gargoylesoftware.htmlunit.html.HtmlPage loadJavaScriptFromUrl
SEVERE: Error loading JavaScript from [http://localhost:50727/update-center.json?id=default&version=1.532-SNAPSHOT%20(private-09%2F16%2F2013%2015%3A35%20GMT-jenkins)].
java.io.IOException: GET http://localhost:50727/update-center.json?id=default&version=1.532-SNAPSHOT%20(private-09%2F16%2F2013%2015%3A35%20GMT-jenkins) failed
	at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:130)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1456)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:988)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:953)
	at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:359)
	at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:223)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:556)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:487)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:451)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:458)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:918)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:182)
	at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:200)
	at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:619)
	at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:886)
	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:529)
	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:536)
	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:891)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1133)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:177)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:456)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:332)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
	at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1811)
	at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1802)
	at org.jvnet.hudson.test.HudsonTestCase$WebClient$goTo.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
	at hudson.model.UpdateCenter2Test.testInstall(UpdateCenter2Test.groovy:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:428)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:290)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:150)
	at java.net.SocketInputStream.read(SocketInputStream.java:121)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
	at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
	at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
	at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
	at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:101)
	... 55 more
2013-09-16 14:00:31 -04:00
Oliver Gondža 37d1b8d7a4 Merge pull request #855 from olivergondza/node-permissions 2013-09-16 11:00:22 +02:00
Kohsuke Kawaguchi d5eccdb23f Fixing more test flakiness 2013-09-15 09:47:07 -07:00
Kohsuke Kawaguchi 79ffc5eaa8 fixing tets flakines 2013-09-15 09:45:36 -07:00
Kohsuke Kawaguchi b18ae5af38 wait for the start of a build more properly 2013-09-15 08:48:54 -07:00
Kohsuke Kawaguchi 4d6d2432ad added a convenience class 2013-09-15 08:48:29 -07:00
Kohsuke Kawaguchi 5cd4c63ccb fixing a test failure 2013-09-14 16:04:37 -07:00
Kohsuke Kawaguchi 2fa89daf54 added @Terminator as the opposite of @Initializer 2013-09-14 13:04:35 -07:00
Stefan Wolf dd2b4a1805 [FIXED JENKINS-9637] Make link on Job page to aggregated Test result appear correctly 2013-09-13 22:18:08 +02:00
Oliver Gondža 83d5ac10a5 [JENKINS-18485] Enable Computer.EXTENDED_READ permission using "hudson.security.ExtendedReadPermission". 2013-09-12 17:05:06 +02:00
Jesse Glick b74750934c Merge branch 'master' into ArtifactManager-JENKINS-17236
Conflicts:
	core/src/main/java/hudson/FilePath.java
	core/src/main/java/hudson/tasks/ArtifactArchiver.java
2013-09-12 07:57:32 -04:00
Jesse Glick 259f16bdad [JENKINS-19034] Noting. 2013-09-12 07:49:17 -04:00
Jesse Glick 62ed20ee3f Merge pull request #891 from ndeloof/JENKINS-19034
[FIXED JENKINS-19034] restore missing buildnumber-ID symlink
2013-09-12 04:47:40 -07:00
Kohsuke Kawaguchi e116b906bd improving error reporting 2013-09-09 00:58:24 +01:00
Kohsuke Kawaguchi ac274f153b [JENKINS-19457]
Added a test case in an attempt to isolate the root cause of the problem, but this one works as expected. Hmm.
2013-09-05 10:40:05 +02:00
Vincent Latombe b2c20fd9db Simplify assertions since webClient#getPage already throws an exception
in case of erroneous http status code.
2013-09-04 09:29:11 +02:00
Oliver Gondža 18582f8c6d Bump args4j to 2.0.23 as an alternative to #776 2013-09-01 23:03:19 +02:00
Oliver Gondža 83410feb4e Add tests for #919 2013-09-01 20:07:25 +02:00
Vincent Latombe 6031878c80 Checking that links generated in ListView are valid 2013-08-31 11:19:26 +02:00