[root]/continuum-core/src/test/java/org/apache/maven/continuum/buildqueue
Fix license header from my previous commit
0 lines of code changed in:
Update license
32 lines of code changed in:
Merge with branch rev. 406599
10 lines of code changed in:
[CONTINUUM-361] Scheduler use now the correct build definition
[CONTINUUM-362] User can choose whiwh build definition is the default. The default build definition will be use when user will force a build.
1 lines of code changed in:
switch to trigger instead of forced flag
21 lines of code changed in:
rename ContinuumProject to Project
2 lines of code changed in:
replacement model and tests. Have commented out some tests that address the old model in the core until I can migrate it in
12 lines of code changed in:
o Cleaning up a bit, preparing for next round of changes.
- Removing scmUrl from the project construction in the test cases.
o Adding actions to validate and store the project groups.
4 lines of code changed in:
Doing some refactoring, making all methods in the Store return the object added
instead of it's key.
7 lines of code changed in:
o Moving useful stuff from AbstractContinuumStoreTest to AbstractContinuumTest.
4 lines of code changed in:
o Copying the ModelloJPoxContinuumStoreTest to AbstractContinuumTest and made
both the Modello and JDO test cases extend this class.
o Adding ContinuumObjectNotFoundException.
o Centralizing the lookup of ContinuumStore to make it easier to switch out the
implementation.
o Removing empty test configuration files.
o Fixing a bug in the Maven 1 project builder where a project would get added
to the project building result even if the builder threw a exception.
o Fixing a bug in DefaultContinuum where a Maven 1 project would be added even
if there was warnings while building the project.
2 lines of code changed in:
o Setting svn:eol-style=native and svn:keywords="Author Date Id Revision".
0 lines of code changed in:
o Renaming makeProject() and addProject() to makeMavenTwoProject() and
addMavenTwoProject() to better reflect reality.
4 lines of code changed in:
Continuum
o Upgrading to JDO 2. Going with Modello alpha-3-SNAPSHOT.
Continuum Model
o Making the configuration a part of the project. These are really
deprecated and should go away.
o The ContinuumBuildResult is a part of the ContinuumBuild.
o The UpdateScmResult is a part of the ContinuumBuild.
o The ScmFile collections are a part of the CheckedOutScmResult and
UpdateScmResult.
o The ContinuumProject object and other objects that has subclasses should
be made abstract.
Continuum API
o Changed addMavenOneProject( url ) and addMavenTwoProject( url ) to
return the ContinuumProjectBuildingResult object. This was done to give
the client access to the result of the adding operation. Currently it
only uses it to get hang of the project ids added. Changed
addXXXProject( XXXProject ) to return the project id of the project
added.
All of these methods should return the same object encapsulating the
result of the operation but it should probably not be
ContinuumProjectBuildingResult objects. TBD.
Continuum Core
o Depracating methods that not work directly on a model class. These
should be removed before the alpha. Removed any references to them where
this was easy to do. Still need a pass to clean it up completly thus
they're still there.
o Removed lots of JDO test configurations. Changed the configuration in
src/main/resources to contain a configuration useful for testing. This
should probably be moved to src/test/resources and the core should by
default miss this configuration.
Continuum XML-RPC Interface
o Removing methods only available though direct usage of ContinuumCore in
the XML-RPC client. The XML-RPC interface now directly relates to the
Contiuum component only.
o Updating the excludes when transforming a object to a hashtable as JDO
now complains if we're accessing fields that's not detached instead of
returning null or just a empty collection.
Continuum XML-RPC Python Integration Tests and Client
o Reworked the continuum module. It now contains a Continuum class that
can be instanciated with a URL. This increases resusability of this
module. Reorganized the methods to match the XML-RPC interface.
o Adding AntProject as this is required when adding Ant projects.
Currently adding Maven 1 and 2 projects though a URL so those and the
shell project will be added later.
o Updating the continuum Python module to match the XML-RPC interface one
to one. Updating the ITs to match the new client API.
The Ant and Shell parts of the ITs are currenly broken as they're not
properly implemented in the core.
0 lines of code changed in:
o Fixing broken tests.
7 lines of code changed in:
o Setting svn:keywords=Id on all Java, XML and Velocity files.
0 lines of code changed in:
Fixing CONTINUUM-110: "do not add a build result when no build occurs"
o Removing the "build executed" flag from the build.
o When enqueuing a project the build id won't be returned.
o The internal passing of ContinuumBuild objects have been removed as it's not
created until a build actually is executed. The BuildProjectTask is now the
context for a build containing the project id and the force flag.
45 lines of code changed in:
o Fixing CONTINUUM-100: "Add the ability to force a build"
o Adding a "forced" flag to ContinuumBuild.
o Adding a force parameter to Continuum.buildProject() and
ContinuumXmlRpc.buildProject().
o Updated the BuildProjectTask and task evaluator to obey the forced flag.
o Updated the socket and alarm triggers with the new API, they will both not
force the build.
52 lines of code changed in:
o Removing the old build queue code, it's all handled by plexus-taskqueue now.
o Switching the build queue tests to use the task queue instead.
15 lines of code changed in:
Fixes CONTINUUM-60: checkout in background
o The background check outs are implemented with a CheckOutProjectTask and
COPTExecutor reading from the check out TaskQueue.
o Adding two more states: "checking out" and "updating".
o Adding a "project state guard" that's consulted by the ContinuumStore to
ensure that the project is in a legal state at all times. This might not be
the ideal solution to this problem but it's good enough for now.
o Updated some test to use the utility methods from
ModelloJPoxContinuumStoreTest to create projects it's a bit more complicated
now with the extra state transitions required to create a "new" project.
o Updating the integration tests as the tests have to wait for the check out to
complete before continuing.
o Cleaned up the exception handling in Continuum a bit, making all exception
instanciation go through a method to be able to centralize all logging. This
implies that the core will log every exception it throws.
o Removed all logging from the ContinuumXmlRpc interface as the core does it
now. The XML RPC clients will still get any exceptions returned as before.
0 lines of code changed in: