Fixing checkstyle for tests.
Adding random jitter for the initial GC task scheduling to better spread GC execution over time.

Reviewed at https://reviews.apache.org/r/16247/
Skip building the Apache Thrift 0.9.1 tests

AURORA-7: Setup jenkins job

Skips building the Apache Thrift 0.9.1 tests which have a known issue with
libtool.

Bugs closed: AURORA-7

Reviewed at https://reviews.apache.org/r/16353/
Client v2: add support for options shared between verbs.

Reviewed at https://reviews.apache.org/r/16325/
Protect reference to $? in embedded script.

Reviewed at https://reviews.apache.org/r/16462/
Added getJobSummary call to thrift API

Added a new Thrift service to host all read only api's. Added a getJobSummary
call to the read only service end point. The output of the call will be used to
render the home page.

Implemented the getJobSummary API in SchedulerThriftInterface and added a
corresponding unit test. To keep it simple, the implementation of getJobSummary
is a clone of SchedulerzHome.get().

Testing Done:
gradle clean build

Reviewed at https://reviews.apache.org/r/16231/
Adding a script to run an isolated scheduler.

Testing Done:
gradle clean run

Reviewed at https://reviews.apache.org/r/16267/
Installing JQuery and bootstrap from bower

Now installing JQuery and bootstrap from bower.

Addded docs on managing bower dependencies and installing bower.

Added a manifest to scheduler jar target in build.gradle, so the generated jar can be used in java -jar option.

Testing Done:
Tested the UI using the isolated scheduler.

gradle clean build.

Reviewed at https://reviews.apache.org/r/16483/
AURORA-14: CI tests broken due to missing egg

Until Apache Mesos publishes the egg or we come up with a work around
commenting out the tests which depend on the the mesos python client.

This patch also adds a script for the CI tests to capture this information
and make it available for others to use.

I have linked MESOS-684 (deploying build artifacts) to AURORA-14 and have
started looking into a better approach to building this egg or making it
publicly available.

Testing Done:
Ran new jenkins build.sh script included with this patch and python tests passed with

src.test.python.twitter.aurora.admin.mesos_maintenance                          .....   SUCCESS
src.test.python.twitter.aurora.client.api.disambiguator                         .....   SUCCESS
src.test.python.twitter.aurora.client.api.instance_watcher                      .....   SUCCESS
src.test.python.twitter.aurora.client.api.job_monitor                           .....   SUCCESS
src.test.python.twitter.aurora.client.api.restarter                             .....   SUCCESS
src.test.python.twitter.aurora.client.api.scheduler_client                      .....   SUCCESS
src.test.python.twitter.aurora.client.api.updater                               .....   SUCCESS
src.test.python.twitter.aurora.client.binding_helper                            .....   SUCCESS
src.test.python.twitter.aurora.client.commands.core                             .....   SUCCESS
src.test.python.twitter.aurora.client.commands.run                              .....   SUCCESS
src.test.python.twitter.aurora.client.commands.ssh                              .....   SUCCESS
src.test.python.twitter.aurora.client.config                                    .....   SUCCESS
src.test.python.twitter.aurora.client.hooks.hooked_api                          .....   SUCCESS
src.test.python.twitter.aurora.client.hooks.non_hooked_api                      .....   SUCCESS
src.test.python.twitter.aurora.common.test_aurora_job_key                       .....   SUCCESS
src.test.python.twitter.aurora.common.test_cluster                              .....   SUCCESS
src.test.python.twitter.aurora.common.test_cluster_option                       .....   SUCCESS
src.test.python.twitter.aurora.common.test_clusters                             .....   SUCCESS
src.test.python.twitter.aurora.common.test_http_signaler                        .....   SUCCESS
src.test.python.twitter.aurora.config.test_base                                 .....   SUCCESS
src.test.python.twitter.aurora.config.test_constraint_parsing                   .....   SUCCESS
src.test.python.twitter.aurora.config.test_loader                               .....   SUCCESS
src.test.python.twitter.aurora.config.test_thrift                               .....   SUCCESS
src.test.python.twitter.aurora.executor.common.directory_sandbox                .....   SUCCESS
src.test.python.twitter.aurora.executor.common.health_checker                   .....   SUCCESS
src.test.python.twitter.aurora.executor.common.status_checker                   .....   SUCCESS
src.test.python.twitter.aurora.executor.common.task_info                        .....   SUCCESS
src.test.python.twitter.aurora.executor.executor_detector                       .....   SUCCESS
src.test.python.twitter.aurora.executor.executor_vars                           .....   SUCCESS
src.test.python.twitter.aurora.executor.thermos_task_runner                     .....   SUCCESS
src.test.python.twitter.thermos.common.test_pathspec                            .....   SUCCESS
src.test.python.twitter.thermos.common.test_planner                             .....   SUCCESS
src.test.python.twitter.thermos.common.test_task_planner                        .....   SUCCESS
src.test.python.twitter.thermos.config.test_schema                              .....   SUCCESS
src.test.python.twitter.thermos.core.test_angry                                 .....   SUCCESS
src.test.python.twitter.thermos.core.test_ephemerals                            .....   SUCCESS
src.test.python.twitter.thermos.core.test_failing_runner                        .....   SUCCESS
src.test.python.twitter.thermos.core.test_failure_limit                         .....   SUCCESS
src.test.python.twitter.thermos.core.test_finalization                          .....   SUCCESS
src.test.python.twitter.thermos.core.test_helper                                .....   SUCCESS
src.test.python.twitter.thermos.core.test_process                               .....   SUCCESS
src.test.python.twitter.thermos.core.test_runner_integration                    .....   SUCCESS
src.test.python.twitter.thermos.core.test_staged_kill                           .....   SUCCESS
src.test.python.twitter.thermos.monitoring.test_disk                            .....   SUCCESS

Bugs closed: AURORA-14

Reviewed at https://reviews.apache.org/r/16484/
Rename twitter* and com.twitter to apache and org.apache directories to
preserve all file history before the refactor.

Testing Done:
depends on Part 2, patch split up for easier review

Bugs closed: AURORA-3

Reviewed at https://reviews.apache.org/r/16543/
Refactors java and python code to the Apache namespace.

Bugs closed: AURORA-3

Reviewed at https://reviews.apache.org/r/16544/
Updates all License headers to the Apache Software Foundation.

Bugs closed: AURORA-3

Reviewed at https://reviews.apache.org/r/16546/
Global import optimize.

This is the result of running 'Optimize imports' on the entire project.
Unfortunately it appears that while checkstyle _requires_ an empty line between
import groups, it doesn't care if there extraneous empty lines.
I double-checked our checkstyle config against docs, and don't see anything we
can tune here.

Testing Done:
./gradlew build

Reviewed at https://reviews.apache.org/r/16576/
Releasing aurora-0.3.0
Bumping up snapshot version to 0.4.0
Replace StorageStarted event with TaskStateChange events.

This change makes it easier to consume events about the state of tasks.
Previously, ~every consumer of TaskStateChange needed to know to also consume
StorageStarted and query the full storage.  The new change makes TaskStateChange
more intuitive and therefore less error-prone.

Reviewed at https://reviews.apache.org/r/16575/
ZookeeperSchedulerClient url property errored when no proxy_url was set, and the client was not connected.

Squashed commit of the following:

commit 964335686e57b079f28466de502fbebedd5e360c
Merge: d0b46fc 513876c
Author: Brian Wickman <wickman@twitter.com>
Date:   Mon Jan 6 10:11:19 2014 -0800

    Merge 69f4b79e4054b85b36490c04fb569e3f752dca6f to post-rename master.

commit 513876cfce07b005ef6a10ea39480bf181b7dd9b
Author: Joshua Cohen <jcohen@twitter.com>
Date:   Mon Jan 6 10:08:22 2014 -0800

    ZookeeperSchedulerClient url property errored when no proxy_url was set, and the client was not connected.

    commit 69f4b79e4054b85b36490c04fb569e3f752dca6f
    Author: Joshua Cohen <jcohen@twitter.com>
    Date:   Mon Dec 9 18:09:22 2013 -0600

        ZookeeperSchedulerClient url property errored when no proxy_url was set, and the client was not connected.

     .../twitter/aurora/client/api/scheduler_client.py  |  3 ++
     .../aurora/client/api/test_scheduler_client.py     | 56 ++++++++++++++++++++++
     2 files changed, 59 insertions(+)

    The original failure is:

      File "twitter/aurora/client/api/scheduler_client.py", line 138, in url
        if self._http:
      AttributeError: 'ZookeeperSchedulerClient' object has no attribute '_http'

    The fix presented here is to implicitly connect if we're not connected though I'm not sure if this is the desired behavior. The alternative would be to gracefully fail if cluster.proxy_url is not set and self._http is None, then leave it up to the caller to decide whether or not to connect. Connecting is generally implicit today though, so I went this way (though connecting as a result of trying to access the scheduler url may be unexpected).

    Testing Done:
    Added unit test, ./pants src/test/python/twitter/aurora/client:all

    Bugs closed: AURORA-6

    Reviewed at https://reviews.apache.org/r/16144/
Ensure SchedulerActive event is dispatched before leader is advertised.

I dug into this after noticing SchedulerIT test flakiness (deadlock) as a result
of tearDown actions being executed SchedulerActive event was being dispatched.
The test is arranged such that it expects the effects of that event to occur
before the test exits.  The deadlock was related to EasyMock's default global
lock for mock answering, so that particular deadlock does not affect us in
production.

Reviewed at https://reviews.apache.org/r/16636/
Adding java code coverage reporting into Aurora build.

Reviewed at https://reviews.apache.org/r/16668/
Bump version number to 0.5.0

Reviewed at https://reviews.apache.org/r/16673/