Commit Graph
32590 Commits
Author SHA1 Message Date
kohsuke 38da83339b [FIXED HUDSON-4802] in 1.334. The patch was slightly modified.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23626 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 23:47:30 +00:00
kohsuke f8e2a28eb0 Seeing dead lock after the message:
Nov 9, 2009 1:46:11 PM hudson.remoting.Channel$ReaderThread run
SEVERE: I/O error in channel This side of the channel
java.io.IOException: Write end dead
	at java.io.PipedInputStream.read(PipedInputStream.java:294)
	at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249)
	at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542)
	at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at hudson.remoting.Channel$ReaderThread.run(Channel.java:849)
Nov 9, 2009 1:46:11 PM hudson.remoting.Request$2 run
SEVERE: Failed to send back a reply
java.io.IOException: Read end dead
	at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:246)
	at java.io.PipedInputStream.receive(PipedInputStream.java:210)
	at java.io.PipedOutputStream.write(PipedOutputStream.java:132)
	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)
	at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1747)
	at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1249)
	at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1203)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1387)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
	at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1538)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:329)
	at hudson.remoting.Channel.send(Channel.java:413)
	at hudson.remoting.Request$2.run(Request.java:282)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)



The thread dump indicates that the test thread is stuck at british.join(), because British channel reader thread is still alive. I remember PipedInput|OutputStream being not truly multi-thread aware, so changing it to our own version to see if that fixes the problem without my digging further.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23625 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 23:43:20 +00:00
kohsuke b22bfeaaf1 added logging
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23621 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 23:28:08 +00:00
kohsuke 80db087f64 added a bunch of CLI commands to Computer.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23617 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 22:10:17 +00:00
kohsuke 846851344a doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23616 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 22:05:24 +00:00
kohsuke b5b1789c37 Merged revisions 23607 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r23607 | kohsuke | 2009-11-09 10:00:50 -0800 (Mon, 09 Nov 2009) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23614 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 21:17:19 +00:00
mindless d4cb259440 [FIXED HUDSON-4784] translation from thosor
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23608 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 18:04:17 +00:00
mindless 14a37dba5b [FIXED HUDSON-4557] Moving consoleText handling from jelly to java in r20927
caused Content-Length header to no longer be written.  wget/curl seem ok with
this, but browsers display nothing for "view as plain text".
Stapler's DefaultScriptInvoker wraps the OutputStream in a filter to prevent
jelly from flushing the output; copied this into Run.doConsoleText and now
the Content-Length header gets written again, for both compressed/plain output.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23605 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 17:53:34 +00:00
mindless 36c1d4e0ac [HUDSON-4562] keep / in zip link if glob pattern is nonempty
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23603 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 17:35:42 +00:00
kohsuke 51052d3c46 Merged revisions 23599,23601 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r23599 | kohsuke | 2009-11-09 08:51:27 -0800 (Mon, 09 Nov 2009) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_333
........
  r23601 | kohsuke | 2009-11-09 08:51:57 -0800 (Mon, 09 Nov 2009) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23602 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 16:56:34 +00:00
mindless 1e02c7c071 [FIXED HUDSON-4562] remove extra / in "all files in zip" links
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23571 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-08 18:40:01 +00:00
mindless 6ebcd2d97d [FIXED HUDSON-4765] Fix broken links for failed tests on MatrixBuild page.
Also removed extra slashes in links on MatrixTestResult page.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23569 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-08 17:44:44 +00:00
mindless 3963a49d2e add Manage Plugins link in sidepanel of UpdateCenter
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23568 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-08 15:37:13 +00:00
mindless 2b1a457f68 Deprecate util.StringConverter2 (extends deprecated XStream class,
but can't change it here to keep binary compatibility).
Add new HeapSpaceStringConverter to replace this.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23564 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-08 01:50:42 +00:00
kohsuke 05c93bf637 Fixed the cascade of the "2nd instance" problem.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23557 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-07 00:55:46 +00:00
kohsuke ebfa6a0e2d the test is still failing. adding more delay
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23556 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-07 00:51:39 +00:00
kohsuke 97711f3d3c it should be abstract since by itself it defines no test
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23555 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-07 00:50:19 +00:00
kohsuke d4f345f98e Maven picks up *Test, so renaming
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23554 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-07 00:49:57 +00:00
mindless 2be4e9691d Move ItemListener.onCreated notifiction from doCreateProject to createProject
and createProjectFromXML.  This add notification that was missing for project
creation from XML or CLI, and will catch anything else using Hudson.createProject
directly.  Added unit test for CLI case.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23553 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-07 00:12:48 +00:00
kohsuke bae8b35c8f refactored the commonality out
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23552 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 23:22:44 +00:00
kohsuke 8fcda35317 Future.cancel is asynchronous, so it can return before the process is actually killed
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23551 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 23:20:06 +00:00
kohsuke 461c315daa This is not the right place to do escaping, or else we see <h3> and <pre> looses the effect
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23549 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 22:47:00 +00:00
kohsuke 7816b82f10 Hudson on Hudson finds this test brittle, so changing the way the test works.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23547 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 22:27:05 +00:00
kohsuke b73f620e88 more test case
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23546 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 22:26:13 +00:00
kohsuke 61d341e21d assertNotSame would box them, so it won't achieve the intended test
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23545 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 22:14:43 +00:00
kohsuke 99243dd9db Still seeing failures caused by stale cache, so renaming it instead of cleaning it across my Hudson cluster.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23544 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 22:10:45 +00:00
kohsuke 4c6319fe4f - CLI "build" command now supports passing parameters.
- introduced SimpleParameterDefinition to eliminate the common code

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23543 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 21:43:15 +00:00
kohsuke 50fca25229 it should be volatile, I think
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23531 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 19:56:58 +00:00
kohsuke 51669e429d typo
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23530 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 19:25:13 +00:00
mindless 5f1c3fc878 after new job creation, remove view/{default-view} from redirect URL if created in default view
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23529 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:46:00 +00:00
jglick ebb5800937 Tweaking license text.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23528 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:39:49 +00:00
jglick 6ccad2bc32 [FIXED HUDSON-4611] hudson.proc.RemoteProc.kill() was a no-op.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23526 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:34:11 +00:00
jglick 01f8034b32 If a process sends data to stdout but no stdout is configured, an NPE can result.
Observed only inside a unit test, but makes sense to treat out symmetrically with err and in.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23525 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:32:49 +00:00
jglick 03842a08c9 If a process sends data to stdout but no stdout is configured, an NPE can result.
Observed only inside a unit test, but makes sense to treat out symmetrically with err and in.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23524 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:31:51 +00:00
sogabe b756b5a473 Japanese localization
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23520 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 13:24:26 +00:00
mindless c9aa94fca9 [HUDSON-4784] move help about LDAP groups from global matrix help to a new
help button next to the Add user/group button.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23519 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 08:07:02 +00:00
mindless 373a33c3e2 [FIXED HUDSON-4580] Show "Latest Test Results" link even when a new build is running.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23510 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 23:28:32 +00:00
abayer 91bffe3b46 Adding SaveableListener, with calls to SaveableListener.fireOnChange in Saveable.save implementations
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23502 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 16:11:47 +00:00
kohsuke 26547976ac Initialized merge tracking via "svnmerge" with revisions "1-23494" from
https://www.dev.java.net/svn/hudson/branches/rc


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23496 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:56:26 +00:00
kohsuke 11908a77b4 making it unambiguous again
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23491 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:55:47 +00:00
kohsuke c23e5ae206 List erases to List no matter what the type parameter is, so these two are unnecessary
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23490 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:41:54 +00:00
kohsuke 693734fe2d fixed a binary incompatibility introduced by rev.23326 due to the way generics/erasure works
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23489 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:39:46 +00:00
kohsuke b307fe14c2 Retry shouldn't kick in if the build is aborted during checkout.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23485 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:05:40 +00:00
mindless da4a8916ab tweak centering of first executor a bit (for mrooney)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23481 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 23:44:00 +00:00
kohsuke b2c6ece47a Fixed a race condition in interrupting pending remote calls.
Deadlocked threads from Tom Huybrechts
----
"Channel reader thread: build-tr-01" Id=6188858 BLOCKED on hudson.remoting.UserRequest@7641246a owned by "Executor #1 for build-tr-01 : executing ORBIS_HAP_Core-Java5 #213 / waiting for hudson.remoting.Channel@560c2a29:build-tr-01" Id=379
	at hudson.remoting.Request.onCompleted(Request.java:223)
	-  blocked on hudson.remoting.UserRequest@7641246a
	at hudson.remoting.Request.abort(Request.java:231)
	at hudson.remoting.Channel.terminate(Channel.java:596)
	-  locked java.util.Hashtable@49c47d9e
	-  locked hudson.remoting.Channel@560c2a29
	at hudson.remoting.Channel$ReaderThread.run(Channel.java:871)
Executor #1 for build-tr-01 : executing ORBIS_HAP_Core-Java5 #213 / waiting for hudson.remoting.Channel@560c2a29:build-tr-01" Id=379 BLOCKED on hudson.remoting.Channel@560c2a29 owned by "Channel reader thread: build-tr-01" Id=6188858
	at hudson.remoting.Channel.send(Channel.java:409)
	-  blocked on hudson.remoting.Channel@560c2a29
	at hudson.remoting.Request.call(Request.java:127)
	-  locked hudson.remoting.UserRequest@7641246a
	at hudson.remoting.Channel.call(Channel.java:549)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23476 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 20:22:02 +00:00
kohsuke d8674e5b5a Merged revisions 23422,23427-23428,23437,23439,23448 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r23422 | kohsuke | 2009-11-02 13:18:10 -0800 (Mon, 02 Nov 2009) | 1 line
  
  [FIXED HUDSON-4752] integrated the new version of XStream
........
  r23427 | kohsuke | 2009-11-02 14:15:24 -0800 (Mon, 02 Nov 2009) | 3 lines
  
      Fixed <tt>NotExportableException</tt> when making a remote API call on a project.
      (<a href="https://hudson.dev.java.net/servlets/BrowseList?list=users&by=thread&from=2222483">report</a>)
........
  r23428 | kohsuke | 2009-11-02 14:24:39 -0800 (Mon, 02 Nov 2009) | 3 lines
  
      Fixed <tt>IllegalArgumentException: name</tt>
      (<a href="http://old.nabble.com/bug-1.331-to26145963.html">report</a>)
........
  r23437 | kohsuke | 2009-11-02 18:29:06 -0800 (Mon, 02 Nov 2009) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_332
........
  r23439 | kohsuke | 2009-11-02 18:29:22 -0800 (Mon, 02 Nov 2009) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r23448 | kohsuke | 2009-11-02 19:06:11 -0800 (Mon, 02 Nov 2009) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23474 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:45:20 +00:00
kohsuke eb7ce97519 because of a new branch, 'rc' is no longer unique
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23473 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:42:34 +00:00
kohsuke 3a850044a4 use the latest&greatest
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23472 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:32:59 +00:00
kohsuke 6f4edfcbf5 this is more portable.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23471 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:29:25 +00:00
mindless c825c2bbfd Check if jna-posix used a fallback java impl which does not support many operations.
If so, don't use posix in Util.createSymlink.
When posix IS used but fails, include errno in log.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23470 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:25:14 +00:00