Re: Review Request 16528: Scheduler home page new using AngularJS and UI client
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16528/ --- (Updated Jan. 13, 2014, 7:32 p.m.) Review request for Aurora and Bill Farner. Bugs: AURORA-33 https://issues.apache.org/jira/browse/AURORA-33 Repository: aurora Description --- Implemented new Scheduler home page using AngularJS. The UI queries the backend using the thrift end point. This diff sets the basic foundation for the page. Sending this out to get some early feedback and to keep the future diffs small. The URLs in the new UI will redirect to the scheduler role pages. Dropped the option to select number of results to be shown to simplify the interface. Now defaulting to 25 results per page. Cleaned up the UI to make it more light weight. Added a mock service to render dummy data on the page. Currently, this mock service is manually wired during testing. Will created an isolated scheduler page once we have a single page app. Updated build.gradle to generate thrift JS client. Installed Angular and smart-table from bower. Added thrift.js file to make the calls to the backend. Will migrate to angular-thrift for more robust implementation in coming diffs. Diffs - 3rdparty/javascript/bower_components/angular/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular/angular-csp.css PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.js PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.min.js.gzip PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular/bower.json PRE-CREATION 3rdparty/javascript/bower_components/smart-table/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/smart-table/Smart-Table.debug.js PRE-CREATION 3rdparty/javascript/bower_components/smart-table/Smart-Table.min.js PRE-CREATION 3rdparty/javascript/bower_components/smart-table/bower.json PRE-CREATION 3rdparty/javascript/thrift.js PRE-CREATION build.gradle b4b055c3ae4dd1764d69033d9a666c49c770e042 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java d775edeae93d61850a8619a6675699560e941277 src/main/java/org/apache/aurora/scheduler/http/SchedulerzHome.java 263591a1a387731be11936a7ad244cdc81b40a10 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java a3faf6be3635ec4f985867dd4598ad434a985fb7 src/main/resources/org/apache/aurora/scheduler/http/schedulerzhome.st 5e540f303ffa3d057dea564b394a29508b03c03c src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html PRE-CREATION Diff: https://reviews.apache.org/r/16528/diff/ Testing --- gradle clean build Tested the UI using the isolated scheduler. File Attachments Home page https://reviews.apache.org/media/uploaded/files/2013/12/31/03920805-bba2-4160-90fb-f137b79cde20__Screen_Shot_2013-12-31_at_2.28.42_AM.png Thanks, Suman Karumuri
Re: Review Request 16528: Scheduler home page new using AngularJS and UI client
On Jan. 15, 2014, 8:50 p.m., Bill Farner wrote: Meant to ask this before, can you push this to origin so i can try it out locally? The binary files prevent me from pulling down a patch. Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16528/#review31922 --- On Jan. 15, 2014, 7:08 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16528/ --- (Updated Jan. 15, 2014, 7:08 a.m.) Review request for Aurora and Bill Farner. Bugs: AURORA-33 https://issues.apache.org/jira/browse/AURORA-33 Repository: aurora Description --- Implemented new Scheduler home page using AngularJS. The UI queries the backend using the thrift end point. This diff sets the basic foundation for the page. Sending this out to get some early feedback and to keep the future diffs small. The URLs in the new UI will redirect to the scheduler role pages. Dropped the option to select number of results to be shown to simplify the interface. Now defaulting to 25 results per page. Cleaned up the UI to make it more light weight. Added a mock service to render dummy data on the page. Currently, this mock service is manually wired during testing. Will created an isolated scheduler page once we have a single page app. Updated build.gradle to generate thrift JS client. Installed Angular and smart-table from bower. Added thrift.js file to make the calls to the backend. Will migrate to angular-thrift for more robust implementation in coming diffs. Diffs - 3rdparty/javascript/bower_components/angular/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular/angular-csp.css PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.js PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.min.js.gzip PRE-CREATION 3rdparty/javascript/bower_components/angular/angular.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular/bower.json PRE-CREATION 3rdparty/javascript/bower_components/smart-table/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/smart-table/Smart-Table.debug.js PRE-CREATION 3rdparty/javascript/bower_components/smart-table/Smart-Table.min.js PRE-CREATION 3rdparty/javascript/bower_components/smart-table/bower.json PRE-CREATION 3rdparty/javascript/thrift.js PRE-CREATION build.gradle b4b055c3ae4dd1764d69033d9a666c49c770e042 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java d775edeae93d61850a8619a6675699560e941277 src/main/java/org/apache/aurora/scheduler/http/SchedulerzHome.java 263591a1a387731be11936a7ad244cdc81b40a10 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java a3faf6be3635ec4f985867dd4598ad434a985fb7 src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/schedulerzhome.st 5e540f303ffa3d057dea564b394a29508b03c03c src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html PRE-CREATION Diff: https://reviews.apache.org/r/16528/diff/ Testing --- gradle clean build Tested the UI using the isolated scheduler. File Attachments Home page https://reviews.apache.org/media/uploaded/files/2013/12/31/03920805-bba2-4160-90fb-f137b79cde20__Screen_Shot_2013-12-31_at_2.28.42_AM.png Thanks, Suman Karumuri
Re: Review Request 16995: Only make the SchedulerDriver available after registered() has been called.
On Jan. 16, 2014, 11:41 p.m., Kevin Sweeney wrote: src/main/java/org/apache/aurora/scheduler/Driver.java, lines 148-149 https://reviews.apache.org/r/16995/diff/1/?file=425119#file425119line148 There's a (very small window) check-then-act race here. Should this be synchronized or use checkState(driverRef.compareAndSet(null, driver))? +1 for using checkState(driverRef.compareAndSet(null, driver)) - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16995/#review32096 --- On Jan. 16, 2014, 11 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16995/ --- (Updated Jan. 16, 2014, 11 p.m.) Review request for Aurora, Kevin Sweeney and Suman Karumuri. Bugs: AURORA-45 https://issues.apache.org/jira/browse/AURORA-45 Repository: aurora Description --- I've also removed some functions from the Driver interface, since they should be used exclusively by SchedulerLifecycle. No test cases were added because SchedulerLifecycleTest#testDefeatedBeforeRegistered() triggered the issue once expectations were altered with the desired new behavior. Diffs - src/main/java/org/apache/aurora/scheduler/Driver.java 5339069a0b932b4f16867335c4b5ee69742b src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 247e94065a7f6d9170c2e21ae91b4078c76f0112 src/main/java/org/apache/aurora/scheduler/SchedulerModule.java 43f0c4e6b8a75db029e8c61495326a6ab80febb6 src/test/java/org/apache/aurora/scheduler/DriverTest.java c3aa69c1e1bf3e301806fe20fb4d8686ca941e37 src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java da7a1678d734ddc7b513b1d0797cb097fa2ee537 Diff: https://reviews.apache.org/r/16995/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 17068: Added docs about git setup.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17068/ --- (Updated Jan. 17, 2014, 11:40 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Updated per comments. Repository: aurora Description --- Added docs about git setup. Diffs (updated) - docs/contributing.md d337da2be9b182a0c872574c3587d414c566331b Diff: https://reviews.apache.org/r/17068/diff/ Testing --- Thanks, Suman Karumuri
Re: Review Request 17133: Improve test coverage for TaskAssignerImpl.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17133/#review32369 --- Ship it! Looks good! - Suman Karumuri On Jan. 20, 2014, 10:12 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17133/ --- (Updated Jan. 20, 2014, 10:12 p.m.) Review request for Aurora, Kevin Sweeney and Suman Karumuri. Bugs: AURORA-63 https://issues.apache.org/jira/browse/AURORA-63 Repository: aurora Description --- This brings TaskAssignerImpl to 100% coverage. Diffs - src/main/java/org/apache/aurora/scheduler/ResourceSlot.java 339773d71b9f15e767d9f057b921582c0d8814a5 src/test/java/org/apache/aurora/scheduler/state/TaskAssignerImplTest.java PRE-CREATION Diff: https://reviews.apache.org/r/17133/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 17068: Added docs about git setup.
On Jan. 18, 2014, 12:34 a.m., Jonathan Boulle wrote: docs/contributing.md, lines 7-8 https://reviews.apache.org/r/17068/diff/2/?file=429765#file429765line7 s/setup/set up/ s/configured/configure/ Done. On Jan. 18, 2014, 12:34 a.m., Jonathan Boulle wrote: docs/contributing.md, line 16 https://reviews.apache.org/r/17068/diff/2/?file=429765#file429765line16 s/jira/JIRA/ s/reviewboard/ReviewBoard Done. On Jan. 18, 2014, 12:34 a.m., Jonathan Boulle wrote: docs/contributing.md, line 17 https://reviews.apache.org/r/17068/diff/2/?file=429765#file429765line17 s/emails your/emails from your/ Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17068/#review32236 --- On Jan. 17, 2014, 11:40 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17068/ --- (Updated Jan. 17, 2014, 11:40 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Repository: aurora Description --- Added docs about git setup. Diffs - docs/contributing.md d337da2be9b182a0c872574c3587d414c566331b Diff: https://reviews.apache.org/r/17068/diff/ Testing --- Thanks, Suman Karumuri
Re: Review Request 17068: Added docs about git setup.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17068/ --- (Updated Jan. 21, 2014, 4:03 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Repository: aurora Description --- Added docs about git setup. Diffs (updated) - docs/contributing.md d337da2be9b182a0c872574c3587d414c566331b Diff: https://reviews.apache.org/r/17068/diff/ Testing --- Thanks, Suman Karumuri
Re: Review Request 17131: Improve test coverage for CronJobManager.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17131/#review32516 --- Ship it! Ship It! - Suman Karumuri On Jan. 20, 2014, 9:01 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17131/ --- (Updated Jan. 20, 2014, 9:01 p.m.) Review request for Aurora, Suman Karumuri and Maxim Khutornenko. Bugs: AURORA-62 https://issues.apache.org/jira/browse/AURORA-62 Repository: aurora Description --- This raises instruction test coverage from 76% to 95%, and branch coverage from 75% to 96%. There are only two things not currently covered: - Handling when catching InterruptedException (this only logs) - Handling unknown CollisionPolicy (only logs) Diffs - src/main/java/org/apache/aurora/scheduler/state/CronJobManager.java 5a56a701a6a355f9de3f05fbb95013b96b06b171 src/test/java/org/apache/aurora/scheduler/state/CronJobManagerTest.java e9886cdb279cc42a961d6c964e2cfae3c4c13f61 Diff: https://reviews.apache.org/r/17131/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 17205: Moved readonly thrift API calls into ReadOnlyScheduler.
On Jan. 23, 2014, 6:17 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 456 https://reviews.apache.org/r/17205/diff/1/?file=435558#file435558line456 this one too Will do this in the next diff. Closing out this diff since I am blocked on these changes. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17205/#review32638 --- On Jan. 22, 2014, 9:02 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17205/ --- (Updated Jan. 22, 2014, 9:02 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Repository: aurora Description --- Moved readonly thrift calls into ReadOnlyScheduler. Not sure if I we need to update the release version, since the change in theory should have no impact on the consumers of AuroraSchedulerManager service. Diffs - src/main/thrift/org/apache/aurora/gen/api.thrift 86220ff1ef42c892c10d4d9f174552e113a32e13 src/test/resources/org/apache/aurora/gen/api.thrift.md5 fd64486908839ede8a326aa0603f16ce677d7eb8 Diff: https://reviews.apache.org/r/17205/diff/ Testing --- gradle clean build gradle run to test with local UI. Thanks, Suman Karumuri
Review Request 17303: Updated getJobs API to return task stats and latest task config
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added task stats to getJobs API so it can be used by the role page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java 06a19d80483b6949c9851b5d38fe34ac712aa75e src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java b0caca73b46fba928fb718ab45a608dad4685a2f src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 17303: Updated getJobs API to return task stats and latest task config
On Jan. 24, 2014, 4:44 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 187 https://reviews.apache.org/r/17303/diff/1/?file=447779#file447779line187 I think pre-computing these stats restricts the freedom of an API consumer from displaying them differently. Also, ambiguous names like 'recently' should absolutely be avoided. Before we go down this road it would be good to collect real data showing that this aggregation is necessary on the server. I don't doubt it is, but the exercise will give us a baseline to work with. If it does prove necessary, it would be good to know what contributes to the problem (data transmission, memory, computation time, etc). My intuition is to err on the side of returning more information unless it causes problems; allowing the client to make up its own aggregations. Sent out detailed stats in an email. If we send all the task configs(6000) instead of summarizing them, the response size for our largest role would be roughly 900kb to 1.2MB through a conservative estimate. Summarizing all these stats on the server, the response size for the current data is 50-100 bytes. On the server side that is not a lot of compute power, but with several concurrent requests, it may saturate the network. On the client side, that is a lot of data and given that JS is single threaded, it will certainly cause UI hiccups and browser crashes. In this particular case, I feel sending summary data is better, since the users have the ability to query the tasks per job using another API and since most of the data we send is discarded in the current use case. I agree that recently is ambiguous. We can consider renaming it to tasksFailedInLast6Hours or dropping it entirely. I am in favor of the later since: a) We define the status of a service rather arbitrarily. For example, if I have a failed task, that I fixed in a subsequent deployment, the jobs status is still warning for the next 6 hours which is not accurate. b) I am unsure how useful Stable/UnStable and Warning badges are in practice since most services rely on a stats gathering framework to check the health of their service. On Jan. 24, 2014, 4:44 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 214 https://reviews.apache.org/r/17303/diff/1/?file=447779#file447779line214 This is overloading the purpose of JobConfiguration. It's currently the configuration of a job, and i would prefer to not add use cases to that. It would be much tidier to compose this information _with_ JobConfiguration objects in another struct. Agreed. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/#review32720 --- On Jan. 24, 2014, 7:13 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated Jan. 24, 2014, 7:13 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added task stats to getJobs API so it can be used by the role page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java 06a19d80483b6949c9851b5d38fe34ac712aa75e src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java b0caca73b46fba928fb718ab45a608dad4685a2f src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Review Request 17430: Bug fix: Return job count instead of task count on GetRoleSummary() call.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Repository: aurora Description --- Updated test cases to catch this bug. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e Diff: https://reviews.apache.org/r/17430/diff/ Testing --- gradle clean build gradle run - tested in local UI. Thanks, Suman Karumuri
Re: Review Request 17430: Bug fix: Return job count instead of task count on GetRoleSummary() call.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/ --- (Updated Jan. 28, 2014, 8:51 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Addressed code review feedback. Fixed the thrift response to use a set instead of a list, since I found an ordering bug while running the test. Bugs: AURORA-116 https://issues.apache.org/jira/browse/AURORA-116 Repository: aurora Description --- Updated test cases to catch this bug. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17430/diff/ Testing --- gradle clean build gradle run - tested in local UI. Thanks, Suman Karumuri
Re: Review Request 17430: Bug fix: Return job count instead of task count on GetRoleSummary() call.
On Jan. 28, 2014, 3:37 a.m., Bill Farner wrote: Can you also attach the JIRA issue please? Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/#review32947 --- On Jan. 28, 2014, 8:51 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/ --- (Updated Jan. 28, 2014, 8:51 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-116 https://issues.apache.org/jira/browse/AURORA-116 Repository: aurora Description --- Updated test cases to catch this bug. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17430/diff/ Testing --- gradle clean build gradle run - tested in local UI. Thanks, Suman Karumuri
Re: Review Request 17430: Bug fix: Return job count instead of task count on GetRoleSummary() call.
On Jan. 28, 2014, 3:32 a.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 384 https://reviews.apache.org/r/17430/diff/1/?file=451962#file451962line384 Thinking out loud, a helper function reduces some duplication, and wrapping in a HashMultimap puts the values in a Set for you (so you can skip the ImmutableSet.copyOf later): private static T MultimapString, IJobKey mapByRole( IterableT entities, FunctionT, IJobKey keyExtractor) { return HashMultimap.create( Multimaps.index(Iterables.transform(tasks, keyExtractor))); } Then, your calling code is: MultimapString, IJobKey jobsByRole = mapByRole( Storage.weaklyConsistentFetchTasks(storage, Query.unscoped()), Tasks.SCHEDULED_TO_JOB_KEY); MultimapString, IJobKey cronJobsByRole = mapByRole(cronJobManager.getJobs(), JobKeys.FROM_CONFIG); (note: you'll want to tweak line wrapping, trying to make it pretty in the comment box here) Done. Changed Multimaps.index(Iterables.transform(tasks, keyExtractor))); to Multimaps.index(Iterables.transform(tasks, keyExtractor), JobKeys.TO_ROLE)); to match the signature. On Jan. 28, 2014, 3:32 a.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java, line 1112 https://reviews.apache.org/r/17430/diff/1/?file=451963#file451963line1112 Does this test reproduce the bug? I would have expected to see something like two tasks in the same job resulting in a job count of 1. Good catch. I added the task, but it got lost among other fixes. Fixed it now. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/#review32945 --- On Jan. 28, 2014, 8:51 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/ --- (Updated Jan. 28, 2014, 8:51 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-116 https://issues.apache.org/jira/browse/AURORA-116 Repository: aurora Description --- Updated test cases to catch this bug. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17430/diff/ Testing --- gradle clean build gradle run - tested in local UI. Thanks, Suman Karumuri
Re: Review Request 17430: Bug fix: Return job count instead of task count on GetRoleSummary() call.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/ --- (Updated Jan. 28, 2014, 10:17 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Fixed code review comments. Bugs: AURORA-116 https://issues.apache.org/jira/browse/AURORA-116 Repository: aurora Description --- Updated test cases to catch this bug. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17430/diff/ Testing --- gradle clean build gradle run - tested in local UI. Thanks, Suman Karumuri
Re: Review Request 17430: Bug fix: Return job count instead of task count on GetRoleSummary() call.
On Jan. 28, 2014, 9:02 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java, line 1087 https://reviews.apache.org/r/17430/diff/2/?file=453063#file453063line1087 This task needs to be different from task1 in some way, otherwise this test could deceivingly pass if the two tasks are ever placed into a Set. Fixed. On Jan. 28, 2014, 9:02 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 395 https://reviews.apache.org/r/17430/diff/2/?file=453062#file453062line395 In the future (post-release), i'll ship-block changes like this. Since we're not there yet, and this is a nascent API it LGTM. Ok. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/#review33041 --- On Jan. 28, 2014, 10:17 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17430/ --- (Updated Jan. 28, 2014, 10:17 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-116 https://issues.apache.org/jira/browse/AURORA-116 Repository: aurora Description --- Updated test cases to catch this bug. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17430/diff/ Testing --- gradle clean build gradle run - tested in local UI. Thanks, Suman Karumuri
Review Request 17562: Added cluster name to page title.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 822b8b9e3348677ff2f45da2f76ae9a7a96a41b6 src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 2601da9ef64ef91cbf9db9b6f12a8d2cdbb0c297 src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 0abd3e737e901f08d18c3ceb55ea2f94847cc2e1 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js a0385e95c8c1fc950f507511377dcebe35f258a7 src/main/thrift/org/apache/aurora/gen/api.thrift 94569f9abfb56c50e67e09cc018484463f9de427 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 02b7a27e0a9ec5226d9d043de8bf4739fb151b09 src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java 644d6e87f5ed44d2705ebbcc6619a727d52c03d8 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java 62fc8045f6a5fda234df73452685bd04e3142aaf src/test/resources/org/apache/aurora/gen/api.thrift.md5 e88d29732ee8652ede6c7ee13513122086385646 Diff: https://reviews.apache.org/r/17562/diff/ Testing --- gradle clean build. gradle run. Thanks, Suman Karumuri
Re: Review Request 17562: Added cluster name to page title.
On Jan. 31, 2014, 12:56 a.m., Kevin Sweeney wrote: Spoke to Bill before making these changes. We decided to use getInfo API and deprecate getAPIVersion. The getInfo will return with the clusterName and APIVersion for now. In future it may include other attributes and hence the flexible map. Thanks for the code comments. Will incorporate them once the API changes are confirmed. On Jan. 31, 2014, 12:56 a.m., Kevin Sweeney wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 412 https://reviews.apache.org/r/17562/diff/2/?file=456993#file456993line412 Since the cluster name constant is defined here why not explicitly name it? In general I prefer the mapstring, string generalization only when the contents of the struct should somehow be opaque to the scheduler (e.g. defined by the client or defined by a plugin). Yes, it is intentionally kept generic. On Jan. 31, 2014, 12:56 a.m., Kevin Sweeney wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js, line 8 https://reviews.apache.org/r/17562/diff/2/?file=456992#file456992line8 Any reason this isn't an instance field? On Jan. 31, 2014, 12:56 a.m., Kevin Sweeney wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, line 5 https://reviews.apache.org/r/17562/diff/2/?file=456991#file456991line5 Is this necessary? Thought you could call chain these. Yes. Call chaining makes for poorly readable and formatted code, so this is recommended. Further doing it this way, makes refactoring easier and cleaner. On Jan. 31, 2014, 12:56 a.m., Kevin Sweeney wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, lines 454-457 https://reviews.apache.org/r/17562/diff/2/?file=456993#file456993line454 Not clearly documented but this is a special API that shouldn't be deprecated - old clients use it to determine they are out of date and short-circuit. We deprecated the API to ensure that we don't program against it anymore. The plan is to delete it when all the old clients are gone. I plan to track it using the API metrics. Once the usage of the API goes to zero will remove it then. Also, I have filed AURORA-142 to move the aurora client over to the new API. AURORA-143 tracks, deleting the API task. On Jan. 31, 2014, 12:56 a.m., Kevin Sweeney wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 460 https://reviews.apache.org/r/17562/diff/2/?file=456993#file456993line460 How about getClusterInfo This is intentional. On Jan. 31, 2014, 12:56 a.m., Kevin Sweeney wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 32 https://reviews.apache.org/r/17562/diff/2/?file=456993#file456993line32 Rather than a magic name constant here you can just make clusterName a field in GetInfoResult to preserve type-safety and make generated code obvious. This is intentional. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/#review33266 --- On Jan. 30, 2014, 10:27 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- (Updated Jan. 30, 2014, 10:27 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 822b8b9e3348677ff2f45da2f76ae9a7a96a41b6 src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 2601da9ef64ef91cbf9db9b6f12a8d2cdbb0c297 src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 0abd3e737e901f08d18c3ceb55ea2f94847cc2e1 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js a0385e95c8c1fc950f507511377dcebe35f258a7 src/main/thrift/org/apache/aurora/gen/api.thrift 94569f9abfb56c50e67e09cc018484463f9de427 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 02b7a27e0a9ec5226d9d043de8bf4739fb151b09 src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java 644d6e87f5ed44d2705ebbcc6619a727d52c03d8 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java 62fc8045f6a5fda234df73452685bd04e3142aaf src/test/resources/org/apache/aurora
Re: Review Request 17562: Added cluster name to page title.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- (Updated Feb. 4, 2014, 8:15 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Addressed code review feedback. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 822b8b9e3348677ff2f45da2f76ae9a7a96a41b6 src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 2601da9ef64ef91cbf9db9b6f12a8d2cdbb0c297 src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 0abd3e737e901f08d18c3ceb55ea2f94847cc2e1 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js a0385e95c8c1fc950f507511377dcebe35f258a7 src/main/thrift/org/apache/aurora/gen/api.thrift 94569f9abfb56c50e67e09cc018484463f9de427 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 02b7a27e0a9ec5226d9d043de8bf4739fb151b09 src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java 644d6e87f5ed44d2705ebbcc6619a727d52c03d8 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java 62fc8045f6a5fda234df73452685bd04e3142aaf src/test/resources/org/apache/aurora/gen/api.thrift.md5 e88d29732ee8652ede6c7ee13513122086385646 Diff: https://reviews.apache.org/r/17562/diff/ Testing --- gradle clean build. gradle run. Thanks, Suman Karumuri
Review Request 17715: Added THROTTLED state to scheduler UI.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17715/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-150 https://issues.apache.org/jira/browse/AURORA-150 Repository: aurora Description --- Added THROTTLED state to scheduler UI. Diffs - src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java b0caca73b46fba928fb718ab45a608dad4685a2f Diff: https://reviews.apache.org/r/17715/diff/ Testing --- gradle clean build gradle run Thanks, Suman Karumuri
Re: Review Request 17672: Add indices to OfferQueueImpl to improve resource offer handling performance.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17672/#review33625 --- Ship it! The logic is much cleaner now. Since no new tests are added, what is the code coverage of this class before and after this change? src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java https://reviews.apache.org/r/17672/#comment63164 Just curious, if we have we considered using a guava Table here? If it is a viable alternative, it would be nice to leave a TODO here. - Suman Karumuri On Feb. 4, 2014, 6:41 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17672/ --- (Updated Feb. 4, 2014, 6:41 p.m.) Review request for Aurora, Suman Karumuri and Maxim Khutornenko. Bugs: AURORA-153 https://issues.apache.org/jira/browse/AURORA-153 Repository: aurora Description --- Add indices to OfferQueueImpl to improve resource offer handling performance. Diffs - src/main/java/org/apache/aurora/scheduler/async/OfferQueue.java 85bd0a63da122e7daf2f4a12938fef043136f461 Diff: https://reviews.apache.org/r/17672/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 17730: Now sorting roles before displaying them on home page.
On Feb. 5, 2014, 8:28 p.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, line 25 https://reviews.apache.org/r/17730/diff/2/?file=469965#file469965line25 JavaScript ignoramus here, but have you considered localeCompare() [1]? This StackOverflow answer [2] mentions it. [1] https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/localeCompare [2] http://stackoverflow.com/questions/51165/how-do-you-do-string-comparison-in-javascript localeCompare doesn't sort based on ascii values in the way we want them to for example: 1, 2, 10 will be sorted as 1, 10, 2. So, using a sort function for now. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17730/#review33719 --- On Feb. 5, 2014, 7:14 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17730/ --- (Updated Feb. 5, 2014, 7:14 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-190 https://issues.apache.org/jira/browse/AURORA-190 Repository: aurora Description --- Now sorting roles before displaying them on home page to match the old UI behavior. Diffs - src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css 9a2fdf103c7c6e4387464a05a151e3d842f90e12 src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 2601da9ef64ef91cbf9db9b6f12a8d2cdbb0c297 src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 0abd3e737e901f08d18c3ceb55ea2f94847cc2e1 Diff: https://reviews.apache.org/r/17730/diff/ Testing --- gradle clean build. gradle run with fake summary data. Thanks, Suman Karumuri
Re: Review Request 17730: Now sorting roles before displaying them on home page.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17730/ --- (Updated Feb. 6, 2014, 7:32 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Added TODO. Bugs: AURORA-190 https://issues.apache.org/jira/browse/AURORA-190 Repository: aurora Description --- Now sorting roles before displaying them on home page to match the old UI behavior. Diffs (updated) - src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css 9a2fdf103c7c6e4387464a05a151e3d842f90e12 src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 2601da9ef64ef91cbf9db9b6f12a8d2cdbb0c297 src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 0abd3e737e901f08d18c3ceb55ea2f94847cc2e1 Diff: https://reviews.apache.org/r/17730/diff/ Testing --- gradle clean build. gradle run with fake summary data. Thanks, Suman Karumuri
Review Request 18036: Added LeaderRedirectFilter to scheduler home page.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18036/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-211 https://issues.apache.org/jira/browse/AURORA-211 Repository: aurora Description --- Also added additional logging to UIRedirectFilter to expose the order in which filters are being applied. Diffs - src/main/java/org/apache/aurora/scheduler/http/ServletModule.java ba37e26bba4e1ad4c546e73748182deb2d5942a7 src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 Diff: https://reviews.apache.org/r/18036/diff/ Testing --- gradle clean build tested on localhost, verified behavior via log statements. Thanks, Suman Karumuri
Re: Review Request 18036: Added LeaderRedirectFilter to scheduler home page.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18036/#review34387 --- src/main/java/org/apache/aurora/scheduler/http/ServletModule.java https://reviews.apache.org/r/18036/#comment64472 Line 99 takes care of the glob. Context: The routing logic is split into 3 parts because of the special meaning servlets assign to /. /scheduler - redirect to leading scheduler and into a JS asset (line 91) /scheduler/* - redirect to leading scheduler and into servlets. (line 99 - line 84) /scheduler/ - redirect to /scheduler (line 90) src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java https://reviews.apache.org/r/18036/#comment64473 It is not logged by the library. I prefer to have this since it provides visibility into the logic mentioned in the previous comment. - Suman Karumuri On Feb. 12, 2014, 11:26 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18036/ --- (Updated Feb. 12, 2014, 11:26 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-211 https://issues.apache.org/jira/browse/AURORA-211 Repository: aurora Description --- Also added additional logging to UIRedirectFilter to expose the order in which filters are being applied. Diffs - src/main/java/org/apache/aurora/scheduler/http/ServletModule.java ba37e26bba4e1ad4c546e73748182deb2d5942a7 src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 Diff: https://reviews.apache.org/r/18036/diff/ Testing --- gradle clean build tested on localhost, verified behavior via log statements. Thanks, Suman Karumuri
Review Request 18300: Updated FakeSchedulerDriver to work with delayed driver registration semantics of SchedulerLifeCycle.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18300/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-179 https://issues.apache.org/jira/browse/AURORA-179 Repository: aurora Description --- Updated FakeSchedulerDriver to register scheduler on start instead of run. Diffs - src/main/java/org/apache/aurora/scheduler/local/FakeDriverFactory.java 45f59861c155217d7967f5820fc35cd04ab51144 Diff: https://reviews.apache.org/r/18300/diff/ Testing --- gradle clean build. rm /tmp/testing_log_file gradle run Thanks, Suman Karumuri
Re: Review Request 18297: Clean up idea module configuration, make sure generated sources are available.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18297/#review35046 --- Ship it! Ship It! - Suman Karumuri On Feb. 20, 2014, 6:41 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18297/ --- (Updated Feb. 20, 2014, 6:41 p.m.) Review request for Aurora, Kevin Sweeney and Maxim Khutornenko. Repository: aurora Description --- I tried to put relevant context in a comment in build.gradle, so please read that for background on this change. I've also added placeholder files for the gen-java and gen-js directories. This is because the idea plugin will not include source directories that do not exist. Diffs - build.gradle 4ba72c109b92d05581dbfe78194518653f20e12d Diff: https://reviews.apache.org/r/18297/diff/ Testing --- Several orderings of invoking: rm aurora.iml git clean -fdx ./gradlew idea Thanks, Bill Farner
Re: Review Request 17562: Added cluster name to page title.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- (Updated Feb. 20, 2014, 9:53 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Moved serverInfo into APIVersionInterceptor. Renamed APIVersionInterceptor to ServerInfoInterceptor. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/thrift/ThriftModule.java 12113532eb062308af3c43458661c7b43b23237f src/main/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptor.java e3e050e493e4a69e1d424d3382cb37f7ce6b7a4c src/main/java/org/apache/aurora/scheduler/thrift/aop/AopModule.java c68977a7cef99a31baca2043618df304298b407e src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 1916ff9c02216da906af4e6164212faeff37995e src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js a0385e95c8c1fc950f507511377dcebe35f258a7 src/main/thrift/org/apache/aurora/gen/api.thrift 43a24969887b891339c97d4a0a055488c9188a5d src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 656e44eb51508c7ab05af8b91e9dcec216d48984 src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java 2254574a91c5a7bf2ddc7d8a7d31c3e4e360486d src/test/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptorTest.java 2f0b6716fe2999c34c0351f03b6b4c1532eafee0 src/test/java/org/apache/aurora/scheduler/thrift/aop/AopModuleTest.java d93ac53ec15863f2ee0e0ebc4737d8f4f8e4be9d src/test/resources/org/apache/aurora/gen/api.thrift.md5 10f5cdab16230e66ac7c9fab199e2dd2564248da Diff: https://reviews.apache.org/r/17562/diff/ Testing --- gradle clean build. gradle run. Thanks, Suman Karumuri
Re: Review Request 17562: Added cluster name to page title.
On Feb. 4, 2014, 8:52 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 231 https://reviews.apache.org/r/17562/diff/3/?file=464021#file464021line231 Please revert. This is an anti-pattern, as tests can no longer alter the value. Ideally, the value would be plumbed through a module, but the overloaded constructor is a compromise. done. On Feb. 4, 2014, 8:52 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 184 https://reviews.apache.org/r/17562/diff/3/?file=464021#file464021line184 How about a binding for GetInfoResult instead? This will leave us in a better position to get rid of @ClusterName in the near future, which would be nice. Did this in APIVersionInterceptor. On Feb. 4, 2014, 8:52 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 456 https://reviews.apache.org/r/17562/diff/3/?file=464025#file464025line456 Thinking about this more, we could save the extra round-trip if the server info is embedded in every Response. APIVersionInterceptor already does something like this, embedding the version number in all responses. What do you think about that? Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/#review33635 --- On Feb. 20, 2014, 9:53 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- (Updated Feb. 20, 2014, 9:53 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs - src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/thrift/ThriftModule.java 12113532eb062308af3c43458661c7b43b23237f src/main/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptor.java e3e050e493e4a69e1d424d3382cb37f7ce6b7a4c src/main/java/org/apache/aurora/scheduler/thrift/aop/AopModule.java c68977a7cef99a31baca2043618df304298b407e src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 1916ff9c02216da906af4e6164212faeff37995e src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js a0385e95c8c1fc950f507511377dcebe35f258a7 src/main/thrift/org/apache/aurora/gen/api.thrift 43a24969887b891339c97d4a0a055488c9188a5d src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 656e44eb51508c7ab05af8b91e9dcec216d48984 src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java 2254574a91c5a7bf2ddc7d8a7d31c3e4e360486d src/test/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptorTest.java 2f0b6716fe2999c34c0351f03b6b4c1532eafee0 src/test/java/org/apache/aurora/scheduler/thrift/aop/AopModuleTest.java d93ac53ec15863f2ee0e0ebc4737d8f4f8e4be9d src/test/resources/org/apache/aurora/gen/api.thrift.md5 10f5cdab16230e66ac7c9fab199e2dd2564248da Diff: https://reviews.apache.org/r/17562/diff/ Testing --- gradle clean build. gradle run. Thanks, Suman Karumuri
Review Request 18340: Renamed getJobSummary call to getRoleSummary
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18340/ --- Review request for Aurora and Bill Farner. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- getJobSummary will be reused to return the jobs. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 7f7e34d1cf379168be6fffab0faaf450151a10bc src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js a0385e95c8c1fc950f507511377dcebe35f258a7 src/main/thrift/org/apache/aurora/gen/api.thrift 43a24969887b891339c97d4a0a055488c9188a5d src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 656e44eb51508c7ab05af8b91e9dcec216d48984 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java b4f7775033b8f865dbc2bc2821eb8e1350235e66 src/test/resources/org/apache/aurora/gen/api.thrift.md5 10f5cdab16230e66ac7c9fab199e2dd2564248da Diff: https://reviews.apache.org/r/18340/diff/ Testing --- gradle clean build gradle run and tested on my laptop Thanks, Suman Karumuri
Re: Review Request 17562: Added cluster name to page title.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- (Updated Feb. 25, 2014, 1:22 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Fixed issue. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs (updated) - build.gradle f8f00e6e73e566795d8208ca7edd6e70fc9c5d76 src/main/java/org/apache/aurora/scheduler/app/AppModule.java 296bc1f7f20c4d8bb0ce14dfd4f9c003473ceec7 src/main/java/org/apache/aurora/scheduler/http/ClusterName.java ac77f6ac0b71d5b3735cb269c9bfff3e2c6fda20 src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 3686a6682d39fa75baddfb4a1b739e14e2caf508 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 25ba7da5f8bbe5416f41bb0b14850beb84392cc7 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java 36aa425e78c519188827c3455a0aef53b060d8eb src/main/java/org/apache/aurora/scheduler/http/Slaves.java cc8971ca6f4a402064a843eef5a23a47d2df06c1 src/main/java/org/apache/aurora/scheduler/http/Utilization.java 0cbdeeafde9db05e71fdb7e71b6d4529dee9cbdd src/main/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptor.java e3e050e493e4a69e1d424d3382cb37f7ce6b7a4c src/main/java/org/apache/aurora/scheduler/thrift/aop/AopModule.java c68977a7cef99a31baca2043618df304298b407e src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 1916ff9c02216da906af4e6164212faeff37995e src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 94189642a4f35aa0cad8176589cfbd84964c2e14 src/main/thrift/org/apache/aurora/gen/api.thrift cd60f47bf34b4a634004e2ad9eadad37aa1556bb src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java f0f0e39c40758cd40c981bcbde1e59f2e7a99e3f src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java 2254574a91c5a7bf2ddc7d8a7d31c3e4e360486d src/test/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptorTest.java 2f0b6716fe2999c34c0351f03b6b4c1532eafee0 src/test/java/org/apache/aurora/scheduler/thrift/aop/AopModuleTest.java d93ac53ec15863f2ee0e0ebc4737d8f4f8e4be9d src/test/resources/org/apache/aurora/gen/api.thrift.md5 fafb5100443482e662db453429c5259f2ab80ae5 Diff: https://reviews.apache.org/r/17562/diff/ Testing --- gradle clean build. gradle run. Thanks, Suman Karumuri
Re: Review Request 17303: Updated getJobs API to return task stats and latest task config
On Feb. 25, 2014, 11:11 p.m., Kevin Sweeney wrote: src/main/java/org/apache/aurora/scheduler/base/Jobs.java, line 48 https://reviews.apache.org/r/17303/diff/1/?file=447775#file447775line48 This uses time so it should take a Clock instance for testing. Since we got rid of mostRecentFailures logic, this code is dropped now. On Feb. 25, 2014, 11:11 p.m., Kevin Sweeney wrote: src/test/java/org/apache/aurora/scheduler/base/TaskUtil.java, line 19 https://reviews.apache.org/r/17303/diff/1/?file=447781#file447781line19 How would you feel about naming this TaskFixtures or TaskTestUtil? Done. On Feb. 25, 2014, 11:11 p.m., Kevin Sweeney wrote: src/main/java/org/apache/aurora/scheduler/base/Tasks.java, line 192 https://reviews.apache.org/r/17303/diff/1/?file=447776#file447776line192 explicit orderings will throw RuntimeExceptions if they encounter a value not in the explicit set. It doesn't seem to me that STATUSES is exhaustive and I don't see test coverage to guarantee that in the future. Good catch. Updated the list to be exhaustive. Added a test case to test the same. On Feb. 25, 2014, 11:11 p.m., Kevin Sweeney wrote: src/main/java/org/apache/aurora/scheduler/base/Tasks.java, line 191 https://reviews.apache.org/r/17303/diff/1/?file=447776#file447776line191 Why the indirection? Why not call this latestActiveTask? Updated comment to make this clear. Can't use latestActiveTask since a job may have just finished but it's taskConfig is not a representative task config for the job. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/#review33465 --- On Jan. 24, 2014, 7:13 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated Jan. 24, 2014, 7:13 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added task stats to getJobs API so it can be used by the role page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java 06a19d80483b6949c9851b5d38fe34ac712aa75e src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java b0caca73b46fba928fb718ab45a608dad4685a2f src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 17303: Added getJobSummary API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated Feb. 26, 2014, 4:18 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added getJobSummary API so it can be used by the role and role/environment page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java d9cb886ef333e108d5d5f86043ac80e450689894 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 25ba7da5f8bbe5416f41bb0b14850beb84392cc7 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java dccae15a2c529025c9bb6a6f7a0220779ca4f9a1 src/main/thrift/org/apache/aurora/gen/api.thrift cd60f47bf34b4a634004e2ad9eadad37aa1556bb src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TasksTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 4a2d39d8b25c4a6b161c47d6ba7068d74f8a60e0 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java 1edc0d7b224cc477ea6e8873e76ee8c70c6b4d50 src/test/resources/org/apache/aurora/gen/api.thrift.md5 fafb5100443482e662db453429c5259f2ab80ae5 Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 17303: Added getJobSummary API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated Feb. 26, 2014, 4:18 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Added getJobSummary API per code review. Addressed review feedback. Summary (updated) - Added getJobSummary API Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description (updated) --- Added getJobSummary API so it can be used by the role and role/environment page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java d9cb886ef333e108d5d5f86043ac80e450689894 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 25ba7da5f8bbe5416f41bb0b14850beb84392cc7 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java dccae15a2c529025c9bb6a6f7a0220779ca4f9a1 src/main/thrift/org/apache/aurora/gen/api.thrift cd60f47bf34b4a634004e2ad9eadad37aa1556bb src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TasksTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 4a2d39d8b25c4a6b161c47d6ba7068d74f8a60e0 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java 1edc0d7b224cc477ea6e8873e76ee8c70c6b4d50 src/test/resources/org/apache/aurora/gen/api.thrift.md5 fafb5100443482e662db453429c5259f2ab80ae5 Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 17347: Added non-prod consumption info to getQuota call.
On Jan. 28, 2014, 3:36 a.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 219 https://reviews.apache.org/r/17347/diff/1/?file=450737#file450737line219 This confirms my fear of the slippery slope of Quota becoming an overloaded term. I'd love to call this something that doesn't already have an implied meaning about production=True. Mind taking a detour to address this TODO? grep -R ResourceAggregate src/main/java/ src/main/java//org/apache/aurora/scheduler/quota/Quotas.java: // TODO(Suman Karumuri): Rename Quota to something more meaningful (ex: ResourceAggregate) It's really important to do this before we cut our first release (in the next few weeks in theory), since we need to adhere to a stable API at that point. Done. https://reviews.apache.org/r/18546/ Will update this review, once the above review is merged. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17347/#review32946 --- On Jan. 25, 2014, 12:48 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17347/ --- (Updated Jan. 25, 2014, 12:48 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-65 https://issues.apache.org/jira/browse/AURORA-65 Repository: aurora Description --- This call will be used by the role page in the UI. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java cf9099f307efa23ca34634e3512d9cdbebfa82f2 src/main/thrift/org/apache/aurora/gen/api.thrift 74010379baa2e47cefc228943f766c7b3a8b0d97 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 6cefdfad469a9b69a5291ad46be1df14b443472e src/test/resources/org/apache/aurora/gen/api.thrift.md5 42fdca2759f15d007bee058485c237268c57597a Diff: https://reviews.apache.org/r/17347/diff/ Testing --- gradle clean build. Thanks, Suman Karumuri
Re: Review Request 18546: Renamed Quota to ResourceAggregate.
On Feb. 27, 2014, 2:54 a.m., Maxim Khutornenko wrote: This change needs to be split into at least 3 checkins to ensure proper upgrade story: - thrift changes along with scheduler changes: dual write in storage.thrift and StorageBackfill to ensure smooth deploy rollback - client changes to switch to the new thrift fields - final cleanup of the old quota fields. Let's sync offline to discuss details. Jake Farrell wrote: Let's sync offline to discuss details. please use the dev@ list or comment on the ticket Kevin Sweeney wrote: Given that no field numbers have changed there's no loss of wire compatibility here, and therefore this wouldn't require a 3-stage checkin. I have also tested the following scenarios and they work as expected. 1) Start with a DB from scheduler on master, add quotas using the renamed struct, access /quotas from the scheduler on master. 2) Start with a DB from the scheduler with renamed struct, access /quotas from scheduler on master. Thanks for chiming in with the wire format test Kevin. Please let me know if you would like to see any other testing. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18546/#review35590 --- On Feb. 27, 2014, 2:44 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18546/ --- (Updated Feb. 27, 2014, 2:44 a.m.) Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, Maxim Khutornenko, and Bill Farner. Bugs: AURORA-105 https://issues.apache.org/jira/browse/AURORA-105 Repository: aurora Description --- Updated client to use the new struct. The client tests fail on my laptop. So, muted the failing assertion for now and added AURORA-237. Diffs - build.gradle e5cd831f7e742a7911994c6cbe23122f90aae313 src/main/java/org/apache/aurora/scheduler/configuration/Resources.java a2008758f25d33dc000834ff0d77cba2352013ed src/main/java/org/apache/aurora/scheduler/http/Quotas.java 5f7e34ee1b09fc139ae5eb41fc68a716d555721f src/main/java/org/apache/aurora/scheduler/local/IsolatedSchedulerModule.java 6ff70af3975eeaf7bd3efd62eac29bc84b411b1d src/main/java/org/apache/aurora/scheduler/quota/QuotaCheckResult.java c8985351fb21c010d3ae5fde5d00f25e77076b37 src/main/java/org/apache/aurora/scheduler/quota/QuotaInfo.java 0e286d8d822759169a11d363f09f5322408a103c src/main/java/org/apache/aurora/scheduler/quota/QuotaManager.java 9868abc2c3d216ccb7d7749df739e0a898df737d src/main/java/org/apache/aurora/scheduler/quota/Quotas.java 9da3c3e9a1bd732633da8afdda89484f5f4475cb src/main/java/org/apache/aurora/scheduler/stats/AsyncStatsModule.java e3ab1ddcc13c14e1aeec496748edaf0ecf5f0a8e src/main/java/org/apache/aurora/scheduler/stats/ResourceCounter.java 8855bfb2cd26f610c6ea6d87fb46abf1fd3d9970 src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java e3dffe080e3f46bff8eae23591da7a79b5237564 src/main/java/org/apache/aurora/scheduler/storage/ForwardingStore.java 34d39f2e9064b67ca226c13bb7e330f4daa2a2aa src/main/java/org/apache/aurora/scheduler/storage/QuotaStore.java 42c405ac43b6676b737c8e46a4f09bddcbeb9bed src/main/java/org/apache/aurora/scheduler/storage/log/LogStorage.java 1842210c91ee3e153f5d142266bc2696960535af src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java cb0ba508605cd2e98da83ef656a516e6c6e2d244 src/main/java/org/apache/aurora/scheduler/storage/mem/MemQuotaStore.java b9bb4bb7a0f2892f29877e070d80cb900365453a src/main/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java 043dae68ede0264fad9bbf2b74aa91e9b8b0c9cc src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java dccae15a2c529025c9bb6a6f7a0220779ca4f9a1 src/main/python/apache/aurora/client/api/__init__.py 37b7f428677c7f668079373d9a40e3a104c78e3b src/main/python/apache/aurora/client/api/quota_check.py 7de02c43438075629ff9ef93c79d8d7ecfb884c1 src/main/python/apache/aurora/client/api/sla.py 131c357d60fd00740b51055f555d56c599124d15 src/main/python/apache/aurora/client/api/updater.py 924e6d6138b3a192ff42c31588665985f8eb7d13 src/main/thrift/org/apache/aurora/gen/api.thrift cd60f47bf34b4a634004e2ad9eadad37aa1556bb src/main/thrift/org/apache/aurora/gen/storage.thrift f138c74b2790612d932d330087c6d6d8c24d1570 src/test/java/org/apache/aurora/scheduler/quota/QuotaCheckResultTest.java e366026df7d8d4e1e356889eefaa6fba1aa2e612 src/test/java/org/apache/aurora/scheduler/quota/QuotaManagerImplTest.java 82e17df016b0f1ad39f8817abe065394edb9f656 src/test/java
Re: Review Request 18546: Renamed Quota to ResourceAggregate.
On Feb. 27, 2014, 10:57 p.m., Bill Farner wrote: Mostly minor nits aside from sneaky commenting out of asserts in tests. Thanks for the comments. Was trying to get the review out. Fixed the flaky test and merged the fix into this branch. On Feb. 27, 2014, 10:57 p.m., Bill Farner wrote: build.gradle, line 238 https://reviews.apache.org/r/18546/diff/1/?file=505401#file505401line238 Fix sorting Done. On Feb. 27, 2014, 10:57 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/quota/Quotas.java, line 35 https://reviews.apache.org/r/18546/diff/1/?file=505408#file505408line35 Using the type is redundant with the javadoc. The previous doc used 'quota' as a noun. Done. On Feb. 27, 2014, 10:57 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/quota/Quotas.java, line 39 https://reviews.apache.org/r/18546/diff/1/?file=505408#file505408line39 How about none()? More concise, just as self-documenting. Good idea. Changed. On Feb. 27, 2014, 10:57 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 52 https://reviews.apache.org/r/18546/diff/1/?file=505423#file505423line52 Please focus on breaking this habit: this is a red flag for redundancy: // Resource Aggregate is a struct... struct ResourceAggregate { Will try harder. Things like these slip self-review also. Comment is dropped since the struct name is self explanatory now. On Feb. 27, 2014, 10:57 p.m., Bill Farner wrote: src/test/python/apache/aurora/client/cli/test_diff.py, line 137 https://reviews.apache.org/r/18546/diff/1/?file=505438#file505438line137 This kind of change hidden in a big diff is poor form. Please deal with this separately. Thought this was a broken test. Turned out to be an environment issue. Also, fixed existing bug AURORA-101, that addresses this. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18546/#review35718 --- On Feb. 27, 2014, 2:44 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18546/ --- (Updated Feb. 27, 2014, 2:44 a.m.) Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, Maxim Khutornenko, and Bill Farner. Bugs: AURORA-105 https://issues.apache.org/jira/browse/AURORA-105 Repository: aurora Description --- Updated client to use the new struct. The client tests fail on my laptop. So, muted the failing assertion for now and added AURORA-237. Diffs - build.gradle e5cd831f7e742a7911994c6cbe23122f90aae313 src/main/java/org/apache/aurora/scheduler/configuration/Resources.java a2008758f25d33dc000834ff0d77cba2352013ed src/main/java/org/apache/aurora/scheduler/http/Quotas.java 5f7e34ee1b09fc139ae5eb41fc68a716d555721f src/main/java/org/apache/aurora/scheduler/local/IsolatedSchedulerModule.java 6ff70af3975eeaf7bd3efd62eac29bc84b411b1d src/main/java/org/apache/aurora/scheduler/quota/QuotaCheckResult.java c8985351fb21c010d3ae5fde5d00f25e77076b37 src/main/java/org/apache/aurora/scheduler/quota/QuotaInfo.java 0e286d8d822759169a11d363f09f5322408a103c src/main/java/org/apache/aurora/scheduler/quota/QuotaManager.java 9868abc2c3d216ccb7d7749df739e0a898df737d src/main/java/org/apache/aurora/scheduler/quota/Quotas.java 9da3c3e9a1bd732633da8afdda89484f5f4475cb src/main/java/org/apache/aurora/scheduler/stats/AsyncStatsModule.java e3ab1ddcc13c14e1aeec496748edaf0ecf5f0a8e src/main/java/org/apache/aurora/scheduler/stats/ResourceCounter.java 8855bfb2cd26f610c6ea6d87fb46abf1fd3d9970 src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java e3dffe080e3f46bff8eae23591da7a79b5237564 src/main/java/org/apache/aurora/scheduler/storage/ForwardingStore.java 34d39f2e9064b67ca226c13bb7e330f4daa2a2aa src/main/java/org/apache/aurora/scheduler/storage/QuotaStore.java 42c405ac43b6676b737c8e46a4f09bddcbeb9bed src/main/java/org/apache/aurora/scheduler/storage/log/LogStorage.java 1842210c91ee3e153f5d142266bc2696960535af src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java cb0ba508605cd2e98da83ef656a516e6c6e2d244 src/main/java/org/apache/aurora/scheduler/storage/mem/MemQuotaStore.java b9bb4bb7a0f2892f29877e070d80cb900365453a src/main/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java 043dae68ede0264fad9bbf2b74aa91e9b8b0c9cc src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java dccae15a2c529025c9bb6a6f7a0220779ca4f9a1 src/main/python/apache/aurora/client/api/__init__.py
Re: Review Request 18546: Renamed Quota to ResourceAggregate.
/resources/org/apache/aurora/gen/storage.thrift.md5 99ab2023377f4c65459c301829bde0352f41d95a Diff: https://reviews.apache.org/r/18546/diff/ Testing --- Successfully ran: gradle clean build ./pants src/test/python/apache/aurora/client:all On a local scheduler tested /scheduler* and /quotas end points. Will run end to end test tonight. Thanks, Suman Karumuri
Re: Review Request 18546: Renamed Quota to ResourceAggregate.
On Feb. 28, 2014, 2:40 a.m., Maxim Khutornenko wrote: src/main/java/org/apache/aurora/scheduler/configuration/Resources.java, line 52 https://reviews.apache.org/r/18546/diff/2/?file=506590#file506590line52 Mind adding the ticket that tracks collapsing work? AURORA-105? Done. On Feb. 28, 2014, 2:40 a.m., Maxim Khutornenko wrote: src/main/java/org/apache/aurora/scheduler/quota/Quotas.java, line 35 https://reviews.apache.org/r/18546/diff/2/?file=506596#file506596line35 s/quota/ResourceAggregate Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18546/#review35751 --- On Feb. 28, 2014, 1:32 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18546/ --- (Updated Feb. 28, 2014, 1:32 a.m.) Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, Maxim Khutornenko, and Bill Farner. Bugs: AURORA-105 https://issues.apache.org/jira/browse/AURORA-105 Repository: aurora Description --- Updated client to use the new struct. The client tests fail on my laptop. So, muted the failing assertion for now and added AURORA-237. Diffs - build.gradle e5cd831f7e742a7911994c6cbe23122f90aae313 src/main/java/org/apache/aurora/scheduler/configuration/Resources.java a2008758f25d33dc000834ff0d77cba2352013ed src/main/java/org/apache/aurora/scheduler/http/Quotas.java 5f7e34ee1b09fc139ae5eb41fc68a716d555721f src/main/java/org/apache/aurora/scheduler/local/IsolatedSchedulerModule.java 6ff70af3975eeaf7bd3efd62eac29bc84b411b1d src/main/java/org/apache/aurora/scheduler/quota/QuotaCheckResult.java c8985351fb21c010d3ae5fde5d00f25e77076b37 src/main/java/org/apache/aurora/scheduler/quota/QuotaInfo.java 0e286d8d822759169a11d363f09f5322408a103c src/main/java/org/apache/aurora/scheduler/quota/QuotaManager.java 9868abc2c3d216ccb7d7749df739e0a898df737d src/main/java/org/apache/aurora/scheduler/quota/Quotas.java 9da3c3e9a1bd732633da8afdda89484f5f4475cb src/main/java/org/apache/aurora/scheduler/stats/AsyncStatsModule.java e3ab1ddcc13c14e1aeec496748edaf0ecf5f0a8e src/main/java/org/apache/aurora/scheduler/stats/ResourceCounter.java 8855bfb2cd26f610c6ea6d87fb46abf1fd3d9970 src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java e3dffe080e3f46bff8eae23591da7a79b5237564 src/main/java/org/apache/aurora/scheduler/storage/ForwardingStore.java 34d39f2e9064b67ca226c13bb7e330f4daa2a2aa src/main/java/org/apache/aurora/scheduler/storage/QuotaStore.java 42c405ac43b6676b737c8e46a4f09bddcbeb9bed src/main/java/org/apache/aurora/scheduler/storage/log/LogStorage.java 1842210c91ee3e153f5d142266bc2696960535af src/main/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImpl.java cb0ba508605cd2e98da83ef656a516e6c6e2d244 src/main/java/org/apache/aurora/scheduler/storage/mem/MemQuotaStore.java b9bb4bb7a0f2892f29877e070d80cb900365453a src/main/java/org/apache/aurora/scheduler/storage/testing/StorageTestUtil.java 043dae68ede0264fad9bbf2b74aa91e9b8b0c9cc src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java dccae15a2c529025c9bb6a6f7a0220779ca4f9a1 src/main/python/apache/aurora/client/api/__init__.py 37b7f428677c7f668079373d9a40e3a104c78e3b src/main/python/apache/aurora/client/api/quota_check.py 7de02c43438075629ff9ef93c79d8d7ecfb884c1 src/main/python/apache/aurora/client/api/sla.py 131c357d60fd00740b51055f555d56c599124d15 src/main/python/apache/aurora/client/api/updater.py 924e6d6138b3a192ff42c31588665985f8eb7d13 src/main/thrift/org/apache/aurora/gen/api.thrift cd60f47bf34b4a634004e2ad9eadad37aa1556bb src/main/thrift/org/apache/aurora/gen/storage.thrift f138c74b2790612d932d330087c6d6d8c24d1570 src/test/java/org/apache/aurora/scheduler/quota/QuotaCheckResultTest.java e366026df7d8d4e1e356889eefaa6fba1aa2e612 src/test/java/org/apache/aurora/scheduler/quota/QuotaManagerImplTest.java 82e17df016b0f1ad39f8817abe065394edb9f656 src/test/java/org/apache/aurora/scheduler/stats/SlotSizeCounterTest.java c785b1c83ea2b530566050a80214861b3b5b47da src/test/java/org/apache/aurora/scheduler/storage/backup/StorageBackupTest.java a07f3c98a72b3fccb1e1091ffa6bcafedde30247 src/test/java/org/apache/aurora/scheduler/storage/log/LogStorageTest.java d6624f470eadaf0be658db1d87d5863ea6701d94 src/test/java/org/apache/aurora/scheduler/storage/log/SnapshotStoreImplTest.java 69dadaf08e0c2771a0820406e8ed0c3778a83066 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java
Re: Review Request 18546: Renamed Quota to ResourceAggregate.
/org/apache/aurora/gen/storage.thrift.md5 99ab2023377f4c65459c301829bde0352f41d95a Diff: https://reviews.apache.org/r/18546/diff/ Testing --- Successfully ran: gradle clean build ./pants src/test/python/apache/aurora/client:all On a local scheduler tested /scheduler* and /quotas end points. Will run end to end test tonight. Thanks, Suman Karumuri
Re: Review Request 17347: Added non-prod consumption info to getQuota call.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17347/ --- (Updated Feb. 28, 2014, 11:32 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Merged Quota - ResourceAggregate name change. Renamed fields to make more sense after the change. Bugs: AURORA-65 https://issues.apache.org/jira/browse/AURORA-65 Repository: aurora Description --- This call will be used by the role page in the UI. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 7b9f185cea77825e46ecfc588c72e146cd864a32 src/main/thrift/org/apache/aurora/gen/api.thrift 3ee24c75f961af61048a78ec6c3f244361bed5bd src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java dc557718269064a202c3e4eb1272ff2b9f209ad9 src/test/resources/org/apache/aurora/gen/api.thrift.md5 4e6c51d9298bf6fc1935ec9080f38726f79e7959 Diff: https://reviews.apache.org/r/17347/diff/ Testing (updated) --- ./gradlew clean build. Thanks, Suman Karumuri
Re: Review Request 17303: Added getJobSummary API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated March 1, 2014, 1:26 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Fixed code review nits. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added getJobSummary API so it can be used by the role and role/environment page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java d9cb886ef333e108d5d5f86043ac80e450689894 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 25ba7da5f8bbe5416f41bb0b14850beb84392cc7 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 7b9f185cea77825e46ecfc588c72e146cd864a32 src/main/thrift/org/apache/aurora/gen/api.thrift 3ee24c75f961af61048a78ec6c3f244361bed5bd src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TasksTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java dc557718269064a202c3e4eb1272ff2b9f209ad9 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java a5fcbd465b5e07e23b24524e060cea304f102492 src/test/resources/org/apache/aurora/gen/api.thrift.md5 4e6c51d9298bf6fc1935ec9080f38726f79e7959 Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 17303: Added getJobSummary API
/SchedulerThriftInterfaceTest.java, line 1006 https://reviews.apache.org/r/17303/diff/2/?file=504357#file504357line1006 remove extra newline Done. On Feb. 28, 2014, 8:21 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java, line 1016 https://reviews.apache.org/r/17303/diff/2/?file=504357#file504357line1016 These variable names suggest you're testing different things. Perhaps this should be split into different cases, with less wordy variable names? We are testing slightly different things in this case. Thought of breaking it into a separate test case, but didn't like to break the convention of one test case per thrift call that is set in the file just for one test case. So, leaving it as is. On Feb. 28, 2014, 8:21 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java, line 81 https://reviews.apache.org/r/17303/diff/2/?file=504350#file504350line81 Why was this abandoned to form the list Tasks.ORDERED_TASK_STATUSES? This field was used to get the freshest tasks. Since that logic refactored into Tasks, this field moved as well. Also, this list wasn't exhaustive, so it was updated in Tasks.ORDERED_TASK_STATUS. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/#review35831 --- On March 1, 2014, 1:26 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated March 1, 2014, 1:26 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added getJobSummary API so it can be used by the role and role/environment page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java d9cb886ef333e108d5d5f86043ac80e450689894 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 25ba7da5f8bbe5416f41bb0b14850beb84392cc7 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 7b9f185cea77825e46ecfc588c72e146cd864a32 src/main/thrift/org/apache/aurora/gen/api.thrift 3ee24c75f961af61048a78ec6c3f244361bed5bd src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TasksTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java dc557718269064a202c3e4eb1272ff2b9f209ad9 src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java a5fcbd465b5e07e23b24524e060cea304f102492 src/test/resources/org/apache/aurora/gen/api.thrift.md5 4e6c51d9298bf6fc1935ec9080f38726f79e7959 Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 17347: Added non-prod consumption info to getQuota call.
On Feb. 28, 2014, 11:54 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java, line 1345 https://reviews.apache.org/r/17347/diff/2/?file=507438#file507438line1345 Mind making this a different value, to prove that the implementation treats them differently? Changed. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17347/#review35871 --- On Feb. 28, 2014, 11:32 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17347/ --- (Updated Feb. 28, 2014, 11:32 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-65 https://issues.apache.org/jira/browse/AURORA-65 Repository: aurora Description --- This call will be used by the role page in the UI. Diffs - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 7b9f185cea77825e46ecfc588c72e146cd864a32 src/main/thrift/org/apache/aurora/gen/api.thrift 3ee24c75f961af61048a78ec6c3f244361bed5bd src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java dc557718269064a202c3e4eb1272ff2b9f209ad9 src/test/resources/org/apache/aurora/gen/api.thrift.md5 4e6c51d9298bf6fc1935ec9080f38726f79e7959 Diff: https://reviews.apache.org/r/17347/diff/ Testing --- ./gradlew clean build. Thanks, Suman Karumuri
Re: Review Request 17347: Added non-prod consumption info to getQuota call.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17347/ --- (Updated March 1, 2014, 2:36 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Rebased code with master. Bugs: AURORA-65 https://issues.apache.org/jira/browse/AURORA-65 Repository: aurora Description --- This call will be used by the role page in the UI. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 7b9f185cea77825e46ecfc588c72e146cd864a32 src/main/thrift/org/apache/aurora/gen/api.thrift f9fc6bcb7fdc2380043cf673a4002886192c20c1 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java dc557718269064a202c3e4eb1272ff2b9f209ad9 src/test/resources/org/apache/aurora/gen/api.thrift.md5 08c4c2a4717a1c827f4cef6405d78e7db5046a00 Diff: https://reviews.apache.org/r/17347/diff/ Testing --- ./gradlew clean build. Thanks, Suman Karumuri
Re: Review Request 17347: Added non-prod consumption info to getQuota call.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17347/ --- (Updated March 1, 2014, 5:11 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Updated client code to use renamed GetQuotaResult params. ran ./build-support/jenkins/build.sh successfully. Client should be updated to use the new non-prod consumption information. Opened AURORA-246 to track that change. Pushing this change out to fix the broken build. Bugs: AURORA-65 https://issues.apache.org/jira/browse/AURORA-65 Repository: aurora Description --- This call will be used by the role page in the UI. Diffs (updated) - src/main/python/apache/aurora/client/api/quota_check.py 6e818a2ffe61be6d629bc1aed47ae0b9534cc65e src/test/python/apache/aurora/client/api/test_quota_check.py 4dff351ef031d9cdfadbcea5666f4e995a89cce2 Diff: https://reviews.apache.org/r/17347/diff/ Testing --- ./gradlew clean build. Thanks, Suman Karumuri
Re: Review Request 18714: Disable log and initiate shutdown upon log storage failures.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18714/#review36401 --- If I remember the discussion correctly, there is a race condition here, where some actions could still be performed through the memory store, between the time the storage is shutdown and the shutdown actually happens. That prompted us to do this change at the storage layer instead. Is there a reason, we are doing this change at the log layer now? - Suman Karumuri On March 3, 2014, 11:35 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18714/ --- (Updated March 3, 2014, 11:35 p.m.) Review request for Aurora, Kevin Sweeney and Suman Karumuri. Bugs: AURORA-221 https://issues.apache.org/jira/browse/AURORA-221 Repository: aurora Description --- Disable log and initiate shutdown upon log storage failures. Diffs - src/main/java/org/apache/aurora/scheduler/log/mesos/MesosLog.java 071c4fcf96099819aac6276306034434e3eec879 src/test/java/org/apache/aurora/scheduler/log/mesos/MesosLogTest.java 359f5d44e030a53cedd612a350b161b392d929c4 Diff: https://reviews.apache.org/r/18714/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 18658: GZIP HTTP thrift API responses
On March 1, 2014, 5:23 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/thrift/ThriftModule.java, line 40 https://reviews.apache.org/r/18658/diff/2/?file=507574#file507574line40 I can't think of a good reason to not apply this to /, can you? If so, the filter should probably be applied in a different module. Kevin Sweeney wrote: From the docs: * This filter will gzip the content of a response iff: ul * liThe filter is mapped to a matching path/li * liThe response status code is =200 and 300 * liThe content length is unknown or more than the codeminGzipSize/code initParameter or the minGzipSize is 0(default)/li * liThe content-type is in the comma separated list of mimeTypes set in the codemimeTypes/code initParameter or * if no mimeTypes are defined the content-type is not application/gzip/li * liNo content-encoding is specified by the resource/li * /ul I'm not certain that generally applies to the whole application (/health for example probably shouldn't be gzipped). Bill Farner wrote: That doc defines the server-dependent details needed to enable gzip. The client still needs to set 'accept-encoding', which i think does make it apply universally. From org.mortbay.servlet.GzipFilter: String ae = request.getHeader(accept-encoding); Boolean gzip=(Boolean)request.getAttribute(GzipFilter); if (ae != null ae.indexOf(gzip)=0 !response.containsHeader(Content-Encoding) (gzip==null || gzip.booleanValue()) !HEAD.equalsIgnoreCase(request.getMethod())) { // snip } else { super.doFilter(request,response,chain); } +1 to applying gzip encoding universally. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18658/#review35907 --- On March 1, 2014, 1:27 a.m., Kevin Sweeney wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18658/ --- (Updated March 1, 2014, 1:27 a.m.) Review request for Aurora, Suman Karumuri and Bill Farner. Repository: aurora Description --- GZIP HTTP thrift API responses Diffs - src/main/java/org/apache/aurora/scheduler/thrift/ThriftModule.java 12113532eb062308af3c43458661c7b43b23237f src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 94189642a4f35aa0cad8176589cfbd84964c2e14 Diff: https://reviews.apache.org/r/18658/diff/ Testing --- Verified API responses are gzipped. Thanks, Kevin Sweeney
Re: Review Request 18713: Initiate a teardown of scheduler lifecycle upon application exit.
On March 4, 2014, 2:16 a.m., Maxim Khutornenko wrote: src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java, line 236 https://reviews.apache.org/r/18713/diff/1/?file=509104#file509104line236 Not sure how shutdownRegistry.addAction() fits into this specific Closure. It there anything forcing it here? If not shouldn't be one level up within the constructor body? +1 - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18713/#review36077 --- On March 3, 2014, 11:31 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18713/ --- (Updated March 3, 2014, 11:31 p.m.) Review request for Aurora, Suman Karumuri and Maxim Khutornenko. Repository: aurora Description --- AFAICT there currently isn't wiring for this, so application exit not initiated by scheduler lifecycle will not gracefully tear down components handled by SchedulerLifecycle. Diffs - src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java 1cdbff62b5348db4565388651032bf88533d9d91 src/test/java/org/apache/aurora/scheduler/SchedulerLifecycleTest.java 1b1e948d95387fe6aab0a78c2b1b1744b990ba55 Diff: https://reviews.apache.org/r/18713/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 17562: Added cluster name to page title.
On Feb. 25, 2014, 8:10 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java, line 195 https://reviews.apache.org/r/17562/diff/6/?file=503050#file503050line195 doc here has drifted, please being it back in check Done. On Feb. 25, 2014, 8:10 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 413 https://reviews.apache.org/r/17562/diff/6/?file=503059#file503059line413 A brief doc would go a long way here. What's this used for? Where do the fields go? Done. On Feb. 25, 2014, 8:10 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 439 https://reviews.apache.org/r/17562/diff/6/?file=503059#file503059line439 Convention here is to pseudo-mangle the name by tacking DEPRECATED on the name. This has zero impact on the wire, and serves in place of compiler-assisted deprecation warnings. Good idea. Done. On Feb. 25, 2014, 8:10 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java, line 176 https://reviews.apache.org/r/17562/diff/6/?file=503060#file503060line176 Mind putting some dummy data in ServerInfo fields? Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/#review35447 --- On Feb. 25, 2014, 1:22 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- (Updated Feb. 25, 2014, 1:22 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs - build.gradle f8f00e6e73e566795d8208ca7edd6e70fc9c5d76 src/main/java/org/apache/aurora/scheduler/app/AppModule.java 296bc1f7f20c4d8bb0ce14dfd4f9c003473ceec7 src/main/java/org/apache/aurora/scheduler/http/ClusterName.java ac77f6ac0b71d5b3735cb269c9bfff3e2c6fda20 src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 3686a6682d39fa75baddfb4a1b739e14e2caf508 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 25ba7da5f8bbe5416f41bb0b14850beb84392cc7 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java 36aa425e78c519188827c3455a0aef53b060d8eb src/main/java/org/apache/aurora/scheduler/http/Slaves.java cc8971ca6f4a402064a843eef5a23a47d2df06c1 src/main/java/org/apache/aurora/scheduler/http/Utilization.java 0cbdeeafde9db05e71fdb7e71b6d4529dee9cbdd src/main/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptor.java e3e050e493e4a69e1d424d3382cb37f7ce6b7a4c src/main/java/org/apache/aurora/scheduler/thrift/aop/AopModule.java c68977a7cef99a31baca2043618df304298b407e src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 1916ff9c02216da906af4e6164212faeff37995e src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 94189642a4f35aa0cad8176589cfbd84964c2e14 src/main/thrift/org/apache/aurora/gen/api.thrift cd60f47bf34b4a634004e2ad9eadad37aa1556bb src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java f0f0e39c40758cd40c981bcbde1e59f2e7a99e3f src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java 2254574a91c5a7bf2ddc7d8a7d31c3e4e360486d src/test/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptorTest.java 2f0b6716fe2999c34c0351f03b6b4c1532eafee0 src/test/java/org/apache/aurora/scheduler/thrift/aop/AopModuleTest.java d93ac53ec15863f2ee0e0ebc4737d8f4f8e4be9d src/test/resources/org/apache/aurora/gen/api.thrift.md5 fafb5100443482e662db453429c5259f2ab80ae5 Diff: https://reviews.apache.org/r/17562/diff/ Testing --- gradle clean build. gradle run. Thanks, Suman Karumuri
Re: Review Request 17562: Added cluster name to page title.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17562/ --- (Updated March 6, 2014, 11:43 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Fixed code review feedback. Bugs: AURORA-120 https://issues.apache.org/jira/browse/AURORA-120 Repository: aurora Description --- Added getInfo API that returns page title and thrift API version. Added a TitleController to UI to set the page title. The controller queries the getInfo API to get the clusterName which is now included in the page title. Deprecated getVersion API in favor of getInfo to obtain the thrift API version. Diffs (updated) - build.gradle ba83b913808ed41663e72de25f5751290057535d src/main/java/org/apache/aurora/scheduler/app/AppModule.java 296bc1f7f20c4d8bb0ce14dfd4f9c003473ceec7 src/main/java/org/apache/aurora/scheduler/http/ClusterName.java ac77f6ac0b71d5b3735cb269c9bfff3e2c6fda20 src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 3686a6682d39fa75baddfb4a1b739e14e2caf508 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 25ba7da5f8bbe5416f41bb0b14850beb84392cc7 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java 36aa425e78c519188827c3455a0aef53b060d8eb src/main/java/org/apache/aurora/scheduler/http/Slaves.java cc8971ca6f4a402064a843eef5a23a47d2df06c1 src/main/java/org/apache/aurora/scheduler/http/Utilization.java 0cbdeeafde9db05e71fdb7e71b6d4529dee9cbdd src/main/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptor.java e3e050e493e4a69e1d424d3382cb37f7ce6b7a4c src/main/java/org/apache/aurora/scheduler/thrift/aop/AopModule.java c68977a7cef99a31baca2043618df304298b407e src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 1916ff9c02216da906af4e6164212faeff37995e src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 94189642a4f35aa0cad8176589cfbd84964c2e14 src/main/thrift/org/apache/aurora/gen/api.thrift 2afbb4ce98e49332495d264218a7112bce8d450b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java cd532bdd2d34b4636d0c22494512d53a2f089463 src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java f5effe741fc37155803258fb0a3a6c7f33c2a65e src/test/java/org/apache/aurora/scheduler/thrift/aop/APIVersionInterceptorTest.java 2f0b6716fe2999c34c0351f03b6b4c1532eafee0 src/test/java/org/apache/aurora/scheduler/thrift/aop/AopModuleTest.java d93ac53ec15863f2ee0e0ebc4737d8f4f8e4be9d src/test/resources/org/apache/aurora/gen/api.thrift.md5 5cfa330f54c0297c84b8f41ee550a7bc6f163010 Diff: https://reviews.apache.org/r/17562/diff/ Testing --- gradle clean build. gradle run. Thanks, Suman Karumuri
Re: Review Request 17303: Added getJobSummary API
On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/base/Jobs.java, line 38 https://reviews.apache.org/r/17303/diff/3/?file=507562#file507562line38 s/Collection/Iterable/ Done. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/base/Tasks.java, line 49 https://reviews.apache.org/r/17303/diff/3/?file=507563#file507563line49 I actually find this more confusing than roughly. You're better off saying inactive tasks are ordered before active tasks, otherwise i start wondering why FAILED is less active than FINISHED. Changed the List to use ACTIVE_STATES and TERMINAL_STATES per next comment. Dropping this comment since it's redundant. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/base/Tasks.java, line 52 https://reviews.apache.org/r/17303/diff/3/?file=507563#file507563line52 I still think it's best to directly reference ACTIVE_STATES and TERMINAL_STATES here. You noted that those are not exhaustive of all states, but the unrepresented states are INIT and UNKNOWN. If consuming code reads tasks in those states, it's a bug (they're currently only there assist the state machine). Yeah this is better. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/base/Tasks.java, line 237 https://reviews.apache.org/r/17303/diff/3/?file=507563#file507563line237 How about getLatestActiveTask()? getLatestTransitionedTask() seems like it should be skipping the LATEST_ACTIVITY order. Changed it. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java, line 469 https://reviews.apache.org/r/17303/diff/3/?file=507565#file507565line469 Barring naming conflict, can you remove the ByRole qualifier from these method names? It reads unnaturally to get by role, maybe without a role, while get, with optional role is more obvious from the call site. Done. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 184 https://reviews.apache.org/r/17303/diff/3/?file=507566#file507566line184 still planning to move this closer to JobSummary? Moved. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 454 https://reviews.apache.org/r/17303/diff/3/?file=507566#file507566line454 optionally only those owned by a specific role Done. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/base/JobsTest.java, line 2 https://reviews.apache.org/r/17303/diff/3/?file=507567#file507567line2 2014 oops missed those. Done. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java, line 2 https://reviews.apache.org/r/17303/diff/3/?file=507568#file507568line2 2014 Done. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/base/TasksTest.java, line 2 https://reviews.apache.org/r/17303/diff/3/?file=507569#file507569line2 2014 Done. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/base/TasksTest.java, line 42 https://reviews.apache.org/r/17303/diff/3/?file=507569#file507569line42 s/final // throughout Changed. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/base/TasksTest.java, line 48 https://reviews.apache.org/r/17303/diff/3/?file=507569#file507569line48 What's the expected behavior when an empty iterable is provided? We throw an NoSuchElement Exception. Formalized the case by throwing an IllegalArgumentException now and updated the test case accordingly. On March 3, 2014, 8:51 p.m., Bill Farner wrote: src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java, line 1004 https://reviews.apache.org/r/17303/diff/3/?file=507571#file507571line1004 It would be really nice to see all of these assertEquals looking more like: assertEquals(expected, actual); Where 'actual' is the top-level response rather than the result of peeking into fields. This gives confidence that the response code and message are also set appropriately. Agreed. Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/#review36023 --- On March 1, 2014, 1:26 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303
Re: Review Request 17303: Added getJobSummary API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated March 9, 2014, 10:17 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Updated code per review comments. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added getJobSummary API so it can be used by the role and role/environment page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java d9cb886ef333e108d5d5f86043ac80e450689894 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 60b2259f21b598fa38bec5a590516cba2c07e1ac src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 4911c77a16c486fabfead7ad2f84ee95423ecd93 src/main/thrift/org/apache/aurora/gen/api.thrift d72b28c3378a651a8cff49216c1435ce7aee5977 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TasksTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 9712f30a71be206fbf417198d0af673b45e0281e src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java a5fcbd465b5e07e23b24524e060cea304f102492 src/test/resources/org/apache/aurora/gen/api.thrift.md5 2308ba8da96197d41040ba772ea871003615698a Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 17303: Added getJobSummary API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17303/ --- (Updated March 11, 2014, 6:22 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Updated per code review comments. Bugs: AURORA-64 https://issues.apache.org/jira/browse/AURORA-64 Repository: aurora Description --- Added getJobSummary API so it can be used by the role and role/environment page in the UI. Refactored code from SchedulerzRole and SchedulerzRoleTest into relevant classes so it can be used by the UI and the thrift API. Added tests for new code. Moved populateJobConfig call into ReadOnlyScheduler. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/base/Jobs.java PRE-CREATION src/main/java/org/apache/aurora/scheduler/base/Tasks.java d9cb886ef333e108d5d5f86043ac80e450689894 src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java 60b2259f21b598fa38bec5a590516cba2c07e1ac src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 4911c77a16c486fabfead7ad2f84ee95423ecd93 src/main/thrift/org/apache/aurora/gen/api.thrift d72b28c3378a651a8cff49216c1435ce7aee5977 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/base/TasksTest.java PRE-CREATION src/test/java/org/apache/aurora/scheduler/http/SchedulerzRoleTest.java 912be189583419e7201e45650d18cd24a6a5a35b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 9712f30a71be206fbf417198d0af673b45e0281e src/test/java/org/apache/aurora/scheduler/thrift/aop/ForwardingThrift.java a5fcbd465b5e07e23b24524e060cea304f102492 src/test/resources/org/apache/aurora/gen/api.thrift.md5 2308ba8da96197d41040ba772ea871003615698a Diff: https://reviews.apache.org/r/17303/diff/ Testing --- gradle clean build gradle run to test local UI. Thanks, Suman Karumuri
Re: Review Request 19323: Added jobStats on old role page. Disabled job status badge.
On March 17, 2014, 10:26 p.m., Bill Farner wrote: I started on this in parallel, and have a few additional changes i'd like you to include. Please have a look at the tip commit on origin/wfarner/fix_jobs_page. (Convenience link: https://git-wip-us.apache.org/repos/asf?p=incubator-aurora.git;a=commitdiff;h=2ce304215b099687c3d2f89701a81707a11cca7f) Also, please remove [BugFix] from the review summary and instead link the review against the appropriate bug. Done. Thanks for taking a look. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19323/#review37493 --- On March 17, 2014, 11:57 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19323/ --- (Updated March 17, 2014, 11:57 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-271 https://issues.apache.org/jira/browse/AURORA-271 Repository: aurora Description --- Added jobStats on role page. We have stopped counting recently failed task count which is used to display the health badge. Since this badge is being removed from the new UI, removed it from the old UI as well. Diffs - build.gradle f3beb00f69f40e81c1be80f5f6ade84720ae src/main/java/org/apache/aurora/scheduler/base/Jobs.java 3f027032a785810bddfb3ff4dd4e472989c9493f src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java b3f3124a73b56e48339f89dbd3b1067527757d04 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java ee81b494b9b4dff9839a9e32c9b81fa8ef898e1b src/main/python/apache/aurora/tools/java/thrift_wrapper_codegen.py 3143c6afe8adeb18fac44e92f94b9860753c3eb0 src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st 39c1d9527bff88ff191233629babfd6e6035d4e7 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java 6524e2441d25de6573190866a8559be620961330 Diff: https://reviews.apache.org/r/19323/diff/ Testing --- ./gradlew clean build gradlew run File Attachments job stats https://reviews.apache.org/media/uploaded/files/2014/03/17/65da4a77-4c82-46f8-93d1-34fd319ef60e__Screen_Shot_2014-03-17_at_3.13.36_PM.png Thanks, Suman Karumuri
Review Request 19450: Added nextCronRunMs field to JobSummary.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19450/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-277 https://issues.apache.org/jira/browse/AURORA-277 Repository: aurora Description --- Added nextCronRunMs field to JobSummary. Diffs - src/main/java/org/apache/aurora/scheduler/cron/noop/NoopCronPredictor.java 7b25152c0258e10be21b801cae1444c518367fa7 src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 0d1e2147ce6a370962dab93383d52ddeba68efb5 src/main/thrift/org/apache/aurora/gen/api.thrift e64f844cbd58d92621c6c21b896a9baf0c5a5f07 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 60df209150f29e2658c47d81042bd36c57d5afef src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java e78ee7b8051bc080dbb3ed2daf72171bffe3915a src/test/resources/org/apache/aurora/gen/api.thrift.md5 456634c76b9993119af2d841073c31a4a1c82ab7 Diff: https://reviews.apache.org/r/19450/diff/ Testing --- ./gradlew clean build run on laptop. Thanks, Suman Karumuri
Re: Review Request 18714: Disable log and initiate shutdown upon log storage failures.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18714/#review37939 --- Ship it! Ship It! - Suman Karumuri On March 3, 2014, 11:35 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18714/ --- (Updated March 3, 2014, 11:35 p.m.) Review request for Aurora, Kevin Sweeney and Suman Karumuri. Bugs: AURORA-221 https://issues.apache.org/jira/browse/AURORA-221 Repository: aurora Description --- Disable log and initiate shutdown upon log storage failures. Diffs - src/main/java/org/apache/aurora/scheduler/log/mesos/MesosLog.java 071c4fcf96099819aac6276306034434e3eec879 src/test/java/org/apache/aurora/scheduler/log/mesos/MesosLogTest.java 359f5d44e030a53cedd612a350b161b392d929c4 Diff: https://reviews.apache.org/r/18714/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 19450: Added nextCronRunMs field to JobSummary.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19450/ --- (Updated March 20, 2014, 10:22 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Updated code pre review comments. Bugs: AURORA-277 https://issues.apache.org/jira/browse/AURORA-277 Repository: aurora Description --- Added nextCronRunMs field to JobSummary. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 0d1e2147ce6a370962dab93383d52ddeba68efb5 src/main/thrift/org/apache/aurora/gen/api.thrift e64f844cbd58d92621c6c21b896a9baf0c5a5f07 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 60df209150f29e2658c47d81042bd36c57d5afef src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java e78ee7b8051bc080dbb3ed2daf72171bffe3915a src/test/resources/org/apache/aurora/gen/api.thrift.md5 456634c76b9993119af2d841073c31a4a1c82ab7 Diff: https://reviews.apache.org/r/19450/diff/ Testing --- ./gradlew clean build run on laptop. Thanks, Suman Karumuri
Review Request 19509: Now consuming nonProd consumption from the new getQuota API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, and Brian Wickman. Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 9977c725528086d3e8cf58de294adee542570411 src/test/python/apache/aurora/client/cli/test_quota.py 44afd74aa5b11296951f45fe7edca8cb58b0ec18 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look into this tomorrow, if it's a blocker. Found all the code to update by running the following query. ? git:(mansu/AURORA-246_getQuotaAPI) ag getQuotaResult -G '.py' ~/workspace/incubator-aurora src/main/python/apache/aurora/client/api/quota_check.py 90:allocated = CapacityRequest(resp.result.getQuotaResult.quota) 91:consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption) src/main/python/apache/aurora/client/cli/quota.py 65: return serialize(quota_resp.result.getQuotaResult, 69: result += get_quota_str(quota_resp.result.getQuotaResult.quota) 70: if quota_resp.result.getQuotaResult.prodConsumption: 72:result += get_quota_str(quota_resp.result.getQuotaResult.prodConsumption) 73: if quota_resp.result.getQuotaResult.nonProdConsumption: 75:result += get_quota_str(quota_resp.result.getQuotaResult.nonProdConsumption) src/main/python/apache/aurora/client/commands/admin.py 199: quota = resp.result.getQuotaResult.quota src/main/python/apache/aurora/client/commands/core.py 632: print_quota(resp.result.getQuotaResult.quota, 'Total allocated quota', role) 634: if resp.result.getQuotaResult.prodConsumption: 635:print_quota(resp.result.getQuotaResult.prodConsumption, 639: if resp.result.getQuotaResult.nonProdConsumption: 640:print_quota(resp.result.getQuotaResult.nonProdConsumption, src/test/python/apache/aurora/client/api/test_quota_check.py 49:getQuotaResult=GetQuotaResult( src/test/python/apache/aurora/client/cli/test_quota.py 35:response.result.getQuotaResult = GetQuotaResult() 36:response.result.getQuotaResult.quota = ResourceAggregate() 37:response.result.getQuotaResult.quota.numCpus = 5 38:response.result.getQuotaResult.quota.ramMb = 20480 39:response.result.getQuotaResult.quota.diskMb = 40960 40:response.result.getQuotaResult.consumed = None 47:response.result.getQuotaResult = GetQuotaResult() 48:response.result.getQuotaResult.quota = ResourceAggregate() 49:response.result.getQuotaResult.quota.numCpus = 5 50:response.result.getQuotaResult.quota.ramMb = 20480 51:response.result.getQuotaResult.quota.diskMb = 40960 52:response.result.getQuotaResult.prodConsumption = ResourceAggregate() 53:response.result.getQuotaResult.prodConsumption.numCpus = 1 54:response.result.getQuotaResult.prodConsumption.ramMb = 1024 55:response.result.getQuotaResult.prodConsumption.diskMb = 2048 56:response.result.getQuotaResult.nonProdConsumption = ResourceAggregate() 57:response.result.getQuotaResult.nonProdConsumption.numCpus = 1 58:response.result.getQuotaResult.nonProdConsumption.ramMb = 1024 59:response.result.getQuotaResult.nonProdConsumption.diskMb = 2048 ? git:(mansu/AURORA-246_getQuotaAPI) ~/workspace/incubator-aurora Thanks, Suman Karumuri
Re: Review Request 19450: Added nextCronRunMs field to JobSummary.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19450/ --- (Updated March 21, 2014, 2:41 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-277 https://issues.apache.org/jira/browse/AURORA-277 Repository: aurora Description --- Added nextCronRunMs field to JobSummary. Diffs (updated) - src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 0d1e2147ce6a370962dab93383d52ddeba68efb5 src/main/thrift/org/apache/aurora/gen/api.thrift e64f844cbd58d92621c6c21b896a9baf0c5a5f07 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 60df209150f29e2658c47d81042bd36c57d5afef src/test/java/org/apache/aurora/scheduler/thrift/ThriftIT.java e78ee7b8051bc080dbb3ed2daf72171bffe3915a src/test/resources/org/apache/aurora/gen/api.thrift.md5 456634c76b9993119af2d841073c31a4a1c82ab7 Diff: https://reviews.apache.org/r/19450/diff/ Testing --- ./gradlew clean build run on laptop. Thanks, Suman Karumuri
Re: Review Request 19509: Now consuming nonProd consumption from the new getQuota API
On March 21, 2014, 11:58 a.m., Mark Chu-Carroll wrote: src/main/python/apache/aurora/client/cli/quota.py, line 71 https://reviews.apache.org/r/19509/diff/1/?file=531021#file531021line71 Maybe I just read weird stuff, but this wording is uncomfortable: consumption is the historic name of tuberculosis! The original consumed wording was better. Changed. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/#review38085 --- On March 21, 2014, 2:39 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- (Updated March 21, 2014, 2:39 a.m.) Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, and Brian Wickman. Bugs: AURORA-246 https://issues.apache.org/jira/browse/AURORA-246 Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 9977c725528086d3e8cf58de294adee542570411 src/test/python/apache/aurora/client/cli/test_quota.py 44afd74aa5b11296951f45fe7edca8cb58b0ec18 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look into this tomorrow, if it's a blocker. Found all the code to update by running the following query. ? git:(mansu/AURORA-246_getQuotaAPI) ag getQuotaResult -G '.py' ~/workspace/incubator-aurora src/main/python/apache/aurora/client/api/quota_check.py 90:allocated = CapacityRequest(resp.result.getQuotaResult.quota) 91:consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption) src/main/python/apache/aurora/client/cli/quota.py 65: return serialize(quota_resp.result.getQuotaResult, 69: result += get_quota_str(quota_resp.result.getQuotaResult.quota) 70: if quota_resp.result.getQuotaResult.prodConsumption: 72:result += get_quota_str(quota_resp.result.getQuotaResult.prodConsumption) 73: if quota_resp.result.getQuotaResult.nonProdConsumption: 75:result += get_quota_str(quota_resp.result.getQuotaResult.nonProdConsumption) src/main/python/apache/aurora/client/commands/admin.py 199: quota = resp.result.getQuotaResult.quota src/main/python/apache/aurora/client/commands/core.py 632: print_quota(resp.result.getQuotaResult.quota, 'Total allocated quota', role) 634: if resp.result.getQuotaResult.prodConsumption: 635:print_quota(resp.result.getQuotaResult.prodConsumption, 639: if resp.result.getQuotaResult.nonProdConsumption: 640:print_quota(resp.result.getQuotaResult.nonProdConsumption, src/test/python/apache/aurora/client/api/test_quota_check.py 49:getQuotaResult=GetQuotaResult( src/test/python/apache/aurora/client/cli/test_quota.py 35:response.result.getQuotaResult = GetQuotaResult() 36:response.result.getQuotaResult.quota = ResourceAggregate() 37:response.result.getQuotaResult.quota.numCpus = 5 38:response.result.getQuotaResult.quota.ramMb = 20480 39:response.result.getQuotaResult.quota.diskMb = 40960 40:response.result.getQuotaResult.consumed = None 47:response.result.getQuotaResult = GetQuotaResult() 48:response.result.getQuotaResult.quota = ResourceAggregate() 49:response.result.getQuotaResult.quota.numCpus = 5 50:response.result.getQuotaResult.quota.ramMb = 20480 51:response.result.getQuotaResult.quota.diskMb = 40960 52:response.result.getQuotaResult.prodConsumption = ResourceAggregate() 53:response.result.getQuotaResult.prodConsumption.numCpus = 1 54:response.result.getQuotaResult.prodConsumption.ramMb = 1024 55:response.result.getQuotaResult.prodConsumption.diskMb = 2048 56:response.result.getQuotaResult.nonProdConsumption = ResourceAggregate() 57:response.result.getQuotaResult.nonProdConsumption.numCpus = 1 58:response.result.getQuotaResult.nonProdConsumption.ramMb = 1024 59
Re: Review Request 19509: Now consuming nonProd consumption from the new getQuota API
On March 21, 2014, 6:27 p.m., Mark Chu-Carroll wrote: Just FYI: the client unit tests weren't intended to detect stuff like this. The intention of those tests is just to verify that the client logic works - meaning that the client sends the API calls that we expect it to. If an API gets changed in a way that doesn't change the API behavior of the client, then the client API unit tests aren't going to catch it. There really should be tests beyond the simple API ones. For the updated, Maxim wrote some really nice logic tests that bypass the command-line parts, and verify that the API interaction logic is correct. That would be a good model to follow. As far as the thermos stuff goes, I don't see anything in this change that should cause a thermos problem - but I don't know nearly enough about thermos, so I'll defer to Brian, who's the thermos God. Looks like he is mocking the scheduler client and mocking expected responses like we do in the scheduler tests. Instead of mocking the whole client, I am testing the required structs to keep the scope of the change small. I think there should be a mock scheduler test suite which should test expected replies and responses. I will also add an end to end just in case. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/#review38147 --- On March 21, 2014, 2:39 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- (Updated March 21, 2014, 2:39 a.m.) Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, and Brian Wickman. Bugs: AURORA-246 https://issues.apache.org/jira/browse/AURORA-246 Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 9977c725528086d3e8cf58de294adee542570411 src/test/python/apache/aurora/client/cli/test_quota.py 44afd74aa5b11296951f45fe7edca8cb58b0ec18 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look into this tomorrow, if it's a blocker. Found all the code to update by running the following query. ? git:(mansu/AURORA-246_getQuotaAPI) ag getQuotaResult -G '.py' ~/workspace/incubator-aurora src/main/python/apache/aurora/client/api/quota_check.py 90:allocated = CapacityRequest(resp.result.getQuotaResult.quota) 91:consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption) src/main/python/apache/aurora/client/cli/quota.py 65: return serialize(quota_resp.result.getQuotaResult, 69: result += get_quota_str(quota_resp.result.getQuotaResult.quota) 70: if quota_resp.result.getQuotaResult.prodConsumption: 72:result += get_quota_str(quota_resp.result.getQuotaResult.prodConsumption) 73: if quota_resp.result.getQuotaResult.nonProdConsumption: 75:result += get_quota_str(quota_resp.result.getQuotaResult.nonProdConsumption) src/main/python/apache/aurora/client/commands/admin.py 199: quota = resp.result.getQuotaResult.quota src/main/python/apache/aurora/client/commands/core.py 632: print_quota(resp.result.getQuotaResult.quota, 'Total allocated quota', role) 634: if resp.result.getQuotaResult.prodConsumption: 635:print_quota(resp.result.getQuotaResult.prodConsumption, 639: if resp.result.getQuotaResult.nonProdConsumption: 640:print_quota(resp.result.getQuotaResult.nonProdConsumption, src/test/python/apache/aurora/client/api/test_quota_check.py 49:getQuotaResult=GetQuotaResult( src/test/python/apache/aurora/client/cli/test_quota.py 35:response.result.getQuotaResult = GetQuotaResult() 36:response.result.getQuotaResult.quota = ResourceAggregate() 37:response.result.getQuotaResult.quota.numCpus = 5 38:response.result.getQuotaResult.quota.ramMb = 20480 39
Review Request 19565: Role and Role/env pages for Scheduler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19565/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19509: Now consuming nonProd consumption from the new getQuota API
On March 21, 2014, 11:53 p.m., Bill Farner wrote: src/test/python/apache/aurora/client/cli/test_quota.py, line 47 https://reviews.apache.org/r/19509/diff/2/?file=532010#file532010line47 Currently, the mocked calls can't detect renamed and missing thrift structs. This is one unfortunate aspect of the thrift API, you can set arbitrary attributes. However, you can harden the tests a bit more if you use the constructors. These would trip up on a refactor. I find the python repl in pants helpful to see the APIs (see below). I suggest taking the route of using constructors everywhere, probably introducing a helper method or two to cut down on the verbosity. $ ./pants py src/main/thrift/org/apache/aurora/gen:py-thrift-packaged Python 2.6.8 (unknown, Aug 25 2013, 00:04:29) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type help, copyright, credits or license for more information. (InteractiveConsole) from gen.apache.aurora.ttypes import * help(GetQuotaResult) Help on class GetQuotaResult in module gen.apache.aurora.ttypes: class GetQuotaResult(__builtin__.object) | Attributes: | - quota | - prodConsumption | - nonProdConsumption | | Methods defined here: | | __eq__(self, other) | | __init__(self, quota=None, prodConsumption=None, nonProdConsumption=None) Agreed that a constructing an object using the constructor is the best way here. Updated the code. On March 21, 2014, 11:53 p.m., Bill Farner wrote: src/test/python/apache/aurora/client/cli/test_quota.py, line 77 https://reviews.apache.org/r/19509/diff/2/?file=532010#file532010line77 Be consistent about single and double quotes, here and below. That said, this might be easier to grok with a multiline string: '''Allocated: CPU: 5 RAM: 20.00 GB Disk: 40.00 GB''' While you're at it, can you add formatting to the float values? %g as opposed to %s is probably appropriate. We are already using %f here which per the docs is a human readable version of %g. So, leaving it as is. Updated quoting to be consistent. Looked into using a multi-line string, but the text doesn't format that well because of additional spaces in the output. Since this is also the output users see and is a stylistic change, refraining from making any output format changes in this diff. On March 21, 2014, 11:53 p.m., Bill Farner wrote: src/test/python/apache/aurora/client/cli/test_quota.py, line 91 https://reviews.apache.org/r/19509/diff/2/?file=532010#file532010line91 Thanks for this coverage! Do you know if the JSON stuff will be brittle w.r.t. field ordering? That's bitten us in the past. In these cases, it's probably best to deserialize the json coming from the SUT and check for object (dict) equality. Good one. Updated the code, to turn json into dict and comparing the dicts. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/#review38235 --- On March 21, 2014, 10:14 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- (Updated March 21, 2014, 10:14 p.m.) Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, and Brian Wickman. Bugs: AURORA-246 https://issues.apache.org/jira/browse/AURORA-246 Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 9977c725528086d3e8cf58de294adee542570411 src/test/python/apache/aurora/client/cli/test_quota.py 44afd74aa5b11296951f45fe7edca8cb58b0ec18 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh 27b745ea31189a0ea0731619eb4c06f802aa04b9 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look
Re: Review Request 19509: Now consuming nonProd consumption from the new getQuota API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- (Updated March 24, 2014, 8:47 p.m.) Review request for Aurora, Kevin Sweeney, Mark Chu-Carroll, and Brian Wickman. Changes --- updated code per Bill's comments. Bugs: AURORA-246 https://issues.apache.org/jira/browse/AURORA-246 Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs (updated) - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 9977c725528086d3e8cf58de294adee542570411 src/test/python/apache/aurora/client/cli/test_quota.py 44afd74aa5b11296951f45fe7edca8cb58b0ec18 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh 27b745ea31189a0ea0731619eb4c06f802aa04b9 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look into this tomorrow, if it's a blocker. Found all the code to update by running the following query. ? git:(mansu/AURORA-246_getQuotaAPI) ag getQuotaResult -G '.py' ~/workspace/incubator-aurora src/main/python/apache/aurora/client/api/quota_check.py 90:allocated = CapacityRequest(resp.result.getQuotaResult.quota) 91:consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption) src/main/python/apache/aurora/client/cli/quota.py 65: return serialize(quota_resp.result.getQuotaResult, 69: result += get_quota_str(quota_resp.result.getQuotaResult.quota) 70: if quota_resp.result.getQuotaResult.prodConsumption: 72:result += get_quota_str(quota_resp.result.getQuotaResult.prodConsumption) 73: if quota_resp.result.getQuotaResult.nonProdConsumption: 75:result += get_quota_str(quota_resp.result.getQuotaResult.nonProdConsumption) src/main/python/apache/aurora/client/commands/admin.py 199: quota = resp.result.getQuotaResult.quota src/main/python/apache/aurora/client/commands/core.py 632: print_quota(resp.result.getQuotaResult.quota, 'Total allocated quota', role) 634: if resp.result.getQuotaResult.prodConsumption: 635:print_quota(resp.result.getQuotaResult.prodConsumption, 639: if resp.result.getQuotaResult.nonProdConsumption: 640:print_quota(resp.result.getQuotaResult.nonProdConsumption, src/test/python/apache/aurora/client/api/test_quota_check.py 49:getQuotaResult=GetQuotaResult( src/test/python/apache/aurora/client/cli/test_quota.py 35:response.result.getQuotaResult = GetQuotaResult() 36:response.result.getQuotaResult.quota = ResourceAggregate() 37:response.result.getQuotaResult.quota.numCpus = 5 38:response.result.getQuotaResult.quota.ramMb = 20480 39:response.result.getQuotaResult.quota.diskMb = 40960 40:response.result.getQuotaResult.consumed = None 47:response.result.getQuotaResult = GetQuotaResult() 48:response.result.getQuotaResult.quota = ResourceAggregate() 49:response.result.getQuotaResult.quota.numCpus = 5 50:response.result.getQuotaResult.quota.ramMb = 20480 51:response.result.getQuotaResult.quota.diskMb = 40960 52:response.result.getQuotaResult.prodConsumption = ResourceAggregate() 53:response.result.getQuotaResult.prodConsumption.numCpus = 1 54:response.result.getQuotaResult.prodConsumption.ramMb = 1024 55:response.result.getQuotaResult.prodConsumption.diskMb = 2048 56:response.result.getQuotaResult.nonProdConsumption = ResourceAggregate() 57:response.result.getQuotaResult.nonProdConsumption.numCpus = 1 58:response.result.getQuotaResult.nonProdConsumption.ramMb = 1024 59:response.result.getQuotaResult.nonProdConsumption.diskMb = 2048 ? git:(mansu/AURORA-246_getQuotaAPI) ~/workspace/incubator-aurora Thanks, Suman Karumuri
Re: Review Request 19565: Role and Role/env pages for Scheduler
columnCollection role environment quotaError quotaErrorMsg jobsTableConfig jobsTableColumns cronJobsTableConfig cronJobsTableColumns showResources resourceButtonText (possibly more that i've missed) And some of these have relationships. It would be nice to have relationships follow the scoping (i shouldn't have an errorMsg or reloadMsg without an error). Laying out a scoping convention early will also help define the pattern before the scope becomes unwieldy. The scope of all these variables is within the JobSummaryController and so not global. I have refactored errors into a directive to make this a bit more cleaner. I have also refactored quota code into a new controller so the JobSummaryController is more focussed. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/#review38325 --- On March 23, 2014, 4:35 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- (Updated March 23, 2014, 4:35 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19565/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19565: Role and Role/env pages for Scheduler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- (Updated March 25, 2014, 2:55 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- refactored quota info into a controller, folded error handling into a directive. addressed bill's code review comments. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs (updated) - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19565/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19509: Now consuming nonProd consumption from the new getQuota API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- (Updated March 26, 2014, 10 p.m.) Review request for Aurora, Mark Chu-Carroll and Bill Farner. Changes --- Added Bill Bugs: AURORA-246 https://issues.apache.org/jira/browse/AURORA-246 Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 9977c725528086d3e8cf58de294adee542570411 src/test/python/apache/aurora/client/cli/test_quota.py 44afd74aa5b11296951f45fe7edca8cb58b0ec18 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh 27b745ea31189a0ea0731619eb4c06f802aa04b9 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look into this tomorrow, if it's a blocker. Found all the code to update by running the following query. ? git:(mansu/AURORA-246_getQuotaAPI) ag getQuotaResult -G '.py' ~/workspace/incubator-aurora src/main/python/apache/aurora/client/api/quota_check.py 90:allocated = CapacityRequest(resp.result.getQuotaResult.quota) 91:consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption) src/main/python/apache/aurora/client/cli/quota.py 65: return serialize(quota_resp.result.getQuotaResult, 69: result += get_quota_str(quota_resp.result.getQuotaResult.quota) 70: if quota_resp.result.getQuotaResult.prodConsumption: 72:result += get_quota_str(quota_resp.result.getQuotaResult.prodConsumption) 73: if quota_resp.result.getQuotaResult.nonProdConsumption: 75:result += get_quota_str(quota_resp.result.getQuotaResult.nonProdConsumption) src/main/python/apache/aurora/client/commands/admin.py 199: quota = resp.result.getQuotaResult.quota src/main/python/apache/aurora/client/commands/core.py 632: print_quota(resp.result.getQuotaResult.quota, 'Total allocated quota', role) 634: if resp.result.getQuotaResult.prodConsumption: 635:print_quota(resp.result.getQuotaResult.prodConsumption, 639: if resp.result.getQuotaResult.nonProdConsumption: 640:print_quota(resp.result.getQuotaResult.nonProdConsumption, src/test/python/apache/aurora/client/api/test_quota_check.py 49:getQuotaResult=GetQuotaResult( src/test/python/apache/aurora/client/cli/test_quota.py 35:response.result.getQuotaResult = GetQuotaResult() 36:response.result.getQuotaResult.quota = ResourceAggregate() 37:response.result.getQuotaResult.quota.numCpus = 5 38:response.result.getQuotaResult.quota.ramMb = 20480 39:response.result.getQuotaResult.quota.diskMb = 40960 40:response.result.getQuotaResult.consumed = None 47:response.result.getQuotaResult = GetQuotaResult() 48:response.result.getQuotaResult.quota = ResourceAggregate() 49:response.result.getQuotaResult.quota.numCpus = 5 50:response.result.getQuotaResult.quota.ramMb = 20480 51:response.result.getQuotaResult.quota.diskMb = 40960 52:response.result.getQuotaResult.prodConsumption = ResourceAggregate() 53:response.result.getQuotaResult.prodConsumption.numCpus = 1 54:response.result.getQuotaResult.prodConsumption.ramMb = 1024 55:response.result.getQuotaResult.prodConsumption.diskMb = 2048 56:response.result.getQuotaResult.nonProdConsumption = ResourceAggregate() 57:response.result.getQuotaResult.nonProdConsumption.numCpus = 1 58:response.result.getQuotaResult.nonProdConsumption.ramMb = 1024 59:response.result.getQuotaResult.nonProdConsumption.diskMb = 2048 ? git:(mansu/AURORA-246_getQuotaAPI) ~/workspace/incubator-aurora Thanks, Suman Karumuri
Re: Review Request 19565: Role and Role/env pages for Scheduler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- (Updated March 26, 2014, 11:01 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Merged error and errorMsg into error. Cleaned up css a bit for more compact and cleaner UI. Also, made the container fluid so it works better when page resizes. Previously we were setting the page title on loading the home page only. Fixed it to set page title on role and role/env page also. Made service.js more dry. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs (updated) - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19565/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19509: Now consuming nonProd consumption from the new getQuota API
On March 26, 2014, 11:52 p.m., Bill Farner wrote: src/main/python/apache/aurora/client/cli/quota.py, line 70 https://reviews.apache.org/r/19509/diff/3/?file=534303#file534303line70 DRY: quota_result = resp.result.getQuotaResult apply libarally done. On March 26, 2014, 11:52 p.m., Bill Farner wrote: src/main/python/apache/aurora/client/commands/core.py, line 632 https://reviews.apache.org/r/19509/diff/3/?file=534304#file534304line632 ditto done. On March 26, 2014, 11:52 p.m., Bill Farner wrote: src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh, line 67 https://reviews.apache.org/r/19509/diff/3/?file=534306#file534306line67 comment not useful removed. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/#review38678 --- On March 26, 2014, 10 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- (Updated March 26, 2014, 10 p.m.) Review request for Aurora, Mark Chu-Carroll and Bill Farner. Bugs: AURORA-246 https://issues.apache.org/jira/browse/AURORA-246 Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 9977c725528086d3e8cf58de294adee542570411 src/test/python/apache/aurora/client/cli/test_quota.py 44afd74aa5b11296951f45fe7edca8cb58b0ec18 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh 27b745ea31189a0ea0731619eb4c06f802aa04b9 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look into this tomorrow, if it's a blocker. Found all the code to update by running the following query. ? git:(mansu/AURORA-246_getQuotaAPI) ag getQuotaResult -G '.py' ~/workspace/incubator-aurora src/main/python/apache/aurora/client/api/quota_check.py 90:allocated = CapacityRequest(resp.result.getQuotaResult.quota) 91:consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption) src/main/python/apache/aurora/client/cli/quota.py 65: return serialize(quota_resp.result.getQuotaResult, 69: result += get_quota_str(quota_resp.result.getQuotaResult.quota) 70: if quota_resp.result.getQuotaResult.prodConsumption: 72:result += get_quota_str(quota_resp.result.getQuotaResult.prodConsumption) 73: if quota_resp.result.getQuotaResult.nonProdConsumption: 75:result += get_quota_str(quota_resp.result.getQuotaResult.nonProdConsumption) src/main/python/apache/aurora/client/commands/admin.py 199: quota = resp.result.getQuotaResult.quota src/main/python/apache/aurora/client/commands/core.py 632: print_quota(resp.result.getQuotaResult.quota, 'Total allocated quota', role) 634: if resp.result.getQuotaResult.prodConsumption: 635:print_quota(resp.result.getQuotaResult.prodConsumption, 639: if resp.result.getQuotaResult.nonProdConsumption: 640:print_quota(resp.result.getQuotaResult.nonProdConsumption, src/test/python/apache/aurora/client/api/test_quota_check.py 49:getQuotaResult=GetQuotaResult( src/test/python/apache/aurora/client/cli/test_quota.py 35:response.result.getQuotaResult = GetQuotaResult() 36:response.result.getQuotaResult.quota = ResourceAggregate() 37:response.result.getQuotaResult.quota.numCpus = 5 38:response.result.getQuotaResult.quota.ramMb = 20480 39:response.result.getQuotaResult.quota.diskMb = 40960 40:response.result.getQuotaResult.consumed = None 47:response.result.getQuotaResult = GetQuotaResult() 48:response.result.getQuotaResult.quota = ResourceAggregate() 49:response.result.getQuotaResult.quota.numCpus = 5 50:response.result.getQuotaResult.quota.ramMb = 20480 51:response.result.getQuotaResult.quota.diskMb = 40960 52:response.result.getQuotaResult.prodConsumption
Re: Review Request 19509: Now consuming nonProd consumption from the new getQuota API
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19509/ --- (Updated March 27, 2014, 7:06 p.m.) Review request for Aurora, Mark Chu-Carroll and Bill Farner. Changes --- Rebased code with master. Updated tests to not use underscore in the args. Bugs: AURORA-246 https://issues.apache.org/jira/browse/AURORA-246 Repository: aurora Description --- Updated the client to consume the new getQuota API which contains nonProdConsumption(resources consumed by non-prod tasks) information also. Currently, the mocked calls can't detect renamed and missing thrift structs. Added tests to look for expected fields in GetQuotaResult and ResourceAggregate structs. Refactored tests in test_quota to remove duplicated code and added a missing test. Diffs (updated) - src/main/python/apache/aurora/client/cli/quota.py d06f21a80575058aefa3dffc72b365805d7a5ce2 src/main/python/apache/aurora/client/commands/core.py 7a48ac134cb8c00af968f26d4a78b414881549b8 src/test/python/apache/aurora/client/cli/test_quota.py 26cf30241e340acc5f3ce42145a6c50df211aa83 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh 27b745ea31189a0ea0731619eb4c06f802aa04b9 Diff: https://reviews.apache.org/r/19509/diff/ Testing --- ./pants src/test/python:all -vxs Works for all quota related test. src.test.python.apache.thermos.bin.test_thermos fails on my laptop because of build issues. Sending out a code review since it is an un-related issue. Will look into this tomorrow, if it's a blocker. Found all the code to update by running the following query. ? git:(mansu/AURORA-246_getQuotaAPI) ag getQuotaResult -G '.py' ~/workspace/incubator-aurora src/main/python/apache/aurora/client/api/quota_check.py 90:allocated = CapacityRequest(resp.result.getQuotaResult.quota) 91:consumed = CapacityRequest(resp.result.getQuotaResult.prodConsumption) src/main/python/apache/aurora/client/cli/quota.py 65: return serialize(quota_resp.result.getQuotaResult, 69: result += get_quota_str(quota_resp.result.getQuotaResult.quota) 70: if quota_resp.result.getQuotaResult.prodConsumption: 72:result += get_quota_str(quota_resp.result.getQuotaResult.prodConsumption) 73: if quota_resp.result.getQuotaResult.nonProdConsumption: 75:result += get_quota_str(quota_resp.result.getQuotaResult.nonProdConsumption) src/main/python/apache/aurora/client/commands/admin.py 199: quota = resp.result.getQuotaResult.quota src/main/python/apache/aurora/client/commands/core.py 632: print_quota(resp.result.getQuotaResult.quota, 'Total allocated quota', role) 634: if resp.result.getQuotaResult.prodConsumption: 635:print_quota(resp.result.getQuotaResult.prodConsumption, 639: if resp.result.getQuotaResult.nonProdConsumption: 640:print_quota(resp.result.getQuotaResult.nonProdConsumption, src/test/python/apache/aurora/client/api/test_quota_check.py 49:getQuotaResult=GetQuotaResult( src/test/python/apache/aurora/client/cli/test_quota.py 35:response.result.getQuotaResult = GetQuotaResult() 36:response.result.getQuotaResult.quota = ResourceAggregate() 37:response.result.getQuotaResult.quota.numCpus = 5 38:response.result.getQuotaResult.quota.ramMb = 20480 39:response.result.getQuotaResult.quota.diskMb = 40960 40:response.result.getQuotaResult.consumed = None 47:response.result.getQuotaResult = GetQuotaResult() 48:response.result.getQuotaResult.quota = ResourceAggregate() 49:response.result.getQuotaResult.quota.numCpus = 5 50:response.result.getQuotaResult.quota.ramMb = 20480 51:response.result.getQuotaResult.quota.diskMb = 40960 52:response.result.getQuotaResult.prodConsumption = ResourceAggregate() 53:response.result.getQuotaResult.prodConsumption.numCpus = 1 54:response.result.getQuotaResult.prodConsumption.ramMb = 1024 55:response.result.getQuotaResult.prodConsumption.diskMb = 2048 56:response.result.getQuotaResult.nonProdConsumption = ResourceAggregate() 57:response.result.getQuotaResult.nonProdConsumption.numCpus = 1 58:response.result.getQuotaResult.nonProdConsumption.ramMb = 1024 59:response.result.getQuotaResult.nonProdConsumption.diskMb = 2048 ? git:(mansu/AURORA-246_getQuotaAPI) ~/workspace/incubator-aurora Thanks, Suman Karumuri
Re: Review Request 19648: Preserving sandbox deleted task history.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19648/#review38800 --- Can this wait till the UI changes are pushed (in the next few days) - Suman Karumuri On March 27, 2014, 7:59 p.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19648/ --- (Updated March 27, 2014, 7:59 p.m.) Review request for Aurora, Kevin Sweeney, Suman Karumuri, and Bill Farner. Bugs: AURORA-261 https://issues.apache.org/jira/browse/AURORA-261 Repository: aurora Description --- Part 2: - Renaming UNKNOWN to SANDBOX_DELETED; - Persisting SANDBOX_DELETED on legal transitions to ensure history is retained; - Adding a new DELETED volatile state to guide task deletion on absent ScheduleStatus value; - Dropping delete methods from SchedulerCore and StateManager interfaces to ensure all task deletion goes through DELETED state change; - UI changes to report terminal state in case of GC deletion (screenshots attached). Diffs - src/main/java/org/apache/aurora/scheduler/MesosSchedulerImpl.java 772511f74fc12cf320f9eb4dcc857c58a3546aa1 src/main/java/org/apache/aurora/scheduler/base/Jobs.java 4ac218b8f25be5e9e6b6243558af4258efe6e61a src/main/java/org/apache/aurora/scheduler/base/Tasks.java 003d475a1bd4ecc099d9a641fd239a8189f71cdb src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/state/SchedulerCore.java 7a13a8b9e8c9b7a767ec4bc4201e97de17809b82 src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java 3ca4ee529aaf3491118da216116b19d7c6a49d09 src/main/java/org/apache/aurora/scheduler/state/StateManager.java 4249707b283da078321faaaed006de54519238bc src/main/java/org/apache/aurora/scheduler/state/StateManagerImpl.java 0161fac838ff5166161acd2960058de6856b0e9c src/main/java/org/apache/aurora/scheduler/state/TaskStateMachine.java d2becea60e5d7bb59a2e5adb66e10cd50f6b56f3 src/main/python/apache/aurora/executor/gc_executor.py 4a866b2d6041a592692812eb3472db744d21e194 src/main/resources/org/apache/aurora/scheduler/http/schedulerzjob.st 28b56671b2e825912a6427e609c2bbe1e7758e26 src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/MesosSchedulerImplTest.java 534b2b62cc2ae0ae9baab0247c9679350f03042b src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/async/HistoryPrunerTest.java 378ece964081a7cb475dc6edd9b19ed506f03ec8 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java effe14bf36d967b64a30af77378f106b862944cd src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java 2006ddb7f83a8ad2a1ce6ff3a96faf3c0bd8d8e9 src/test/java/org/apache/aurora/scheduler/base/TasksTest.java 102fe04f8d3a7142a0cd58251e16d31e8d4a433d src/test/java/org/apache/aurora/scheduler/state/BaseSchedulerCoreImplTest.java 033ebd29a4e95914347c1f5f8ade73115585a26f src/test/java/org/apache/aurora/scheduler/state/StateManagerImplTest.java 24949c043b16a35a7960ed0a40b79f0981179eae src/test/java/org/apache/aurora/scheduler/state/TaskStateMachineTest.java e77063a9c8e40e015ec264b151a7ed76f1c7f00f src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19648/diff/ Testing --- ./build-support/jenkins/build.sh File Attachments Finished https://reviews.apache.org/media/uploaded/files/2014/03/25/c5dd85ec-14df-4744-a2f9-d3af089e6286__CompletedFinished.png Deleted https://reviews.apache.org/media/uploaded/files/2014/03/25/5bd3f5ec-89f8-4c91-a034-499a8db4caf9__CompletedDeleted.png Thanks, Maxim Khutornenko
Re: Review Request 19565: Role and Role/env pages for Scheduler
On March 26, 2014, 11:46 p.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js, line 65 https://reviews.apache.org/r/19565/diff/2-3/?file=535008#file535008line65 Are there specific browsers we're stretching for compatibility with here? If so, calling them out would be helpful for people in the future. Dropped the comment since it is not apply anymore. On March 26, 2014, 11:46 p.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js, line 52 https://reviews.apache.org/r/19565/diff/2-3/?file=535008#file535008line52 Same story as before, why not just use one field if they follow each other? Did it this way since there is no guarantee that the server will return a non-empty error message and I didn't want to clobber the error message received from the server. Further, keeping the error field separate will also let me pass the error code onto the controller in future, if needed (ex: client is throttled because of too many requests, retry or an authentication error). - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/#review38677 --- On March 26, 2014, 11:01 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- (Updated March 26, 2014, 11:01 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https
Re: Review Request 19565: Role and Role/env pages for Scheduler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- (Updated March 27, 2014, 9:04 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs (updated) - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19565/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19648: Preserving sandbox deleted task history.
On March 27, 2014, 8:26 p.m., Suman Karumuri wrote: Can this wait till the UI changes are pushed (in the next few days) Maxim Khutornenko wrote: I am not sure why this work change would have to be blocked by the UI refactoring. It has a very limited UI component in it and I would rather ship it sooner to get better confidence in test. I have already deleted the job page in my branch. Please go ahead with these changes. I will pull them in once this lands. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19648/#review38800 --- On March 27, 2014, 7:59 p.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19648/ --- (Updated March 27, 2014, 7:59 p.m.) Review request for Aurora, Kevin Sweeney, Suman Karumuri, and Bill Farner. Bugs: AURORA-261 https://issues.apache.org/jira/browse/AURORA-261 Repository: aurora Description --- Part 2: - Renaming UNKNOWN to SANDBOX_DELETED; - Persisting SANDBOX_DELETED on legal transitions to ensure history is retained; - Adding a new DELETED volatile state to guide task deletion on absent ScheduleStatus value; - Dropping delete methods from SchedulerCore and StateManager interfaces to ensure all task deletion goes through DELETED state change; - UI changes to report terminal state in case of GC deletion (screenshots attached). Diffs - src/main/java/org/apache/aurora/scheduler/MesosSchedulerImpl.java 772511f74fc12cf320f9eb4dcc857c58a3546aa1 src/main/java/org/apache/aurora/scheduler/base/Jobs.java 4ac218b8f25be5e9e6b6243558af4258efe6e61a src/main/java/org/apache/aurora/scheduler/base/Tasks.java 003d475a1bd4ecc099d9a641fd239a8189f71cdb src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/state/SchedulerCore.java 7a13a8b9e8c9b7a767ec4bc4201e97de17809b82 src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java 3ca4ee529aaf3491118da216116b19d7c6a49d09 src/main/java/org/apache/aurora/scheduler/state/StateManager.java 4249707b283da078321faaaed006de54519238bc src/main/java/org/apache/aurora/scheduler/state/StateManagerImpl.java 0161fac838ff5166161acd2960058de6856b0e9c src/main/java/org/apache/aurora/scheduler/state/TaskStateMachine.java d2becea60e5d7bb59a2e5adb66e10cd50f6b56f3 src/main/python/apache/aurora/executor/gc_executor.py 4a866b2d6041a592692812eb3472db744d21e194 src/main/resources/org/apache/aurora/scheduler/http/schedulerzjob.st 28b56671b2e825912a6427e609c2bbe1e7758e26 src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/MesosSchedulerImplTest.java 534b2b62cc2ae0ae9baab0247c9679350f03042b src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/async/HistoryPrunerTest.java 378ece964081a7cb475dc6edd9b19ed506f03ec8 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java effe14bf36d967b64a30af77378f106b862944cd src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java 2006ddb7f83a8ad2a1ce6ff3a96faf3c0bd8d8e9 src/test/java/org/apache/aurora/scheduler/base/TasksTest.java 102fe04f8d3a7142a0cd58251e16d31e8d4a433d src/test/java/org/apache/aurora/scheduler/state/BaseSchedulerCoreImplTest.java 033ebd29a4e95914347c1f5f8ade73115585a26f src/test/java/org/apache/aurora/scheduler/state/StateManagerImplTest.java 24949c043b16a35a7960ed0a40b79f0981179eae src/test/java/org/apache/aurora/scheduler/state/TaskStateMachineTest.java e77063a9c8e40e015ec264b151a7ed76f1c7f00f src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19648/diff/ Testing --- ./build-support/jenkins/build.sh File Attachments Finished https://reviews.apache.org/media/uploaded/files/2014/03/25/c5dd85ec-14df-4744-a2f9-d3af089e6286__CompletedFinished.png Deleted https://reviews.apache.org/media/uploaded/files/2014/03/25/5bd3f5ec-89f8-4c91-a034-499a8db4caf9__CompletedDeleted.png Thanks, Maxim Khutornenko
Re: Review Request 19648: Preserving sandbox deleted task history.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19648/#review38923 --- Ship it! - Suman Karumuri On March 28, 2014, 12:27 a.m., Maxim Khutornenko wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19648/ --- (Updated March 28, 2014, 12:27 a.m.) Review request for Aurora, Kevin Sweeney, Suman Karumuri, and Bill Farner. Bugs: AURORA-261 https://issues.apache.org/jira/browse/AURORA-261 Repository: aurora Description --- Part 2: - Renaming UNKNOWN to SANDBOX_DELETED; - Persisting SANDBOX_DELETED on legal transitions to ensure history is retained; - Adding a new DELETED volatile state to guide task deletion on absent ScheduleStatus value; - Dropping delete methods from SchedulerCore and StateManager interfaces to ensure all task deletion goes through DELETED state change; - UI changes to report terminal state in case of GC deletion (screenshots attached). Diffs - src/main/java/org/apache/aurora/scheduler/MesosSchedulerImpl.java 772511f74fc12cf320f9eb4dcc857c58a3546aa1 src/main/java/org/apache/aurora/scheduler/base/Jobs.java 4ac218b8f25be5e9e6b6243558af4258efe6e61a src/main/java/org/apache/aurora/scheduler/base/Tasks.java 003d475a1bd4ecc099d9a641fd239a8189f71cdb src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/state/SchedulerCore.java 7a13a8b9e8c9b7a767ec4bc4201e97de17809b82 src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java 3ca4ee529aaf3491118da216116b19d7c6a49d09 src/main/java/org/apache/aurora/scheduler/state/StateManager.java 4249707b283da078321faaaed006de54519238bc src/main/java/org/apache/aurora/scheduler/state/StateManagerImpl.java 0161fac838ff5166161acd2960058de6856b0e9c src/main/java/org/apache/aurora/scheduler/state/TaskStateMachine.java d2becea60e5d7bb59a2e5adb66e10cd50f6b56f3 src/main/python/apache/aurora/executor/gc_executor.py 4a866b2d6041a592692812eb3472db744d21e194 src/main/resources/org/apache/aurora/scheduler/http/schedulerzjob.st 28b56671b2e825912a6427e609c2bbe1e7758e26 src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/MesosSchedulerImplTest.java 534b2b62cc2ae0ae9baab0247c9679350f03042b src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/async/HistoryPrunerTest.java 378ece964081a7cb475dc6edd9b19ed506f03ec8 src/test/java/org/apache/aurora/scheduler/base/JobsTest.java effe14bf36d967b64a30af77378f106b862944cd src/test/java/org/apache/aurora/scheduler/base/TaskTestUtil.java 2006ddb7f83a8ad2a1ce6ff3a96faf3c0bd8d8e9 src/test/java/org/apache/aurora/scheduler/base/TasksTest.java 102fe04f8d3a7142a0cd58251e16d31e8d4a433d src/test/java/org/apache/aurora/scheduler/state/BaseSchedulerCoreImplTest.java 033ebd29a4e95914347c1f5f8ade73115585a26f src/test/java/org/apache/aurora/scheduler/state/StateManagerImplTest.java 24949c043b16a35a7960ed0a40b79f0981179eae src/test/java/org/apache/aurora/scheduler/state/TaskStateMachineTest.java e77063a9c8e40e015ec264b151a7ed76f1c7f00f src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19648/diff/ Testing --- ./build-support/jenkins/build.sh File Attachments Finished https://reviews.apache.org/media/uploaded/files/2014/03/25/c5dd85ec-14df-4744-a2f9-d3af089e6286__CompletedFinished.png Deleted https://reviews.apache.org/media/uploaded/files/2014/03/25/5bd3f5ec-89f8-4c91-a034-499a8db4caf9__CompletedDeleted.png Thanks, Maxim Khutornenko
Re: Review Request 19565: Role and Role/env pages for Scheduler
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- (Updated March 31, 2014, 12:36 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Changes --- Updated error handling per Bill's comments. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs (updated) - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19565/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19565: Role and Role/env pages for Scheduler
On March 26, 2014, 11:46 p.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js, line 52 https://reviews.apache.org/r/19565/diff/2-3/?file=535008#file535008line52 Same story as before, why not just use one field if they follow each other? Suman Karumuri wrote: Did it this way since there is no guarantee that the server will return a non-empty error message and I didn't want to clobber the error message received from the server. Further, keeping the error field separate will also let me pass the error code onto the controller in future, if needed (ex: client is throttled because of too many requests, retry or an authentication error). Bill Farner wrote: All the more reason to adapt here, it's confusing to present an empty error message to the user. If you spot one here, you can/should change it to 'No error message returned from the scheduler.' Done. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/#review38677 --- On March 31, 2014, 12:36 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19565/ --- (Updated March 31, 2014, 12:36 a.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-39 https://issues.apache.org/jira/browse/AURORA-39 Repository: aurora Description --- Implemented the scheduler role and role/env pages using AngularJS. Added angular route and underscore.js modules. Diffs - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19565/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Review Request 19833: Migrated Job page to angular JS
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/ --- Review request for Aurora, Kevin Sweeney and Bill Farner. Repository: aurora Description --- *** Please review Diff 2. Diff 1 is https://reviews.apache.org/r/19565/. Added it here so only new code can be reviewed. *** Migrated job page to AngularJS. Removed old scheduler job page. Removed js related to the old scheduler page. Removed data tables. Added moment.js library for date time manipulation. Refactored code a bit for reusability. Code changes start from page 5. Since the role/env code is not committed, this diff contains that code as well. Diffs - 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/.editorconfig PRE-CREATION 3rdparty/javascript/bower_components/underscore/.gitignore PRE-CREATION 3rdparty/javascript/bower_components/underscore/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/underscore/README.md PRE-CREATION 3rdparty/javascript/bower_components/underscore/bower.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/component.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/package.json PRE-CREATION 3rdparty/javascript/bower_components/underscore/underscore.js PRE-CREATION src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzRole.java e2f9ed0ea846c570de11b7dd85bc90aee6bc3342 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19833: Migrated Job page to angular JS
/assets/datatables/images/sort_desc.png def071ed5afd264a036f6d9e75856366fd6ad153 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_desc_disabled.png 7824973cc60fc1841b16f2cb39323cefcdc3f942 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.bootstrap.js 420e507086f7a2af08f68787f67208546745260d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.htmlNumberType.js 885ad347f3076dcf75558ef44806dc25a8171884 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.localstorage.js 3c0b39aefbd5a82adee49f2ac7539b6974576b2f src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/jquery.dataTables.min.js 02694a4a56eb247baa2398d971927dfbd1ac3e60 src/main/resources/org/apache/aurora/scheduler/http/assets/dictionary.js 92045c41706ee9315f3522c3b5bbff7f6e7d2c64 src/main/resources/org/apache/aurora/scheduler/http/assets/util.js 5dd0d17849c7116d70925275b9c6c0715b441f14 src/main/resources/org/apache/aurora/scheduler/http/schedulerzjob.st 28b56671b2e825912a6427e609c2bbe1e7758e26 src/main/resources/org/apache/aurora/scheduler/http/schedulerzrole.st b53f3524be052dcd5882c3e79e95e2f90aa071b8 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources/org/apache/aurora/scheduler/http/ui/error.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/home.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/index.html 36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/job.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/jobLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleEnvLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/roleLink.html fc25526389749e95efa87c719062dcea88935383 src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19808: Remove the failed JobManager abstraction.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19808/#review39078 --- Ship it! src/main/java/org/apache/aurora/scheduler/state/CronJobManager.java https://reviews.apache.org/r/19808/#comment71465 Can we change this to use an iterable? - Suman Karumuri On March 28, 2014, 9:51 p.m., Bill Farner wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19808/ --- (Updated March 28, 2014, 9:51 p.m.) Review request for Aurora, Kevin Sweeney and Suman Karumuri. Repository: aurora Description --- This removes a circular dependency between CronJobManager and SchedulerCoreImpl. There are some minor cleanups to CronJobManager that i've made along the way. Diffs - src/main/java/org/apache/aurora/scheduler/state/CronJobManager.java 70ccf036c0676accd4a60c91bac1e6c77f365598 src/main/java/org/apache/aurora/scheduler/state/ImmediateJobManager.java dc18b5be337cf7383734fc1ef76203c6d52886e3 src/main/java/org/apache/aurora/scheduler/state/JobManager.java 8dba0a71c33ed58a2c7be00a26d88178c5901434 src/main/java/org/apache/aurora/scheduler/state/SchedulerCore.java 7a13a8b9e8c9b7a767ec4bc4201e97de17809b82 src/main/java/org/apache/aurora/scheduler/state/SchedulerCoreImpl.java 3ca4ee529aaf3491118da216116b19d7c6a49d09 src/main/java/org/apache/aurora/scheduler/state/StateModule.java 4f0bbfa9284bfe62d1a8f9cecedb01a79c6014fc src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java 12d33ffa0fc246d50ed95bb2399af9707087d068 src/test/java/org/apache/aurora/scheduler/state/BaseSchedulerCoreImplTest.java 033ebd29a4e95914347c1f5f8ade73115585a26f src/test/java/org/apache/aurora/scheduler/state/CronJobManagerTest.java 380df1011cec2970dbcf37252d469dc6373b66f6 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java c89965cee38a72b23fe65cb14bfa61b4cba0bfc4 Diff: https://reviews.apache.org/r/19808/diff/ Testing --- ./gradlew build Thanks, Bill Farner
Re: Review Request 19833: Migrated Job page to angular JS
/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 81cd12c4fea473192cd7e6b6dba245e4dde30b3d src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java c89965cee38a72b23fe65cb14bfa61b4cba0bfc4 src/test/java/org/apache/aurora/scheduler/thrift/aop/ServerInfoInterceptorTest.java dd991fb90889c3f221e537a78283eb4a31e5f0dd src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19833: Migrated Job page to angular JS
On April 1, 2014, 10:55 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java, line 134 https://reviews.apache.org/r/19833/diff/4/?file=544786#file544786line134 Can you address this TODO now? AFAICT there's nothing in the way of that. This option was moved from DisplayUtils.java. Punting on it for now. On April 1, 2014, 10:55 p.m., Bill Farner wrote: src/main/java/org/apache/aurora/scheduler/http/ServletModule.java, line 71 https://reviews.apache.org/r/19833/diff/4/?file=544789#file544789line71 revert Done. This is automatically done by the code formatter in intellij and I have to undo this every time. This is one of those code conventions I wish we didn't follow. On April 1, 2014, 10:55 p.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html, line 12 https://reviews.apache.org/r/19833/diff/4/?file=544810#file544810line12 Can you put an ng-if on the span and remove the second if? if environment li if job span I am not sure why, but doing it that way breaks the LI formatting. Leaving it as is for now. On April 1, 2014, 10:55 p.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, line 279 https://reviews.apache.org/r/19833/diff/4/?file=544815#file544815line279 Can you wrap these in a more readable way? e.g. {label: 'Instances', map: 'range', isSortable: false, formatFunction: function (range) { }, } Ditto in other hashes that span multiple lines. Done. On April 1, 2014, 10:55 p.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js, line 9 https://reviews.apache.org/r/19833/diff/4/?file=544817#file544817line9 Please be consistent about placing the + for strings that span multiple lines. Fixed. Code was copied from dictionary.js. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/#review39208 --- On April 1, 2014, 9:57 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/ --- (Updated April 1, 2014, 9:57 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- *** Please review Diff 2. Diff 1 is https://reviews.apache.org/r/19565/. Added it here so only new code can be reviewed. *** Migrated job page to AngularJS. Removed old scheduler job page. Removed js related to the old scheduler page. Removed data tables. Added moment.js library for date time manipulation. Refactored code a bit for reusability. Stats link should still be added to the new jobs page. Since the role/env code is not committed, this diff contains that code as well. Code changes start from page 4 in diff between version 1 and 2. Diffs - build.gradle c2a70b0285c6afb20f6db387e50744424c572d3f src/main/java/org/apache/aurora/scheduler/app/AppModule.java eeafc784e915137cacd5f64df1252ccbaf6c0f6c src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/css/jquery.dataTables.css ee6da23c3948a87b0d4df73e82e5c4e2ab2bc803 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_disabled.png 881de7976ff98955e2a5487dca66e618a0655f3d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled.png c608682b04a6d9b8002602450c8ef7e80ebba099 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled_hover.png d300f1064b3beac1d7d5274e294494d3143e53a2 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_disabled.png 6a6ded7de821619aedc71d1738c0b73463a4452e src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled.png a4e6b5384b8454ee7f44a8f7c75b0321b7eeb9b1 src/main/resources/org/apache/aurora/scheduler
Re: Review Request 19833: Migrated Job page to angular JS
/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 8681bbe840b6285b15dd6766016258c2c8115632 src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java fae2de11235dd059718e1023fdcfb0e8fc4deadd src/test/java/org/apache/aurora/scheduler/thrift/aop/ServerInfoInterceptorTest.java dd991fb90889c3f221e537a78283eb4a31e5f0dd src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 20146: AURORA-265: Add missing tooltips for task states in dictionary.js
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20146/#review39907 --- Thanks for the diff Dan. As part of the new UI roll out https://reviews.apache.org/r/19833/, I have removed this file from the server and moved this logic into the client side. I can add these changes as part of that diff or you can wait until that rb lands for this change. - Suman Karumuri On April 9, 2014, 5:34 p.m., Dan Norris wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20146/ --- (Updated April 9, 2014, 5:34 p.m.) Review request for Aurora and Maxim Khutornenko. Bugs: AURORA-265 https://issues.apache.org/jira/browse/AURORA-265 Repository: aurora Description --- AURORA-265: Add missing tooltips for task states in dictionary.js Diffs - src/main/resources/org/apache/aurora/scheduler/http/assets/dictionary.js 92045c41706ee9315f3522c3b5bbff7f6e7d2c64 Diff: https://reviews.apache.org/r/20146/diff/ Testing --- Visually inspected the scheduler w/ a sample job to verify that nothing was messed up. I'm not sure how to force a task with the Vagrant file into DRAINING or THROTTLED states. Thanks, Dan Norris
Re: Review Request 19833: Migrated Job page to angular JS
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/#review39908 --- pinging Kevin. - Suman Karumuri On April 4, 2014, 11:52 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/ --- (Updated April 4, 2014, 11:52 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- *** Please review Diff 2. Diff 1 is https://reviews.apache.org/r/19565/. Added it here so only new code can be reviewed. *** Migrated job page to AngularJS. Removed old scheduler job page. Removed js related to the old scheduler page. Removed data tables. Added moment.js library for date time manipulation. Refactored code a bit for reusability. Stats link should still be added to the new jobs page. Since the role/env code is not committed, this diff contains that code as well. Code changes start from page 4 in diff between version 1 and 2. Diffs - build.gradle 109c193da3324bd5534b409bfabb6aeb0adda7b1 src/main/java/org/apache/aurora/scheduler/app/AppModule.java eeafc784e915137cacd5f64df1252ccbaf6c0f6c src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/css/jquery.dataTables.css ee6da23c3948a87b0d4df73e82e5c4e2ab2bc803 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_disabled.png 881de7976ff98955e2a5487dca66e618a0655f3d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled.png c608682b04a6d9b8002602450c8ef7e80ebba099 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled_hover.png d300f1064b3beac1d7d5274e294494d3143e53a2 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_disabled.png 6a6ded7de821619aedc71d1738c0b73463a4452e src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled.png a4e6b5384b8454ee7f44a8f7c75b0321b7eeb9b1 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled_hover.png fc46c5ebf0524b72a509fe2d7c1bc74995cb8a9d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc.png a88d7975fe9017e4e5f2289a94bd1ed66a5f59dc src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc_disabled.png 4e144cf0b1f786a9248a2998311e8109998d8a2d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_both.png 18670406bc01ab2721781822dd6478917745ff54 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_desc.png def071ed5afd264a036f6d9e75856366fd6ad153 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_desc_disabled.png 7824973cc60fc1841b16f2cb39323cefcdc3f942 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.bootstrap.js 420e507086f7a2af08f68787f67208546745260d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.htmlNumberType.js 885ad347f3076dcf75558ef44806dc25a8171884 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.localstorage.js 3c0b39aefbd5a82adee49f2ac7539b6974576b2f src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/jquery.dataTables.min.js 02694a4a56eb247baa2398d971927dfbd1ac3e60 src/main/resources/org/apache/aurora/scheduler/http/assets/dictionary.js 92045c41706ee9315f3522c3b5bbff7f6e7d2c64 src/main/resources/org/apache/aurora/scheduler/http/assets/util.js 5dd0d17849c7116d70925275b9c6c0715b441f14 src/main/resources/org/apache/aurora/scheduler/http/schedulerzjob.st 28b56671b2e825912a6427e609c2bbe1e7758e26 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources
Re: Review Request 19833: Migrated Job page to angular JS
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/#review39909 --- pinging Kevin. - Suman Karumuri On April 4, 2014, 11:52 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/ --- (Updated April 4, 2014, 11:52 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- *** Please review Diff 2. Diff 1 is https://reviews.apache.org/r/19565/. Added it here so only new code can be reviewed. *** Migrated job page to AngularJS. Removed old scheduler job page. Removed js related to the old scheduler page. Removed data tables. Added moment.js library for date time manipulation. Refactored code a bit for reusability. Stats link should still be added to the new jobs page. Since the role/env code is not committed, this diff contains that code as well. Code changes start from page 4 in diff between version 1 and 2. Diffs - build.gradle 109c193da3324bd5534b409bfabb6aeb0adda7b1 src/main/java/org/apache/aurora/scheduler/app/AppModule.java eeafc784e915137cacd5f64df1252ccbaf6c0f6c src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/css/jquery.dataTables.css ee6da23c3948a87b0d4df73e82e5c4e2ab2bc803 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_disabled.png 881de7976ff98955e2a5487dca66e618a0655f3d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled.png c608682b04a6d9b8002602450c8ef7e80ebba099 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled_hover.png d300f1064b3beac1d7d5274e294494d3143e53a2 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_disabled.png 6a6ded7de821619aedc71d1738c0b73463a4452e src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled.png a4e6b5384b8454ee7f44a8f7c75b0321b7eeb9b1 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled_hover.png fc46c5ebf0524b72a509fe2d7c1bc74995cb8a9d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc.png a88d7975fe9017e4e5f2289a94bd1ed66a5f59dc src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc_disabled.png 4e144cf0b1f786a9248a2998311e8109998d8a2d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_both.png 18670406bc01ab2721781822dd6478917745ff54 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_desc.png def071ed5afd264a036f6d9e75856366fd6ad153 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_desc_disabled.png 7824973cc60fc1841b16f2cb39323cefcdc3f942 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.bootstrap.js 420e507086f7a2af08f68787f67208546745260d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.htmlNumberType.js 885ad347f3076dcf75558ef44806dc25a8171884 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/dataTables.localstorage.js 3c0b39aefbd5a82adee49f2ac7539b6974576b2f src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/js/jquery.dataTables.min.js 02694a4a56eb247baa2398d971927dfbd1ac3e60 src/main/resources/org/apache/aurora/scheduler/http/assets/dictionary.js 92045c41706ee9315f3522c3b5bbff7f6e7d2c64 src/main/resources/org/apache/aurora/scheduler/http/assets/util.js 5dd0d17849c7116d70925275b9c6c0715b441f14 src/main/resources/org/apache/aurora/scheduler/http/schedulerzjob.st 28b56671b2e825912a6427e609c2bbe1e7758e26 src/main/resources/org/apache/aurora/scheduler/http/ui/breadcrumb.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/css/app.css ade850ce624964693e9bd55946464983c4b9f8c2 src/main/resources
Re: Review Request 20146: AURORA-265: Add missing tooltips for task states in dictionary.js
On April 9, 2014, 5:35 p.m., Suman Karumuri wrote: Thanks for the diff Dan. As part of the new UI roll out https://reviews.apache.org/r/19833/, I have removed this file from the server and moved this logic into the client side. I can add these changes as part of that diff or you can wait until that rb lands for this change. Dan Norris wrote: I forgot you were working on that! If you don't mind, I'll just wait until that is committed and use that as an opportunity to see what's new. Sounds great! - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20146/#review39907 --- On April 9, 2014, 5:34 p.m., Dan Norris wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20146/ --- (Updated April 9, 2014, 5:34 p.m.) Review request for Aurora and Maxim Khutornenko. Bugs: AURORA-265 https://issues.apache.org/jira/browse/AURORA-265 Repository: aurora Description --- AURORA-265: Add missing tooltips for task states in dictionary.js Diffs - src/main/resources/org/apache/aurora/scheduler/http/assets/dictionary.js 92045c41706ee9315f3522c3b5bbff7f6e7d2c64 Diff: https://reviews.apache.org/r/20146/diff/ Testing --- Visually inspected the scheduler w/ a sample job to verify that nothing was messed up. I'm not sure how to force a task with the Vagrant file into DRAINING or THROTTLED states. Thanks, Dan Norris
Re: Review Request 19833: Migrated Job page to angular JS
/services.js, line 30 https://reviews.apache.org/r/19833/diff/6/?file=549477#file549477line30 These should be documented. Done. On April 15, 2014, 8:15 p.m., Kevin Sweeney wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js, line 63 https://reviews.apache.org/r/19833/diff/6/?file=549477#file549477line63 statsUrlPrefix Also consider making this nullable and hiding the icon behind an ng-hide if it's null. Renamed. We already hide the icon gated by the jobDashboardUrl. On April 15, 2014, 8:15 p.m., Kevin Sweeney wrote: src/main/thrift/org/apache/aurora/gen/api.thrift, line 439 https://reviews.apache.org/r/19833/diff/6/?file=549483#file549483line439 statsUrlPrefix. Also, is there any reason this can't be optional - seems like null should allow the scheduler to continue operating fine without needing a fake value. Renamed to statsUrlPrefix. I see making this field optional and setting it to null as orthogonal issues. This field shouldn't be optional since we pass serverInfo with every call. This field need to be set to start the scheduler, it can initialized to an empty string already. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/#review40443 --- On April 4, 2014, 11:52 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/ --- (Updated April 4, 2014, 11:52 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- *** Please review Diff 2. Diff 1 is https://reviews.apache.org/r/19565/. Added it here so only new code can be reviewed. *** Migrated job page to AngularJS. Removed old scheduler job page. Removed js related to the old scheduler page. Removed data tables. Added moment.js library for date time manipulation. Refactored code a bit for reusability. Stats link should still be added to the new jobs page. Since the role/env code is not committed, this diff contains that code as well. Code changes start from page 4 in diff between version 1 and 2. Diffs - build.gradle 109c193da3324bd5534b409bfabb6aeb0adda7b1 src/main/java/org/apache/aurora/scheduler/app/AppModule.java eeafc784e915137cacd5f64df1252ccbaf6c0f6c src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/css/jquery.dataTables.css ee6da23c3948a87b0d4df73e82e5c4e2ab2bc803 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_disabled.png 881de7976ff98955e2a5487dca66e618a0655f3d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled.png c608682b04a6d9b8002602450c8ef7e80ebba099 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled_hover.png d300f1064b3beac1d7d5274e294494d3143e53a2 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_disabled.png 6a6ded7de821619aedc71d1738c0b73463a4452e src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled.png a4e6b5384b8454ee7f44a8f7c75b0321b7eeb9b1 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled_hover.png fc46c5ebf0524b72a509fe2d7c1bc74995cb8a9d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc.png a88d7975fe9017e4e5f2289a94bd1ed66a5f59dc src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc_disabled.png 4e144cf0b1f786a9248a2998311e8109998d8a2d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_both.png 18670406bc01ab2721781822dd6478917745ff54 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_desc.png def071ed5afd264a036f6d9e75856366fd6ad153 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_desc_disabled.png
Re: Review Request 19833: Migrated Job page to angular JS
On April 6, 2014, 12:24 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html, line 9 https://reviews.apache.org/r/19833/diff/6/?file=549479#file549479line9 remove space before the colon, here and below Done. On April 6, 2014, 12:24 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, line 511 https://reviews.apache.org/r/19833/diff/6/?file=549474#file549474line511 s/result/ranges/ Done. On April 6, 2014, 12:24 a.m., Bill Farner wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/job.html, line 62 https://reviews.apache.org/r/19833/diff/6/?file=549472#file549472line62 Can you make this an anchor instead of span? Also, the issue i pointed out with the task links not working remains. Clicking the pi link, then clicking a task ID results in: Error fetching tasks: No tasks found for query: TaskQuery(owner:null, environment:task, jobName:1396742503655-mesos-test-adhocJob0-0-5a6d0345-56a5-41a9-89ec-70224fa826fc, taskIds:null, statuses:null, instanceIds:null, slaveHosts:null, jobKeys:null) Making it an anchor makes the code more complicated since we the browser would capture the default click on an anchor. Leaving it as is for now. I can make it look like a link if you want. Fixed the /structdump link. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/#review39642 --- On April 4, 2014, 11:52 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/ --- (Updated April 4, 2014, 11:52 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- *** Please review Diff 2. Diff 1 is https://reviews.apache.org/r/19565/. Added it here so only new code can be reviewed. *** Migrated job page to AngularJS. Removed old scheduler job page. Removed js related to the old scheduler page. Removed data tables. Added moment.js library for date time manipulation. Refactored code a bit for reusability. Stats link should still be added to the new jobs page. Since the role/env code is not committed, this diff contains that code as well. Code changes start from page 4 in diff between version 1 and 2. Diffs - build.gradle 109c193da3324bd5534b409bfabb6aeb0adda7b1 src/main/java/org/apache/aurora/scheduler/app/AppModule.java eeafc784e915137cacd5f64df1252ccbaf6c0f6c src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/css/jquery.dataTables.css ee6da23c3948a87b0d4df73e82e5c4e2ab2bc803 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_disabled.png 881de7976ff98955e2a5487dca66e618a0655f3d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled.png c608682b04a6d9b8002602450c8ef7e80ebba099 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled_hover.png d300f1064b3beac1d7d5274e294494d3143e53a2 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_disabled.png 6a6ded7de821619aedc71d1738c0b73463a4452e src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled.png a4e6b5384b8454ee7f44a8f7c75b0321b7eeb9b1 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled_hover.png fc46c5ebf0524b72a509fe2d7c1bc74995cb8a9d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc.png a88d7975fe9017e4e5f2289a94bd1ed66a5f59dc src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_asc_disabled.png 4e144cf0b1f786a9248a2998311e8109998d8a2d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/sort_both.png 18670406bc01ab2721781822dd6478917745ff54 src/main/resources/org/apache/aurora/scheduler/http/assets
Re: Review Request 19833: Migrated Job page to angular JS
On April 16, 2014, 12:18 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/job.html, line 30 https://reviews.apache.org/r/19833/diff/6/?file=549472#file549472line30 You don't need noMarginLeft here. The left padding is only applied to .span* that don't have a parent which is a .row. Put all divs that are part of the grid inside a div class=row And you can get rid of this CSS rule. Thanks! Fixed. On April 16, 2014, 12:18 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/job.html, line 43 https://reviews.apache.org/r/19833/diff/6/?file=549472#file549472line43 This should have consistent markup between both task containers. Consider adding an explicit .row and .span12 container divs for the smart-tables in both sections. I have intentionally dropped classes so we can allow the table the expand based on the screen size. On April 16, 2014, 12:18 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/job.html, line 62 https://reviews.apache.org/r/19833/diff/6/?file=549472#file549472line62 You can probably just use the .pull-right class from Bootstrap here. pull-right doesn't replicate the current behavior. Leaving it as is for backwards compatibility. On April 16, 2014, 12:18 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, line 440 https://reviews.apache.org/r/19833/diff/6/?file=549474#file549474line440 I'm not sure what browser compatibility we're aiming for, but if it's IE 9+ you could use native map here instead. Generally, we expect users to be using modern browsers. But in this case preferring to use map from userscore.js for code consistency and broader browser compatibility. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/#review40481 --- On April 4, 2014, 11:52 p.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/ --- (Updated April 4, 2014, 11:52 p.m.) Review request for Aurora, Kevin Sweeney and Bill Farner. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- *** Please review Diff 2. Diff 1 is https://reviews.apache.org/r/19565/. Added it here so only new code can be reviewed. *** Migrated job page to AngularJS. Removed old scheduler job page. Removed js related to the old scheduler page. Removed data tables. Added moment.js library for date time manipulation. Refactored code a bit for reusability. Stats link should still be added to the new jobs page. Since the role/env code is not committed, this diff contains that code as well. Code changes start from page 4 in diff between version 1 and 2. Diffs - build.gradle 109c193da3324bd5534b409bfabb6aeb0adda7b1 src/main/java/org/apache/aurora/scheduler/app/AppModule.java eeafc784e915137cacd5f64df1252ccbaf6c0f6c src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java ec56c649116c03ef148bac916bd6691a94685bc3 src/main/java/org/apache/aurora/scheduler/http/DisplayUtils.java 19df7889f15b4cf44e386d8ce0626cc94fdcdfba src/main/java/org/apache/aurora/scheduler/http/SchedulerzJob.java 2ccc6f367b9715a0abb3e0673069289ae4860087 src/main/java/org/apache/aurora/scheduler/http/ServletModule.java e3ff2571d95effcf72b2047cc5840d56143a180c src/main/java/org/apache/aurora/scheduler/http/UIRedirectFilter.java b35aad8db006133ba70692e43db1f083d4950914 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/css/jquery.dataTables.css ee6da23c3948a87b0d4df73e82e5c4e2ab2bc803 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_disabled.png 881de7976ff98955e2a5487dca66e618a0655f3d src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled.png c608682b04a6d9b8002602450c8ef7e80ebba099 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/back_enabled_hover.png d300f1064b3beac1d7d5274e294494d3143e53a2 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_disabled.png 6a6ded7de821619aedc71d1738c0b73463a4452e src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled.png a4e6b5384b8454ee7f44a8f7c75b0321b7eeb9b1 src/main/resources/org/apache/aurora/scheduler/http/assets/datatables/images/forward_enabled_hover.png fc46c5ebf0524b72a509fe2d7c1bc74995cb8a9d src/main/resources
Re: Review Request 19833: Migrated Job page to angular JS
/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 8681bbe840b6285b15dd6766016258c2c8115632 src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java fae2de11235dd059718e1023fdcfb0e8fc4deadd src/test/java/org/apache/aurora/scheduler/thrift/aop/ServerInfoInterceptorTest.java dd991fb90889c3f221e537a78283eb4a31e5f0dd src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19833: Migrated Job page to angular JS
src/main/resources/org/apache/aurora/scheduler/http/ui/job.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 8681bbe840b6285b15dd6766016258c2c8115632 src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java fae2de11235dd059718e1023fdcfb0e8fc4deadd src/test/java/org/apache/aurora/scheduler/thrift/aop/ServerInfoInterceptorTest.java dd991fb90889c3f221e537a78283eb4a31e5f0dd src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19833: Migrated Job page to angular JS
On April 17, 2014, 12:21 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, lines 361-363 https://reviews.apache.org/r/19833/diff/7/?file=560830#file560830line361 Better to move these default values to getTasksForJob (is the empty string default value even required in the Angular templating language?). The defaults are not required, but not having defaults, makes it hard to understand what's in the scope and what the default type should be. Further, assigning default values makes the UI more predictable when there is no data. So, keeping these. On April 17, 2014, 12:21 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, line 403 https://reviews.apache.org/r/19833/diff/7/?file=560830#file560830line403 Why isn't this part of taskUtil? Considered that. But left it here since this code is part of the data needed by the controller. Summarizing task configs is sort of an independent feature that can be used else where so moved it out of this class. Further, the rest of the code depends on the object returned here so it makes the controller code easier to read. On April 17, 2014, 12:21 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js, line 365 https://reviews.apache.org/r/19833/diff/7/?file=560830#file560830line365 Why are you passing $scope.role, $scope.environment and $scope.job into a function which reads and writes to the $scope object anyway? Why not just pass $scope? Or why have parameters at all if it's just a closure? If the intent is to break a large controller into functions to make it easier to read (which I think is a good idea), it is best to define this function outside of the controller itself, so that the function body is just the control flow. I'm not sure of the idiomatic way to do this in Angular.JS, but normally you just use JavaScript function scope to break your code into smaller functions without polluting your API. I mean intuitively I would just do something like: (function() { function getTasksForJob($scope) { // do some side-effecty things to $scope } function jobController($scope, ..) { // only control-flow code here getTasksForJob($scope); } auroraUIControllers.controller('JobController', jobController); })(); Passing the required fields explicitly makes the function signature simpler to reason about. I don't see much to be gained by moving this functionality out of the controller. Since we follow this pattern for other controllers, leaving it as is here. I can get rid of the arguments if you want and just access scope directly, but that would make it harder to know what args the function needs during tests. On April 17, 2014, 12:21 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js, line 92 https://reviews.apache.org/r/19833/diff/7/?file=560833#file560833line92 I realise this code doesn't have bugs right now, but the 'this' keyword can cause subtle problems given how easy it is to change the calling scope. You can avoid having to worry about it here by pulling the return object into a named variable and using that instead. i.e. function() { var taskUtil = { summarizeActiveConfigs: function(..) { //... this will still work taskUtil.isActiveTask(task); // .. }, isActiveTask: function(..) { .. } } return taskUtil; } Yeah this is better. Fixed it in the auroraClient as well. On April 17, 2014, 12:21 a.m., David McLaughlin wrote: src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js, lines 132-149 https://reviews.apache.org/r/19833/diff/7/?file=560833#file560833line132 Style: Beyond a one liner, it is best to extract these values into temporary variables. i.e. var constraints = _.chain(task.constraints) // etc. var metadata = _.chain(task.metadata) // etc. return { // .. constraints: constraints, metadata: metadata, // .. } We typically avoid spurious variables. In this case I think it's justified. - Suman --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833/#review40608 --- On April 16, 2014, 8:37 a.m., Suman Karumuri wrote: --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/19833
Re: Review Request 19833: Migrated Job page to angular JS
7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 8681bbe840b6285b15dd6766016258c2c8115632 src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java fae2de11235dd059718e1023fdcfb0e8fc4deadd src/test/java/org/apache/aurora/scheduler/thrift/aop/ServerInfoInterceptorTest.java dd991fb90889c3f221e537a78283eb4a31e5f0dd src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19833: Migrated Job page to angular JS
/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 8681bbe840b6285b15dd6766016258c2c8115632 src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION src/main/thrift/org/apache/aurora/gen/api.thrift c0618e4edebd6f282698abfd9bdc3c36fff16920 src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java a4e9464f7d5d3f5a640b62557c3e29f2f1566985 src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java fae2de11235dd059718e1023fdcfb0e8fc4deadd src/test/java/org/apache/aurora/scheduler/thrift/aop/ServerInfoInterceptorTest.java dd991fb90889c3f221e537a78283eb4a31e5f0dd src/test/resources/org/apache/aurora/gen/api.thrift.md5 05c6e8a1e2407f2822b3844c555d8995f1cd1d49 Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 19833: Migrated Job page to angular JS
36225d1e5147e30ba2cb4ddda96dec9f0f2f1dce src/main/resources/org/apache/aurora/scheduler/http/ui/job.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/app.js db6ea99aeb749fd8674613e3620dc3012872e13c src/main/resources/org/apache/aurora/scheduler/http/ui/js/controllers.js 7cd534479dd2f17ffd46248ce9af1f8fe89beb97 src/main/resources/org/apache/aurora/scheduler/http/ui/js/directives.js d2b2017a0efc70d425fd6c89ad6caaf46cb8ded5 src/main/resources/org/apache/aurora/scheduler/http/ui/js/filters.js PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/js/services.js 8681bbe840b6285b15dd6766016258c2c8115632 src/main/resources/org/apache/aurora/scheduler/http/ui/role.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/schedulingDetail.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskLink.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskSandbox.html PRE-CREATION src/main/resources/org/apache/aurora/scheduler/http/ui/taskStatus.html PRE-CREATION src/main/thrift/org/apache/aurora/gen/api.thrift c37928f3c53174b5a568e782e0da568544bd8c34 src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java db63e7988008abec75f840bb7b6710c3d155d47b src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java fae2de11235dd059718e1023fdcfb0e8fc4deadd src/test/java/org/apache/aurora/scheduler/thrift/aop/ServerInfoInterceptorTest.java dd991fb90889c3f221e537a78283eb4a31e5f0dd Diff: https://reviews.apache.org/r/19833/diff/ Testing --- ./gradlew clean build run on local laptop. Thanks, Suman Karumuri
Re: Review Request 20512: Role and Job pages using new Angular UI.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20512/ --- (Updated April 21, 2014, 9:39 p.m.) Review request for Aurora and Suman Karumuri. Changes --- Now setting task time stamp based on SANDBOX_DELETED status. Rebased with master. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- Full code diff for role and env page. Diffs (updated) - 3rdparty/javascript/bootstrap-glyphicons-master/README.md PRE-CREATION 3rdparty/javascript/bootstrap-glyphicons-master/css/bootstrap.icon-large.css PRE-CREATION 3rdparty/javascript/bootstrap-glyphicons-master/css/bootstrap.icon-large.min.css PRE-CREATION 3rdparty/javascript/bootstrap-glyphicons-master/glyphicons.png PRE-CREATION 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/momentjs/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/momentjs/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/momentjs/bower.json PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ar-ma.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ar.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/bg.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/br.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/bs.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ca.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/cs.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/cv.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/cy.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/da.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/de.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/el.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/en-au.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/en-ca.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/en-gb.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/eo.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/es.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/et.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/eu.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fa.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fi.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fo.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fr-ca.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fr.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/gl.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/he.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hi.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hr.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hu.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hy-am.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/id.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/is.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/it.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ja.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ka.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ko.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/lb.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/lt.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/lv.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/mk.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ml.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/mr.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ms-my.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/nb.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ne.js PRE-CREATION 3rdparty/javascript/bower_components
Re: Review Request 20512: Role and Job pages using new Angular UI.
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20512/ --- (Updated April 21, 2014, 9:40 p.m.) Review request for Aurora and Suman Karumuri. Bugs: AURORA-281 https://issues.apache.org/jira/browse/AURORA-281 Repository: aurora Description --- Full code diff for role and env page. Diffs - 3rdparty/javascript/bootstrap-glyphicons-master/README.md PRE-CREATION 3rdparty/javascript/bootstrap-glyphicons-master/css/bootstrap.icon-large.css PRE-CREATION 3rdparty/javascript/bootstrap-glyphicons-master/css/bootstrap.icon-large.min.css PRE-CREATION 3rdparty/javascript/bootstrap-glyphicons-master/glyphicons.png PRE-CREATION 3rdparty/javascript/bower_components/angular-route/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/angular-route/README.md PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js PRE-CREATION 3rdparty/javascript/bower_components/angular-route/angular-route.min.js.map PRE-CREATION 3rdparty/javascript/bower_components/angular-route/bower.json PRE-CREATION 3rdparty/javascript/bower_components/momentjs/.bower.json PRE-CREATION 3rdparty/javascript/bower_components/momentjs/LICENSE PRE-CREATION 3rdparty/javascript/bower_components/momentjs/bower.json PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ar-ma.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ar.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/bg.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/br.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/bs.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ca.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/cs.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/cv.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/cy.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/da.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/de.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/el.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/en-au.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/en-ca.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/en-gb.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/eo.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/es.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/et.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/eu.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fa.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fi.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fo.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fr-ca.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/fr.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/gl.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/he.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hi.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hr.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hu.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/hy-am.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/id.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/is.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/it.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ja.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ka.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ko.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/lb.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/lt.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/lv.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/mk.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ml.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/mr.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ms-my.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/nb.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/ne.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/nl.js PRE-CREATION 3rdparty/javascript/bower_components/momentjs/lang/nn.js PRE-CREATION 3rdparty