-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60942/#review180811
-----------------------------------------------------------
Master (243d6fa) is red with this patch.
./build-support/jenkins/build.sh
Found existing installation: setuptools 21.2.1
Uninstalling setuptools-21.2.1:
Successfully uninstalled setuptools-21.2.1
Successfully installed Markdown-2.1.1 Pygments-1.4 ansicolors-1.0.2 cffi-1.7.0
coverage-3.7.1 docutils-0.12 fasteners-0.14.1 futures-3.0.5 lmdb-0.89
monotonic-1.3 packaging-16.7 pantsbuild.pants-1.3.0.dev3 pathspec-0.3.4
pex-1.1.16 psutil-4.3.0 pycparser-2.18 pyparsing-2.2.0 pystache-0.5.3
pywatchman-1.3.0 requests-2.5.3 scandir-1.2 setproctitle-1.1.10
setuptools-30.0.0 six-1.10.0 twitter.common.collections-0.3.9
twitter.common.confluence-0.3.9 twitter.common.dirutil-0.3.9
twitter.common.lang-0.3.9 twitter.common.log-0.3.9 twitter.common.options-0.3.9
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
14:57:38 00:00 [main]
(To run a reporting server: ./pants server)
14:57:38 00:00 [setup]
14:57:38 00:00 [parse][32m
Executing tasks in goals: compile[0m
14:57:38 00:00 [compile]
14:57:38 00:00 [compile-prep-command]
14:57:38 00:00 [prep_command]
14:57:41 00:03 [compile]
14:57:41 00:03 [python-eval]
14:57:41 00:03 [pythonstyle]
14:57:41 00:03 [cache] [32m
No cached artifacts for 42 targets.[0m[32m
Invalidated 42 targets.[0m
F401:ERROR src/test/python/apache/aurora/config/test_resources.py:018
'TaskConfig' imported but unused
|from gen.apache.aurora.api.ttypes import Resource, ResourceAggregate,
TaskConfig
T607:ERROR src/test/python/apache/aurora/client/cli/test_status.py:555 Print
used as a statement.
| print expected
E501:ERROR
PythonFile(src/test/python/apache/aurora/client/cli/test_status.py):552 line
too long (110 > 100 characters)
| entry["assignedTask"]["task"]["resources"] =
sorted(entry["assignedTask"]["task"]["resources"], key=str)
E501:ERROR
PythonFile(src/test/python/apache/aurora/client/cli/test_status.py):554 line
too long (110 > 100 characters)
| entry["assignedTask"]["task"]["resources"] =
sorted(entry["assignedTask"]["task"]["resources"], key=str)
FAILURE: 4 Python Style issues found. For import order related issues, please
try `./pants fmt.isort <targets>`
14:58:05 00:27 [complete][31m
FAILURE[0m
I will refresh this build result if you post a review containing "@ReviewBot
retry"
- Aurora ReviewBot
On July 18, 2017, 2:43 p.m., Nicolás Donatucci wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60942/
> -----------------------------------------------------------
>
> (Updated July 18, 2017, 2:43 p.m.)
>
>
> Review request for Aurora, Joshua Cohen, Stephan Erb, and Zameer Manji.
>
>
> Bugs: AURORA-1707
> https://issues.apache.org/jira/browse/AURORA-1707
>
>
> Repository: aurora
>
>
> Description
> -------
>
> Removed task level resource fields from the DB and the thrift-API.
> To do this, a new DB migration was added. When upgrading, it just drops the
> task level resource fields. When downgrading, it creates the fields again and
> populates them with information from the task_resource table.
>
> IMPORTANT: One of the python client tests is failing (test_cron_diff). This
> is not serious, I think it is a problem with the ordering of the elements of
> Resources (had similar problems with other python client tests that instead
> of comparing the Resources as a set, compared them as lists and thus order
> mattered). Nevertheless, I could not fully understand the code of that test.
> I was hoping someone could give me a hand with that.
> But then again, it is a smaller issue and so the patch can start being
> reviewed.
>
> Issue Related: AURORA-1707
>
>
> Diffs
> -----
>
> api/src/main/thrift/org/apache/aurora/gen/api.thrift
> 3749531b5412d7ca217736aa85eed8e6606225ad
> src/main/java/org/apache/aurora/scheduler/base/TaskTestUtil.java
> 186fa1b3a4780c0536fb486d50a33133258110cd
> src/main/java/org/apache/aurora/scheduler/storage/db/TaskConfigManager.java
> d2eb6aa6e4a155b2d28debab2ca10dfc76d57213
> src/main/java/org/apache/aurora/scheduler/storage/db/TaskConfigMapper.java
> cda55c55680a19ed421299a8949299b21949787b
>
> src/main/java/org/apache/aurora/scheduler/storage/db/migration/V004_CreateTaskResourceTable.java
> af106a8a9ee8c14122e98bcc0ec44b616f21d61f
>
> src/main/java/org/apache/aurora/scheduler/storage/db/migration/V011_DropResourceFields.java
> PRE-CREATION
>
> src/main/java/org/apache/aurora/scheduler/storage/db/views/DbTaskConfig.java
> 138cd5316adc73eed24fc7accc53885dd5d5bee5
> src/main/python/apache/aurora/client/cli/diff_formatter.py
> 78717774aa3fbaf83a5fb850bc9f9f4a4038d70f
>
> src/main/resources/org/apache/aurora/scheduler/storage/db/TaskConfigMapper.xml
> 5422183e4a1fe122fc0e1aa871aa75ae102e322d
> src/main/resources/org/apache/aurora/scheduler/storage/db/schema.sql
> 7a86f47af67adb3e488381d30ddf424549deefbc
> src/test/java/org/apache/aurora/scheduler/http/TestUtils.java
> 689482c9f6c49bcca781834566edeb975d2f3af2
>
> src/test/java/org/apache/aurora/scheduler/storage/db/RowGarbageCollectorTest.java
> caaba9b6dff46ff0b037759f1c817a321ae15ee4
> src/test/java/org/apache/aurora/scheduler/thrift/Fixtures.java
> 43e32eede27bbf26363a3fd1ca34ffe6f8c01a73
>
> src/test/java/org/apache/aurora/scheduler/updater/UpdateAgentReserverImplTest.java
> 1bc2a778ad3f1543a055023f9ec3fe9e4a9523e3
> src/test/python/apache/aurora/client/cli/test_status.py
> b0b7f96d8148f0dd1f6f45d1c5c6f830cabcfd5d
> src/test/python/apache/aurora/client/cli/util.py
> 43db828ca1cccd91c88f016b4c994fef33182fbf
> src/test/python/apache/aurora/config/test_resources.py
> 25a20f0b702189744a26b85053db34c37ff5b03c
>
>
> Diff: https://reviews.apache.org/r/60942/diff/1/
>
>
> Testing
> -------
>
> src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
> 1 - Created a new VM with a fresh Aurora 0.18.0, ran the tests so that the db
> would have something. Then upgraded to patched version and ran the tests
> again. Everything worked and task level resource fields were no longer there.
> 2 - Created a new VM with a fresh patched version, ran the tests so that the
> db would have something. Then downgraded to 0.18.0 and ran the tests again.
> Everything worked and task level resources were there, with the correct
> backfilled values.
>
>
> Thanks,
>
> Nicolás Donatucci
>
>