Commit Graph
206 Commits
Author SHA1 Message Date
kohsuke 765231cc57 added a test to make sure console annotation works as expected in the polling log.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28437 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-09 01:18:56 +00:00
kohsuke ea92d3aa13 Integrated a newer version of htmlunit that performs XHR calls at the correct timing.
This fixes the false positive test failure that I was struggling with since yesterday.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28266 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-04 19:30:06 +00:00
kohsuke 88b27b9e2b making improvements to the JavaScript debugger.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28230 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-04 02:40:30 +00:00
kohsuke c6acb5b8d5 [FIXED HUDSON-2137]
Merged revisions 27137,27564,27566-27567,27578,27586,27599,27603,27606-27609,27611,27616,27626-27632,27640,27654-27656,27687,27701,27801,27816,27819,27843-27845,28087,28158-28161 via svnmerge from 
https://www.dev.java.net/svn/hudson/branches/HUDSON-2137

........
  r27137 | kohsuke | 2010-02-08 08:46:16 -0800 (Mon, 08 Feb 2010) | 1 line
  
  experimenting with abstractions
........
  r27564 | kohsuke | 2010-02-16 07:58:26 -0800 (Tue, 16 Feb 2010) | 1 line
  
  bundling makes it easier for caller to handle ConsoleAnnotator
........
  r27566 | kohsuke | 2010-02-16 08:49:48 -0800 (Tue, 16 Feb 2010) | 1 line
  
  this should work with Runs, not AbstractBuilds
........
  r27567 | kohsuke | 2010-02-16 08:54:06 -0800 (Tue, 16 Feb 2010) | 1 line
  
  simplified
........
  r27578 | kohsuke | 2010-02-16 12:26:11 -0800 (Tue, 16 Feb 2010) | 1 line
  
  still a work in progress, but committing once to pull in trunk changes
........
  r27586 | kohsuke | 2010-02-16 14:35:37 -0800 (Tue, 16 Feb 2010) | 1 line
  
  making more progress
........
  r27599 | kohsuke | 2010-02-16 19:22:01 -0800 (Tue, 16 Feb 2010) | 2 lines
  
  hooking up the side that writes annotations.
  still a work in progress.
........
  r27603 | kohsuke | 2010-02-16 23:43:35 -0800 (Tue, 16 Feb 2010) | 3 lines
  
  what appears to me as the first cut of hooking up the reader side of the annotations.
  
  I haven't even run it yet --- this just passed the compilation, and I'm calling it a day.
........
  r27606 | kohsuke | 2010-02-17 09:15:16 -0800 (Wed, 17 Feb 2010) | 1 line
  
  demo instance hook up
........
  r27607 | kohsuke | 2010-02-17 11:27:02 -0800 (Wed, 17 Feb 2010) | 3 lines
  
  one more utility method.
  
  I never understood what the point of letting the skip method skip less.
........
  r27608 | kohsuke | 2010-02-17 11:56:23 -0800 (Wed, 17 Feb 2010) | 3 lines
  
  - moved LargeText subtype to its own class
  - skipping log output was done incorrectly --- it had to skip N bytes where it was skipping N chars.
  - hooked up console annotations for completed builds.
........
  r27609 | kohsuke | 2010-02-17 12:01:46 -0800 (Wed, 17 Feb 2010) | 1 line
  
  copyright header
........
  r27611 | kohsuke | 2010-02-17 13:18:10 -0800 (Wed, 17 Feb 2010) | 1 line
  
  introduced a mechanism to register extension during an unit test.
........
  r27616 | kohsuke | 2010-02-17 13:38:12 -0800 (Wed, 17 Feb 2010) | 1 line
  
  test case for console annotations
........
  r27626 | kohsuke | 2010-02-17 15:23:06 -0800 (Wed, 17 Feb 2010) | 1 line
  
  removing test ConsoleAnnotator as I write tests as tests
........
  r27627 | kohsuke | 2010-02-17 16:06:13 -0800 (Wed, 17 Feb 2010) | 1 line
  
  added a multi-phase cooperative locking mechanism useful during the debugging
........
  r27628 | kohsuke | 2010-02-17 16:06:41 -0800 (Wed, 17 Feb 2010) | 1 line
  
  testing progressive log annotation
........
  r27629 | kohsuke | 2010-02-17 16:20:32 -0800 (Wed, 17 Feb 2010) | 1 line
  
  adding a test for ConsoleAnnotation that's explicitly placed.
........
  r27630 | kohsuke | 2010-02-17 16:23:02 -0800 (Wed, 17 Feb 2010) | 1 line
  
  removing test ConsoleAnnotation as I write tests as tests
........
  r27631 | kohsuke | 2010-02-17 16:28:50 -0800 (Wed, 17 Feb 2010) | 1 line
  
  tweaking the abstraction a bit.
........
  r27632 | kohsuke | 2010-02-17 16:44:21 -0800 (Wed, 17 Feb 2010) | 1 line
  
  parameterized the context type so that this can be used in places other than the build console output, such as polling logs, slave logs, and so on.
........
  r27640 | kohsuke | 2010-02-17 17:27:52 -0800 (Wed, 17 Feb 2010) | 1 line
  
  bug fix
........
  r27654 | kohsuke | 2010-02-17 22:53:04 -0800 (Wed, 17 Feb 2010) | 1 line
  
  doc improvement
........
  r27655 | kohsuke | 2010-02-17 22:53:59 -0800 (Wed, 17 Feb 2010) | 1 line
  
  doc improvement
........
  r27656 | kohsuke | 2010-02-17 23:10:42 -0800 (Wed, 17 Feb 2010) | 1 line
  
  test case for adjacent tags
........
  r27687 | kohsuke | 2010-02-19 14:39:21 -0800 (Fri, 19 Feb 2010) | 1 line
  
  introduced a facotry and descriptor. This allows them to define configuration pages, allow users to disable/enable them, plus define custom behaviors.
........
  r27701 | kohsuke | 2010-02-19 18:23:52 -0800 (Fri, 19 Feb 2010) | 1 line
  
  defining a mechanism for ConsoleAnnotatorFactory and ConsoleAnnotationDescriptor to define script.js and have them imported into the console output page
........
  r27801 | kohsuke | 2010-02-22 11:59:16 -0800 (Mon, 22 Feb 2010) | 1 line
  
  now embedding annotations inside the console output log file.
........
  r27816 | kohsuke | 2010-02-22 15:45:04 -0800 (Mon, 22 Feb 2010) | 1 line
  
  introduced a convenience method for unit tests
........
  r27819 | kohsuke | 2010-02-22 17:37:05 -0800 (Mon, 22 Feb 2010) | 5 lines
  
  As an example of using embedded console annotations, implementing Ant target invocation outlines.
  
  It might be better to make the concept of outline more generally reusable, so that different kinds of outlines can be placed into the same container element for a single hierarchical representation.
  
  Still a work in progress.
........
  r27843 | kohsuke | 2010-02-23 16:12:13 -0800 (Tue, 23 Feb 2010) | 1 line
  
  for now, disable this for production usage, until I work out a better UI.
........
  r27844 | kohsuke | 2010-02-23 19:08:00 -0800 (Tue, 23 Feb 2010) | 1 line
  
  started working on annotating exception.
........
  r27845 | kohsuke | 2010-02-23 19:08:33 -0800 (Tue, 23 Feb 2010) | 1 line
  
  more TODOs for myself
........
  r28087 | kohsuke | 2010-03-01 10:03:55 -0800 (Mon, 01 Mar 2010) | 1 line
  
  formatting changes
........
  r28158 | kohsuke | 2010-03-02 17:00:00 -0800 (Tue, 02 Mar 2010) | 1 line
  
  ConsoleAnnotation and ConsoleAnnotator are too confusing.
........
  r28159 | kohsuke | 2010-03-02 17:02:02 -0800 (Tue, 02 Mar 2010) | 1 line
  
  doc improvement
........
  r28160 | kohsuke | 2010-03-02 17:05:14 -0800 (Tue, 02 Mar 2010) | 1 line
  
  more doc improvements.
........
  r28161 | kohsuke | 2010-03-02 17:11:59 -0800 (Tue, 02 Mar 2010) | 1 line
  
  more doc improvement
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28173 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 15:37:55 +00:00
kohsuke 0a6236c3f9 added a mechanism to fake a process execution.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27995 71c3de6d-444a-0410-be80-ed276b4c234a
2010-02-27 00:28:56 +00:00
kohsuke 2676adca52 class initialization of Hudson is much more work than that of Util, so pushing these small utilities out to Util to reduce the overhead of remoting.
Plus it helps to keep Hudson.java smaller

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27448 71c3de6d-444a-0410-be80-ed276b4c234a
2010-02-13 01:30:56 +00:00
kohsuke 0478efb681 override the thread name to make the thread dump more useful, especially in case of a hang.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27302 71c3de6d-444a-0410-be80-ed276b4c234a
2010-02-11 01:41:09 +00:00
kohsuke 8bf35b2094 Merged revisions 27147,27149-27151,27153 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r27147 | kohsuke | 2010-02-08 11:10:47 -0800 (Mon, 08 Feb 2010) | 1 line
  
  [FIXED HUDSON-5536] in 1.345 and added a test case.
........
  r27149 | kohsuke | 2010-02-08 12:01:18 -0800 (Mon, 08 Feb 2010) | 1 line
  
  added a backward compatibility measure to expose variables in both forms
........
  r27150 | kohsuke | 2010-02-08 12:02:19 -0800 (Mon, 08 Feb 2010) | 1 line
  
  forgot to commit this(?)
........
  r27151 | kohsuke | 2010-02-08 12:24:51 -0800 (Mon, 08 Feb 2010) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_345
........
  r27153 | kohsuke | 2010-02-08 12:25:04 -0800 (Mon, 08 Feb 2010) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27154 71c3de6d-444a-0410-be80-ed276b4c234a
2010-02-08 20:28:39 +00:00
kohsuke 1b3c1f92fd [HUDSON-5391] Fixed the infamous Turkish bug.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26650 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-28 21:38:01 +00:00
kohsuke 92ca98c4d6 Merged revisions 24854,24862,24946,25411,25418-25419,25478,25699,25701,25770,25832,25834,26401-26404 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/test-result-refactor

........
  r24854 | bshine | 2009-12-22 12:52:32 -0800 (Tue, 22 Dec 2009) | 82 lines
  
  Generalize the junit-specific TestResult class into AbstractTestResult,
  and allow plugins to contribute test result parsers that generate
  AbstractTestResult subclasses.
  
  In order to support the increasing variety of test result file formats, we
  have added two extension points:
  
   * AbstractTestResult: a class that represents a general concept of a test
     result, without any language or implementation specifics.
  
   * AbstractTestResultParser: an API for parsing test result files and
     producing an instance of a concrete subclass of AbstractTestResult
  
   
   AbstractModelObject
      \
       TestObject 
          \
           AbstractTestResult is-a ExtensionPoint
                 \
                  |-- CaseResult 
                  |
                  |-- SimpleCaseResult
                  |
                  |-- TabulatedResult
                        \
                         |-- ClassResult
                         |
                         |-- MetaTabulatedResult
                               \
                                 |-- TestResult 
                                 |
                                 |-- PackageResult
  
  
   AbstractTestResultParser is-a ExtensionPoint
      \
       JUnitParser
  
  We have refactored the JUnit result publishing system so that it is "just"
  a subclass of AbstractTestResult. We have promoted functionality into
  AbstractTestResult from TestResult; we have also promoted jelly resources
  from TestResult up to AbstractTestResult. Together, these changes make it
  possible -- without much code -- to add a test result parser and a test
  result publisher that can participate in the test result ecosystem. See,
  for instance, TrivialTestResult, with its two supporting classes,
  TrivialTestResultAction and TrivialTestResultRecorder.
  
  We have moved the format-agnostic classes in the test result system into
  the hudson.tasks.test package, from hudson.tasks.junit:
     TestObject
     MetaTabulatedResult
     TabulatedResult
  
  We have attempted at every step to preserve backwards compatibility both
  with the existing APIs and with test results stored by earlier versions of
  Hudson. Numerous tests verify that the old APIs and historical data are
  still readable; all of the tests in hudson.tasks.junit operate on stored
  builds and test results created by Hudson around version 1.320. These
  tests have been created and expanded to exercise the HTML ui and the XML
  api of the test result publishing system, as well as the underlying java
  logic.
  
     hudson.tasks.junit.CaseResultTest
     hudson.tasks.junit.JUnitParserTest
     hudson.tasks.junit.JUnitResultArchiverTest 
     hudson.tasks.junit.TestResultLinksTest 
     hudson.tasks.junit.TestResultPublishingTest   
     
  This checkin also includes several smaller changes that were enacted in the course of this work: 
     Added convenience/utility methods
        - HudsonTestCase.java
     
     Added a read-only textbox.
        - core/src/main/resources/lib/form/readOnlyTextbox.jelly
  
     Added a standalone builder that touches all files in the workspace.
        - TouchBuilder.java
  
     Added a test: testUnwrappedLongString
        - src/test/java/hudson/model/ApiTest.java
........
  r24862 | bshine | 2009-12-22 17:30:04 -0800 (Tue, 22 Dec 2009) | 1 line
  
  Recreate the hudson.tasks.junit.TestObject class, and adapt the TestResultAction.Data class to be friendly to the refactoring. This makes the claim plugin and the junit-attachments plugin compile and pass tests against this branch.
........
  r24946 | bshine | 2009-12-24 21:59:14 -0800 (Thu, 24 Dec 2009) | 1 line
  
  Getting rid of some TODOs that don't apply anymore. The TODOs that remain are meaningful.
........
  r25411 | kohsuke | 2010-01-05 18:14:15 -0800 (Tue, 05 Jan 2010) | 3 lines
  
  Cosmetic change. It's not necessary to define our own constant for empty list when there's already one in JDK.
  
  I also think creating and wasting singleton list as needed is probably better use of memory than having a singleton list tied in memory for every CaseResult. It improves cognitive overhead for people reading the code, and modern GCs are very good at handling short-lived objects, and I don't see this method called in a busy loop.
........
  r25418 | kohsuke | 2010-01-05 18:37:17 -0800 (Tue, 05 Jan 2010) | 1 line
  
  pushed the get/setDescription implemention up to the AbstractTestResultAction. I believe the default implementation is sufficient for most purposes, and typical subtypes don't want to bother with the details that descriptions are actually persisted by the owning Action instead of in TestObjects.
........
  r25419 | kohsuke | 2010-01-05 18:59:29 -0800 (Tue, 05 Jan 2010) | 1 line
  
  we should allow the parse method to be called outside of the build, so this should be TaskListener.
........
  r25478 | kohsuke | 2010-01-07 11:44:34 -0800 (Thu, 07 Jan 2010) | 14 lines
  
  The ExtensionPoint interface primarily serves as a marker to call attention of the plugin developers as to where to hook into Hudson. Since the act of implementing AbstractTestResultParser naturally make them to implement AbstractTestResult, I'm removing the ExtensionPoint marker from this abstract class.
  
  The all() method is removed after the following discussion:
  
  >> - I propose we remove AbstractTestResult.all(). I don't think being  
  >> able
  >> to enumerate AbstractTestResult subtypes buy us anything, since those
  >> can only be instantiated by parsers that intimately know how to
  >> instantiate them properly. Or did I miss the purpose of this?
  > 
  > I put in the all method because it was suggested by the wiki:
  > "You also need to define the static "all" method..."
  > http://wiki.hudson-ci.org/display/HUDSON/Defining+a+new+extension+point
  > so I don't have a problem with removing it.
........
  r25699 | bshine | 2010-01-11 16:34:12 -0800 (Mon, 11 Jan 2010) | 1 line
  
  Removed a test that exercised AbstractTestResult.all(), because that API has been removed.
........
  r25701 | bshine | 2010-01-11 17:05:40 -0800 (Mon, 11 Jan 2010) | 1 line
  
  Don't test getDescription() on a TrivialTestResult because the TrivialTestResult doesn't actually implement a description.
........
  r25770 | bshine | 2010-01-13 11:52:27 -0800 (Wed, 13 Jan 2010) | 1 line
  
  Added a failing test to demonstrate bug HUDSON-5246, inter-build diffs for junit test results are wrong.
........
  r25832 | bshine | 2010-01-14 13:50:15 -0800 (Thu, 14 Jan 2010) | 1 line
  
  The id field was accidentally declared here; it was also declared in hudson.tasks.test.TestObject. This id field here is always hidden by the id field in the more-concrete TestObject. Therefore, I'm removing this field.
........
  r25834 | bshine | 2010-01-14 13:55:10 -0800 (Thu, 14 Jan 2010) | 5 lines
  
  Fixes bugs with getPreviousResult:
  HUDSON-5269 TestResult.getPreviousResult returns null when it shouldn't
  HUDSON-5246 test-result-refactor branch: inter-build diffs for junit test results are wrong 
........
  r26401 | kohsuke | 2010-01-25 17:24:51 -0800 (Mon, 25 Jan 2010) | 7 lines
  
  renamed:
   AbstractTestResultParser -> TestResultParser
   AbstractTestResult -> TestResult
  
  This discussion is in http://n4.nabble.com/Review-requested-Test-Result-Refactoring-td978100.html#a978100
  
  The conclusion of this renaming proposal isn't clear, but I'm assuming it's OK.
........
  r26402 | kohsuke | 2010-01-25 17:27:57 -0800 (Mon, 25 Jan 2010) | 1 line
  
  elsewhere in Hudson it's the "display name" that indicates a human readable name that programs don't try to interpret.
........
  r26403 | kohsuke | 2010-01-25 17:31:38 -0800 (Mon, 25 Jan 2010) | 1 line
  
  typo
........
  r26404 | kohsuke | 2010-01-25 17:35:41 -0800 (Mon, 25 Jan 2010) | 1 line
  
  doc improvement.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26406 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-26 01:49:47 +00:00
kohsuke e07b0c7d1e allow subtypes to override the update center behavior.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26208 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-21 22:00:01 +00:00
kohsuke 858ab21bd8 UpdateCenter.neverUpdate is deprecated as of 1.333
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26206 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-21 21:39:45 +00:00
kohsuke 5ecd3d0461 TAB -> WS
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25786 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-13 23:49:25 +00:00
kohsuke 20a00c5e0d turns out I couldn't use it, but since I wrote it, I'm committing it.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25774 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-13 20:08:43 +00:00
kohsuke 1fd0978c76 doc improvement
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25773 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-13 20:08:21 +00:00
kohsuke 58863d8808 use the latest version of htmlunit
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24869 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-23 18:45:48 +00:00
kohsuke 03b4488054 increasing the time out as I'm seeing errors like this, which is legitimate:
java.lang.AssertionError: Hudson is still doing something after 30000ms: queue=[] building=[snap-dep-test-down #2]
	at org.jvnet.hudson.test.HudsonTestCase.waitUntilNoActivityUpTo(HudsonTestCase.java:801)
	at org.jvnet.hudson.test.HudsonTestCase.waitUntilNoActivity(HudsonTestCase.java:772)
	at hudson.maven.MavenSnapshotTriggerTest.testMixedTransitiveSnapshotTrigger(MavenSnapshotTriggerTest.java:69)
	at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:310)
	at com.sun.maven.junit.LocalTestCaseRunner.runTests(LocalTestCaseRunner.java:100)
	at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:51)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
	at hudson.remoting.UserRequest.perform(UserRequest.java:104)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:250)
	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)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24847 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-22 17:22:10 +00:00
kohsuke bae1397472 improved error diagnostics in case of a test failure
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24794 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-21 23:28:20 +00:00
kohsuke 69d739ecd3 this hopefully increases the stability
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24638 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-15 20:04:52 +00:00
kohsuke b0f03b740b removed the fragility of the tests that depend on hard-coded wall clock time
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24594 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-14 16:46:22 +00:00
mindless e9009a6de1 add newInstance so these test builders are usable when running via hpi:run
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24467 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-08 00:20:21 +00:00
kohsuke 72c576e97c making the same fix I made to maven-hpi-plugin to prevent a failure due to a hard-coded limitation in Jetty.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24390 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-04 01:56:55 +00:00
kohsuke d69a5351f6 enhancing IO convenience code.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24281 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-01 14:37:57 +00:00
kohsuke 0241901f48 handle errors, too.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23708 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-13 18:40:36 +00:00
kohsuke d4ad980691 Merged revisions 23689-23691 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r23689 | kohsuke | 2009-11-12 15:35:27 -0800 (Thu, 12 Nov 2009) | 1 line
  
  improved diagnosability
........
  r23690 | kohsuke | 2009-11-12 18:03:42 -0800 (Thu, 12 Nov 2009) | 1 line
  
  adding a probe to diagnose a sporadic test failure
........
  r23691 | kohsuke | 2009-11-12 18:14:21 -0800 (Thu, 12 Nov 2009) | 1 line
  
  I think this is causing a test failure in ExtendedReadPermissionTest, as the existing alice/bob/charlie users prevent the data on the disk from loading.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23692 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-13 02:18:09 +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 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
abayer 86c5c739fa Fixing UpdateSite.neverUpdate and tests to use it properly.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23459 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 20:41:44 +00:00
kohsuke 3d1e830829 fixed a test failure.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23354 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 18:21:41 +00:00
abayer 1f30e92055 Fixing compilation error/incompatibility
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23333 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 23:46:09 +00:00
kohsuke 720be7d7a1 Merged revisions 23183,23185,23245,23256,23266,23279-23284,23286 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/multiple-update-sources

........
  r23183 | abayer | 2009-10-25 11:53:17 -0700 (Sun, 25 Oct 2009) | 1 line
  
  First chunk of work towards supporting multiple update centers - infrastructure in place for it, and default update center treated as only one of multiple - have to use slightly modified update-center.json though
........
  r23185 | abayer | 2009-10-25 12:25:49 -0700 (Sun, 25 Oct 2009) | 1 line
  
  a number of tweaks - among other things, now works properly with additional update centers defined in hudson.model.UpdateCenter.xml - try using http://andrewbayer.com/images/hello-world/helloWorld-update-center.json as second update center
........
  r23245 | abayer | 2009-10-27 13:45:25 -0700 (Tue, 27 Oct 2009) | 1 line
  
  Modified to support existing default update-center.json
........
  r23256 | kohsuke | 2009-10-27 18:30:15 -0700 (Tue, 27 Oct 2009) | 7 lines
  
  - moved data binding of update-center.json to UpdateSource.
  - moved some of the UpdateSource property into JSON, to improve the user experience when adding an update source.
    the user should just type in one URL, and everything else should happen automatically.
  - it doesn't make sense for UpdateSource to rely on UpdateCenterConfiguration, since behaviors cannot be
    modified per UpdateSource basis. Instead, leaving it in UpdateCenter allows us to maintain backward compatible
    behaviors with the existing custom UpdateCenterConfiguration implementation.
........
  r23266 | kohsuke | 2009-10-27 19:29:24 -0700 (Tue, 27 Oct 2009) | 1 line
  
  serve id inside JSON.
........
  r23279 | kohsuke | 2009-10-28 10:44:00 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Do not special-case "default" ID. Receive hudson.war updates from wherever that provides one.
........
  r23280 | kohsuke | 2009-10-28 10:50:57 -0700 (Wed, 28 Oct 2009) | 1 line
  
  formatting change.
........
  r23281 | kohsuke | 2009-10-28 11:30:40 -0700 (Wed, 28 Oct 2009) | 1 line
  
  typo
........
  r23282 | kohsuke | 2009-10-28 11:45:06 -0700 (Wed, 28 Oct 2009) | 2 lines
  
  - added the UI to remove sites.
  - persistence of UpdateSource happens more automatically now.
........
  r23283 | kohsuke | 2009-10-28 11:50:04 -0700 (Wed, 28 Oct 2009) | 1 line
  
  UpdateSource -> UpdateSite to align terminology with Eclipse.
........
  r23284 | kohsuke | 2009-10-28 11:55:03 -0700 (Wed, 28 Oct 2009) | 5 lines
  
  Actually, for now, just having a programmatic modification to UpdateSite would satisfy the primary use case.
  
  And I'd like to upgrade YUI to a more recent version so that we can use its DataTable for UI. Plus the single update center model encourages the community to bring the code into the Hudson project, which is something we'd like to keep.
  
  So all in all, I'm postponing the UI work.
........
  r23286 | kohsuke | 2009-10-28 13:07:19 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Renaming and bug fixes.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23326 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:27:46 +00:00
kohsuke 4f7d907ab1 allow slaves to be started with the debug option.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23289 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-28 20:44:27 +00:00
abayer 34387b2fef Added meetsMavenReqVersion method to Maven.MavenInstallation - generalization of logic from isMaven2_1 - tests modified to check whether default MavenInstallation meets required Maven version before using bundled Maven install instead
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23000 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-21 19:48:11 +00:00
kohsuke 5a157a2dcb fixed a test failure. We moved the update centers to hudson-ci.org.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22959 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-20 16:39:46 +00:00
kohsuke c4e5c6e0a8 fixed an inconsistent handling of context path.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22664 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-12 16:53:23 +00:00
kohsuke b989611ea8 ... so that a failure to delete one directory will not prevent the rest from deleted.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22271 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-28 22:03:53 +00:00
kohsuke d27e5d9935 adding a mechanism to generate tests on the fly.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22212 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-26 01:36:30 +00:00
kohsuke 27041170d3 Merged revisions 22084-22085 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r22084 | kohsuke | 2009-09-23 17:35:53 -0700 (Wed, 23 Sep 2009) | 1 line
  
  getLastBuild() can return null.
........
  r22085 | kohsuke | 2009-09-23 18:01:05 -0700 (Wed, 23 Sep 2009) | 1 line
  
  fixing a test failure.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22086 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-24 01:56:44 +00:00
mindless 123ecf9afe Update uses of deprecated APIs
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22033 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-23 01:15:50 +00:00
kohsuke f38589134e Integrates the test case into a URL tree. Behavior explained in http://wiki.hudson-ci.org/display/HUDSON/Unit+Test
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22027 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-22 23:37:50 +00:00
kohsuke 560dea1197 added the eval method for doing arbitrary request handling as a part of test.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22023 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-22 22:40:57 +00:00
kohsuke e3f362c1ee doc fix.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22022 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-22 22:27:21 +00:00
kohsuke ea9748e152 adding a test case.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21768 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 05:53:50 +00:00
kohsuke 13ac5a7edf perform syntax checks on Jelly scripts
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21577 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 20:45:23 +00:00
mindless 22b729ff81 Add authentication support in hudson.Main (if username/password are included in
HUDSON_HOME URL, then include Authorization header in Hudson http requests).

Also moved Functions.isUnitTest to Main.isUnitTest, to remove dependency on
winstone.jar for running hudson.Main (Main uses EnvVars which checks isUnitTest
flag.. in Functions which uses servlet classes).

Updated http://wiki.hudson-ci.org/display/HUDSON/Monitoring+external+jobs
with info about required jars and authentication.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21479 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-05 04:49:03 +00:00
kohsuke cad0223491 Improving error handling to better understand the problem redsolo is facing:
testThatUsernameWithDifferentCasingIsNotDisplayedAsOne(hudson.plugins.cigame.ScoreCardActionIntegrationTest)  Time elapsed: 0 sec  <<< ERROR!
java.io.IOException: Access is denied
        at java.io.WinNTFileSystem.createFileExclusively(Native Method)
        at java.io.File.checkAndCreate(File.java:1704)
        at java.io.File.createTempFile(File.java:1793)
        at org.jvnet.hudson.test.TemporaryDirectoryAllocator.allocate(TemporaryDirectoryAllocator.java:63)
        at org.jvnet.hudson.test.HudsonHomeLoader$1.allocate(HudsonHomeLoader.java:54)
        at org.jvnet.hudson.test.HudsonHomeLoader$CopyExisting.allocate(HudsonHomeLoader.java:83)
        at org.jvnet.hudson.test.HudsonHomeLoader$Local.allocate(HudsonHomeLoader.java:123)
        at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:296)
        at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:223)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:91)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21372 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 20:34:16 +00:00
kohsuke 88857a6f6c avoid "2nd instance" test failures. The stack trace was:
java.lang.NullPointerException
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames(HtmlPage.java:1732)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:153)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:455)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:340)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:390)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377)
	at org.jvnet.hudson.test.HudsonTestCase$WebClient.getPage(HudsonTestCase.java:1002)
	at org.jvnet.hudson.test.HudsonTestCase.tearDown(HudsonTestCase.java:257)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21328 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 21:57:49 +00:00
kohsuke 5b5cf3a18b Added the first test case for Hudson CLI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21320 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 14:10:17 +00:00
kohsuke 5ede2ec4ea tab -> WS
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21262 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-30 20:28:57 +00:00
kohsuke cbb3e313ad Merged revisions 20928-20929,20939,20974-20975,20988,21009,21011,21015 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r20928 | kohsuke | 2009-08-19 14:47:13 -0700 (Wed, 19 Aug 2009) | 1 line
  
  test bug fix.
........
  r20929 | kohsuke | 2009-08-19 14:48:23 -0700 (Wed, 19 Aug 2009) | 1 line
  
  bumped up to a new version that has a trouble-shooting hook for resetting cached views
........
  r20939 | kohsuke | 2009-08-19 15:20:57 -0700 (Wed, 19 Aug 2009) | 1 line
  
  picking up subversion 1.5
........
  r20974 | kohsuke | 2009-08-20 11:50:04 -0700 (Thu, 20 Aug 2009) | 3 lines
  
      Hudson can make mistakes in binding plugins to their right /plugin/NAME/ URLs.
      (<a href="http://www.nabble.com/Custom-Plugin---No-external-resources-available-td25064554.html">report</a>)
........
  r20975 | kohsuke | 2009-08-20 12:05:11 -0700 (Thu, 20 Aug 2009) | 1 line
  
  Build history AJX update was buggy.
........
  r20988 | kohsuke | 2009-08-20 17:01:57 -0700 (Thu, 20 Aug 2009) | 3 lines
  
      Hudson wasn't working on WebLogic on Windows.
      (<a href="http://www.nabble.com/Re%3A-Hudson-on-Weblogic-10.3-td25038378.html#a25043415">report</a>)
........
  r21009 | kohsuke | 2009-08-21 14:21:35 -0700 (Fri, 21 Aug 2009) | 1 line
  
  [maven-release-plugin] prepare release hudson-
........
  r21011 | kohsuke | 2009-08-21 14:22:00 -0700 (Fri, 21 Aug 2009) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r21015 | kohsuke | 2009-08-21 16:00:17 -0700 (Fri, 21 Aug 2009) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21095 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 15:13:55 +00:00