Re: Review Request 27747: Splitting cron and non-cron job creation in client v2.

2014-11-11 Thread David McLaughlin

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27747/#review60843
---

Ship it!


Ship It!

- David McLaughlin


On Nov. 8, 2014, 12:28 a.m., Maxim Khutornenko wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/27747/
 ---
 
 (Updated Nov. 8, 2014, 12:28 a.m.)
 
 
 Review request for Aurora, David McLaughlin and Bill Farner.
 
 
 Bugs: AURORA-917
 https://issues.apache.org/jira/browse/AURORA-917
 
 
 Repository: aurora
 
 
 Description
 ---
 
 These fail-fast checks finalize the cron/non-cron split in v2 job creation:
 
 
 Diffs
 -
 
   
 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java
  b2b66acee9c0789f3660469d6d504b4510af5e79 
   src/main/python/apache/aurora/client/cli/cron.py 
 e0510df2f0e076c96d08e7b8562573e4b487479c 
   src/main/python/apache/aurora/client/cli/jobs.py 
 28f9475c5accb8c73cbc5f7a1010920479a0388e 
   
 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java
  5c9ea6cf4eb4d99d94f5d61e784dd7c9c480798c 
   src/test/python/apache/aurora/client/cli/test_create.py 
 1dec54c0da2346d4091bb3fda4508836aac0 
   src/test/python/apache/aurora/client/cli/test_cron.py 
 029a0c57c32ad799165099de165328ad7e81369a 
   src/test/python/apache/aurora/client/cli/util.py 
 154fb3a7170ae81548fcbc9f3cdd6dcf9bf1942d 
 
 Diff: https://reviews.apache.org/r/27747/diff/
 
 
 Testing
 ---
 
 ./gradlew -Pq build
 ./pants src/tests/python:all
 
 vagrant@192:~$ aurora2 job create devcluster/vagrant/test/cron_hello_world4 
 aurora/examples/jobs/cron_hello_world.aurora
 Error executing command: Cron jobs may only be scheduled with aurora cron 
 schedule command
 
 vagrant@192:~$ aurora2 cron schedule devcluster/www-data/prod/hello 
 aurora/examples/jobs/hello_world.aurora
 Error executing command: Non-cron jobs may only be created with aurora job 
 create command
 
 
 Thanks,
 
 Maxim Khutornenko
 




Re: Review Request 27747: Splitting cron and non-cron job creation in client v2.

2014-11-07 Thread Maxim Khutornenko


 On Nov. 7, 2014, 10:20 p.m., Bill Farner wrote:
  src/main/python/apache/aurora/client/cli/cron.py, line 55
  https://reviews.apache.org/r/27747/diff/1/?file=754819#file754819line55
 
  This file has a mix of single- and double-quoted strings.  Consider 
  settling on single and avoid the escape.  Ditto for `jobs.py`.

Fixed where appropriate.


 On Nov. 7, 2014, 10:20 p.m., Bill Farner wrote:
  src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java,
   line 1206
  https://reviews.apache.org/r/27747/diff/1/?file=754821#file754821line1206
 
  Can you instead assert equivalence on the entire Response object?
  
  Ditto below.

Done.


- Maxim


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27747/#review60397
---


On Nov. 7, 2014, 9:59 p.m., Maxim Khutornenko wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/27747/
 ---
 
 (Updated Nov. 7, 2014, 9:59 p.m.)
 
 
 Review request for Aurora, David McLaughlin and Bill Farner.
 
 
 Bugs: AURORA-917
 https://issues.apache.org/jira/browse/AURORA-917
 
 
 Repository: aurora
 
 
 Description
 ---
 
 These fail-fast checks finalize the cron/non-cron split in v2 job creation:
 
 
 Diffs
 -
 
   
 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java
  175bba24a11587a4c0c595588a01f9e6503442fc 
   src/main/python/apache/aurora/client/cli/cron.py 
 e0510df2f0e076c96d08e7b8562573e4b487479c 
   src/main/python/apache/aurora/client/cli/jobs.py 
 b4d9360ed71953e5733e4bc0ba8acaaf01cf6da0 
   
 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java
  b42f6e2d23eb44605cc84ce01a80f10344a7e43f 
   src/test/python/apache/aurora/client/cli/test_create.py 
 1dec54c0da2346d4091bb3fda4508836aac0 
   src/test/python/apache/aurora/client/cli/test_cron.py 
 029a0c57c32ad799165099de165328ad7e81369a 
   src/test/python/apache/aurora/client/cli/util.py 
 154fb3a7170ae81548fcbc9f3cdd6dcf9bf1942d 
 
 Diff: https://reviews.apache.org/r/27747/diff/
 
 
 Testing
 ---
 
 ./gradlew -Pq build
 ./pants src/tests/python:all
 
 vagrant@192:~$ aurora2 job create devcluster/vagrant/test/cron_hello_world4 
 aurora/examples/jobs/cron_hello_world.aurora
 Error executing command: Cron jobs may only be scheduled with aurora cron 
 schedule command
 
 vagrant@192:~$ aurora2 cron schedule devcluster/www-data/prod/hello 
 aurora/examples/jobs/hello_world.aurora
 Error executing command: Non-cron jobs may only be created with aurora job 
 create command
 
 
 Thanks,
 
 Maxim Khutornenko
 




Re: Review Request 27747: Splitting cron and non-cron job creation in client v2.

2014-11-07 Thread Maxim Khutornenko

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27747/
---

(Updated Nov. 7, 2014, 11:42 p.m.)


Review request for Aurora, David McLaughlin and Bill Farner.


Changes
---

CR comments.


Bugs: AURORA-917
https://issues.apache.org/jira/browse/AURORA-917


Repository: aurora


Description
---

These fail-fast checks finalize the cron/non-cron split in v2 job creation:


Diffs (updated)
-

  
src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 
175bba24a11587a4c0c595588a01f9e6503442fc 
  src/main/python/apache/aurora/client/cli/cron.py 
e0510df2f0e076c96d08e7b8562573e4b487479c 
  src/main/python/apache/aurora/client/cli/jobs.py 
b4d9360ed71953e5733e4bc0ba8acaaf01cf6da0 
  
src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java
 b42f6e2d23eb44605cc84ce01a80f10344a7e43f 
  src/test/python/apache/aurora/client/cli/test_create.py 
1dec54c0da2346d4091bb3fda4508836aac0 
  src/test/python/apache/aurora/client/cli/test_cron.py 
029a0c57c32ad799165099de165328ad7e81369a 
  src/test/python/apache/aurora/client/cli/util.py 
154fb3a7170ae81548fcbc9f3cdd6dcf9bf1942d 

Diff: https://reviews.apache.org/r/27747/diff/


Testing
---

./gradlew -Pq build
./pants src/tests/python:all

vagrant@192:~$ aurora2 job create devcluster/vagrant/test/cron_hello_world4 
aurora/examples/jobs/cron_hello_world.aurora
Error executing command: Cron jobs may only be scheduled with aurora cron 
schedule command

vagrant@192:~$ aurora2 cron schedule devcluster/www-data/prod/hello 
aurora/examples/jobs/hello_world.aurora
Error executing command: Non-cron jobs may only be created with aurora job 
create command


Thanks,

Maxim Khutornenko



Re: Review Request 27747: Splitting cron and non-cron job creation in client v2.

2014-11-07 Thread Aurora ReviewBot

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27747/#review60422
---


This patch does not apply cleanly on master (66bd6fe), do you need to rebase?

- Aurora ReviewBot


On Nov. 7, 2014, 11:42 p.m., Maxim Khutornenko wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/27747/
 ---
 
 (Updated Nov. 7, 2014, 11:42 p.m.)
 
 
 Review request for Aurora, David McLaughlin and Bill Farner.
 
 
 Bugs: AURORA-917
 https://issues.apache.org/jira/browse/AURORA-917
 
 
 Repository: aurora
 
 
 Description
 ---
 
 These fail-fast checks finalize the cron/non-cron split in v2 job creation:
 
 
 Diffs
 -
 
   
 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java
  175bba24a11587a4c0c595588a01f9e6503442fc 
   src/main/python/apache/aurora/client/cli/cron.py 
 e0510df2f0e076c96d08e7b8562573e4b487479c 
   src/main/python/apache/aurora/client/cli/jobs.py 
 b4d9360ed71953e5733e4bc0ba8acaaf01cf6da0 
   
 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java
  b42f6e2d23eb44605cc84ce01a80f10344a7e43f 
   src/test/python/apache/aurora/client/cli/test_create.py 
 1dec54c0da2346d4091bb3fda4508836aac0 
   src/test/python/apache/aurora/client/cli/test_cron.py 
 029a0c57c32ad799165099de165328ad7e81369a 
   src/test/python/apache/aurora/client/cli/util.py 
 154fb3a7170ae81548fcbc9f3cdd6dcf9bf1942d 
 
 Diff: https://reviews.apache.org/r/27747/diff/
 
 
 Testing
 ---
 
 ./gradlew -Pq build
 ./pants src/tests/python:all
 
 vagrant@192:~$ aurora2 job create devcluster/vagrant/test/cron_hello_world4 
 aurora/examples/jobs/cron_hello_world.aurora
 Error executing command: Cron jobs may only be scheduled with aurora cron 
 schedule command
 
 vagrant@192:~$ aurora2 cron schedule devcluster/www-data/prod/hello 
 aurora/examples/jobs/hello_world.aurora
 Error executing command: Non-cron jobs may only be created with aurora job 
 create command
 
 
 Thanks,
 
 Maxim Khutornenko
 




Re: Review Request 27747: Splitting cron and non-cron job creation in client v2.

2014-11-07 Thread Maxim Khutornenko

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27747/
---

(Updated Nov. 8, 2014, 12:28 a.m.)


Review request for Aurora, David McLaughlin and Bill Farner.


Changes
---

Rebased


Bugs: AURORA-917
https://issues.apache.org/jira/browse/AURORA-917


Repository: aurora


Description
---

These fail-fast checks finalize the cron/non-cron split in v2 job creation:


Diffs (updated)
-

  
src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 
b2b66acee9c0789f3660469d6d504b4510af5e79 
  src/main/python/apache/aurora/client/cli/cron.py 
e0510df2f0e076c96d08e7b8562573e4b487479c 
  src/main/python/apache/aurora/client/cli/jobs.py 
28f9475c5accb8c73cbc5f7a1010920479a0388e 
  
src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java
 5c9ea6cf4eb4d99d94f5d61e784dd7c9c480798c 
  src/test/python/apache/aurora/client/cli/test_create.py 
1dec54c0da2346d4091bb3fda4508836aac0 
  src/test/python/apache/aurora/client/cli/test_cron.py 
029a0c57c32ad799165099de165328ad7e81369a 
  src/test/python/apache/aurora/client/cli/util.py 
154fb3a7170ae81548fcbc9f3cdd6dcf9bf1942d 

Diff: https://reviews.apache.org/r/27747/diff/


Testing
---

./gradlew -Pq build
./pants src/tests/python:all

vagrant@192:~$ aurora2 job create devcluster/vagrant/test/cron_hello_world4 
aurora/examples/jobs/cron_hello_world.aurora
Error executing command: Cron jobs may only be scheduled with aurora cron 
schedule command

vagrant@192:~$ aurora2 cron schedule devcluster/www-data/prod/hello 
aurora/examples/jobs/hello_world.aurora
Error executing command: Non-cron jobs may only be created with aurora job 
create command


Thanks,

Maxim Khutornenko



Re: Review Request 27747: Splitting cron and non-cron job creation in client v2.

2014-11-07 Thread Aurora ReviewBot

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/27747/#review60449
---

Ship it!


Master (66bd6fe) is green with this patch.
  ./build-support/jenkins/build.sh

- Aurora ReviewBot


On Nov. 8, 2014, 12:28 a.m., Maxim Khutornenko wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://reviews.apache.org/r/27747/
 ---
 
 (Updated Nov. 8, 2014, 12:28 a.m.)
 
 
 Review request for Aurora, David McLaughlin and Bill Farner.
 
 
 Bugs: AURORA-917
 https://issues.apache.org/jira/browse/AURORA-917
 
 
 Repository: aurora
 
 
 Description
 ---
 
 These fail-fast checks finalize the cron/non-cron split in v2 job creation:
 
 
 Diffs
 -
 
   
 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java
  b2b66acee9c0789f3660469d6d504b4510af5e79 
   src/main/python/apache/aurora/client/cli/cron.py 
 e0510df2f0e076c96d08e7b8562573e4b487479c 
   src/main/python/apache/aurora/client/cli/jobs.py 
 28f9475c5accb8c73cbc5f7a1010920479a0388e 
   
 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java
  5c9ea6cf4eb4d99d94f5d61e784dd7c9c480798c 
   src/test/python/apache/aurora/client/cli/test_create.py 
 1dec54c0da2346d4091bb3fda4508836aac0 
   src/test/python/apache/aurora/client/cli/test_cron.py 
 029a0c57c32ad799165099de165328ad7e81369a 
   src/test/python/apache/aurora/client/cli/util.py 
 154fb3a7170ae81548fcbc9f3cdd6dcf9bf1942d 
 
 Diff: https://reviews.apache.org/r/27747/diff/
 
 
 Testing
 ---
 
 ./gradlew -Pq build
 ./pants src/tests/python:all
 
 vagrant@192:~$ aurora2 job create devcluster/vagrant/test/cron_hello_world4 
 aurora/examples/jobs/cron_hello_world.aurora
 Error executing command: Cron jobs may only be scheduled with aurora cron 
 schedule command
 
 vagrant@192:~$ aurora2 cron schedule devcluster/www-data/prod/hello 
 aurora/examples/jobs/hello_world.aurora
 Error executing command: Non-cron jobs may only be created with aurora job 
 create command
 
 
 Thanks,
 
 Maxim Khutornenko