Commit Graph
1069 Commits
Author SHA1 Message Date
Jesse Glick e1f070bbef [JENKINS-15340] Do not try to click on links with onclick attributes as these require confirmation. 2013-04-10 13:17:30 -04:00
Jesse Glick fefb2d0b5c Diagnosis of unreproducible test failure.
https://ci.jenkins-ci.org/job/jenkins_main_trunk/2449/testReport/hudson.console/ConsoleAnnotatorTest/testCompletedStatelessLogAnnotation/
junit.framework.AssertionFailedError: expected:<3> but was:<4>
	at junit.framework.Assert.fail(Assert.java:57)
	at junit.framework.Assert.failNotEquals(Assert.java:329)
	at junit.framework.Assert.assertEquals(Assert.java:78)
	at junit.framework.Assert.assertEquals(Assert.java:234)
	at junit.framework.Assert.assertEquals(Assert.java:241)
	at junit.framework.TestCase.assertEquals(TestCase.java:409)
	at hudson.console.ConsoleAnnotatorTest.testCompletedStatelessLogAnnotation(ConsoleAnnotatorTest.java:69)
2013-04-10 13:10:50 -04:00
Jesse Glick a4d4305124 Clean up TestPluginManager.INSTANCE.rootDir at the end of the test run.
Otherwise your disk will fill up with (large) /tmp/hudson*tmp/ dirs when running plugin tests.
(Would have been better to use e.g. TemporaryFolder, but that would require incompatible changes to the test harness.)
2013-03-28 19:44:20 -04:00
Jesse Glick a9e1de4f65 Behave properly when using Surefire excludedGroups (i.e. @Category).
To reproduce SUREFIRE-974 prior to this fix, pick an arbitrary group class to (not) exclude:
mvn -f test/pom.xml -Dtest=CoreJellyTest -DexcludedGroups=hudson.ExtensionPoint test
2013-03-28 14:01:23 -04:00
Jesse Glick cedf17e00e Accidental Java 7 dependency in test. 2013-03-25 14:47:17 -04:00
Kohsuke Kawaguchi a114c693bc [FIXED JENKINS-7291] Permit flyweight tasks to run on master even when it has zero configured executors.
Always adding Computer for master as a fallback

The original proposed fix for JENKINS-7291 creates a Computer object
transitively. This seems unwise as it violates the design of Computer
as stated in the javadoc, and for example we can end up creating two
Computers for the master.

I think a better fix is to create a Computer for the master all the
time, even if there's no executors configured. The discrimination in
Queue.makeBuildable would ensure that such phantom Computer is only used
as a last resort (statistically speaking).

I've also tweaked executors.jelly a bit. I simplified it somewhat
based on the idea that "if there's only one computer to show, the
context is likely making it obvious".

(I must be missing the intricacy in the current code.)

Originally developed in a branch at
2c5b57fcc1 then squashed for clarity.
2013-03-25 11:22:20 -07:00
Jesse Glick 1bf958afb1 [JENKINS-17337] Added test for NPE. 2013-03-25 12:53:27 -04:00
Jesse Glick 56c6aa3227 [FIXED JENKINS-17331] PerJobLocalRepositoryLocator should prefer the MavenModuleSetBuild.workspace for single-module builds. 2013-03-22 17:28:24 -04:00
Seiji Sogabe d8b29df355 [FIXED JENKINS-16608] View name should not allow "..". 2013-03-23 03:40:43 +09:00
vjuranek 4a39c5ab04 Merge pull request #729 from vjuranek/fix_pull646
[FIXED JENKINS-17084] Changelog should produce output even if some chang...
2013-03-22 04:15:36 -07:00
vjuranek 8ef261ef8d Merge pull request #730 from vjuranek/label_cast_exception
[FIXED JENKINS-17128] Unquote labels before processing
2013-03-22 04:14:59 -07:00
Jesse Glick f77cd8a891 'mvn -Dtest=hudson.maven.MavenProjectTest#testDeleteSetBuildDeletesModuleBuilds test' fails on empty local repo.
~/.m2/repository/org/jvnet/hudson/main/test/multimod/moduleA/1.0-SNAPSHOT/moduleA-1.0-SNAPSHOT.jar was missing; need install goal.
Better to set a local repo so we do not pollute the real repo, and to avoid interaction between tests.
2013-03-20 08:19:25 -04:00
Jesse Glick b7f0e57a7d Updated comment in POM. 2013-03-20 07:48:56 -04:00
Jesse Glick 2166e4af42 Skipping this test did work. 2013-03-18 15:03:16 -04:00
Jesse Glick 2857f3cf42 Due to SUREFIRE-974 using excludedGroups does not seem like an option. 2013-03-18 14:23:05 -04:00
Jesse Glick 2454c06d04 FailsOnCloud 2013-03-18 12:11:23 -04:00
Jesse Glick 7c20f84737 createTmpDir → TemporaryFolder 2013-03-18 12:03:40 -04:00
Jesse Glick 085646355f JUnit 4. 2013-03-18 12:02:25 -04:00
Jesse Glick aba642e089 Suppressing RedeployPublisherTest.testBug2593 on jenkins.ci.cloudbees.com. 2013-03-18 11:34:47 -04:00
Jesse Glick 780506f6b8 Merge branch 'master' of github.com:jenkinsci/jenkins 2013-03-18 11:21:20 -04:00
Jesse Glick aeb887c12d Merge pull request #732 from pjrt/JENKINS-10502
[FIXED JENKINS-10502] Option to make the build not fail if there is nothing to archive
2013-03-18 08:21:01 -07:00
Jesse Glick 5069a2bb1b JUnit 4. 2013-03-18 11:12:07 -04:00
imod 320eea930e [FIXED JENKINS-17177] wrong build result in post build steps after failed pre build step in maven project 2013-03-16 10:53:45 +01:00
Jesse Glick 0c06e69cac Do not set a 10-sec timeout in the build(FreeStyleProject) method.
Generally the environment is responsible for imposing a general timeout on tests.
And this timeout makes debugging more difficult.
2013-03-15 16:45:20 -04:00
Jesse Glick 2ef5a7cd43 Comment only. 2013-03-15 10:39:40 -04:00
Pedro Rodriguez 470d9ce8ba Backwards compatibility added. Added allowEmptyArchive test 2013-03-13 23:37:30 -04:00
Kohsuke Kawaguchi 4d0def46cc [JENKINS-16089] needs a separator here
And since it's now a symlink that points to another symlink that then
points to the real stuff, we need recursive onion peeling.
2013-03-13 17:05:06 -07:00
Kohsuke Kawaguchi b82d944926 added a test case concerning a single extension implementing multiple extension points 2013-03-13 17:05:06 -07:00
Kohsuke Kawaguchi c7ad5e9706 [JENKINS-15533] testing if the lazy loading can gracefully tolerate a RuntimeException during unmarshalling.
At least in the current version this working as expected
2013-03-13 10:52:05 -07:00
Kohsuke Kawaguchi f7c9e81060 [JENKINS-16089] Revising 88feabb429
Based on comments from Jesse, revising the fix.

I'm now putting permlinks inside the builds/ directory to avoid the computing hassle involved in the split $JENKINS_HOME.

What we historically had in $JENKINS_HOME/jobs/JOB/lastSuccessfulBuild is also now subsumed by this feature. I initially attempted to create these permalinks in the buidl root directory, but turns out those symlinks aren't the same name as the ID of permalinks, so it doesn't mesh well.

And finally, a test!
2013-03-12 18:22:54 -07:00
Pedro Rodriguez 3a202d13a8 fixed compilation error 2013-03-10 18:40:03 -04:00
Pedro Rodriguez d3096819f6 [JENKINS-10502] Option to make the build NOT fail if there is nothing to archive 2013-03-10 01:53:55 -05:00
Jesse Glick d98716dfba [FIXED JENKINS-17138] Deleting/renaming jobs using external builds directory does not move builds. 2013-03-08 20:43:49 -05:00
Jesse Glick b90b20227e [FIXED JENKINS-17137] Bogus permalinks created when using external builds directory. 2013-03-08 20:08:00 -05:00
Vojtech Juranek 42734675f4 [FIXED JENKINS-17128] Unquote labels before processing 2013-03-08 14:04:25 +01:00
Kohsuke Kawaguchi 9514fb1a9f fixed the test regression caused by json-lib 2.4 2013-03-06 09:02:02 -08:00
Jesse Glick 508d326361 /pluginManager/advanced would sometimes claim “Update information obtained: 43 yr ago”.
Due to a confusion between 0 and -1. Easier and clearer to use 0 as the “uninitialized” value.
2013-03-06 09:28:07 -05:00
Vojtech Juranek 0c46701287 [FIXED JENKINS-17084] Changelog should produce output even if some changelog annotator fails 2013-03-05 20:55:54 +01:00
Jesse Glick 90ab89564a UDPBroadcastThreadTest was often failing on ci.jenkins-ci.org; making more lenient.
Mar 4, 2013 10:55:46 PM hudson.UDPBroadcastThread run
WARNING: UDP handling problem
java.io.IOException: Operation not permitted
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:625)
	at hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:98)
→
java.net.SocketTimeoutException: Receive timed out
	at java.net.PlainDatagramSocketImpl.receive0(Native Method)
	at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:145)
	at java.net.DatagramSocket.receive(DatagramSocket.java:725)
	at hudson.UDPBroadcastThreadTest.receiveAndVerify(UDPBroadcastThreadTest.java:70)
	at hudson.UDPBroadcastThreadTest.testMulticast(UDPBroadcastThreadTest.java:51)
2013-03-05 12:44:46 -05:00
Christoph Kutzinski 5aef97cebc Added regression test for broken Maven 2 builds with maven-failsafe-plugin [JENKINS-15865] 2013-03-03 12:10:05 +01:00
Jesse Glick ef9c30c665 Merge pull request #722 from ndeloof/master
[FIXED JENKINS-13502] Fix dependency graph computation when upstream build trigger is involved
2013-03-01 15:10:25 -08:00
Kohsuke Kawaguchi 36d7e31de6 Merge branch 'rc' 2013-02-28 19:34:07 -08:00
Kohsuke Kawaguchi a33e147a0d [FIXED JENKINS-16979]
Added backward compatible data loader and a corresponding test case.
2013-02-28 18:47:25 -08:00
Nicolas De Loof dbc212e2e3 unit test to reproduce JENKINS-13502 and confirm fix 2013-02-28 11:31:36 +01:00
Kohsuke Kawaguchi 94a537906f Merge branch 'master' into pull-667 2013-02-27 10:02:07 -08:00
Pei-Tang Huang 0d864db7f5 Merge branch 'master' of https://github.com/jenkinsci/jenkins 2013-02-23 23:01:34 +08:00
Jesse Glick 54bbbaa253 JUnit 4 broadly supported; no reason to keep a separate junit4 root just for UseRecipesWithJenkinsRuleTest. 2013-02-22 16:40:57 -05:00
Jesse Glick 5d68a20700 Using new assertFails method wherever possible to simplify tests. 2013-02-22 16:35:27 -05:00
Jesse Glick 940d743e4d interactiveBreak should never been committed without being commented out. 2013-02-21 13:22:24 -05:00
Pei-Tang Huang 427726b85f Add/update Chinese (traditional) translation. 2013-02-20 12:57:44 +08:00