> On Dec. 5, 2017, 6:30 p.m., Bill Farner wrote:
> > src/test/python/apache/aurora/config/test_thrift.py
> > Lines 236-239 (patched)
> > <https://reviews.apache.org/r/64341/diff/1/?file=1909032#file1909032line236>
> >
> >     Please replace this with a direct equality comparison to the expected 
> > set.

I am not sure direct equality comparison with a expected set is possible. I 
have a look at _Metadata_ implementation in **ttypes.py**, there is no hash 
method being provided, two sets will not be regarded as identical even though 
they have same content


- Jing


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


On Dec. 5, 2017, 3:14 p.m., Jing Chen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64341/
> -----------------------------------------------------------
> 
> (Updated Dec. 5, 2017, 3:14 p.m.)
> 
> 
> Review request for Aurora, David McLaughlin, Stephan Erb, and Bill Farner.
> 
> 
> Bugs: AURORA-1898
>     https://issues.apache.org/jira/browse/AURORA-1898
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> Add metadata field to Job object in DSL
> 
> 
> Diffs
> -----
> 
>   RELEASE-NOTES.md 54dcc75ef4f4fbf52c4dc60ec0dcbdd7ff3926a2 
>   docs/reference/configuration.md 67d9914f6b43f5eb73fe05b547981737f665489c 
>   src/main/python/apache/aurora/config/schema/base.py 
> a466e78f85d980dc11689ab252b8c70e9cfd3d57 
>   src/main/python/apache/aurora/config/thrift.py 
> eb0014422f99fdc8dcea9b0b75b86cdf78cf2dbb 
>   src/test/python/apache/aurora/config/test_thrift.py 
> 76d0ad681689e7aa03401ecea2d2b3123268d7da 
> 
> 
> Diff: https://reviews.apache.org/r/64341/diff/1/
> 
> 
> Testing
> -------
> 
> Test with `.aurora` file as:
> ```
> pkg_path = '/vagrant/hello.py'
> 
> install = Process(
>     name='fetch package',
>     cmdline='cp {} . && chmod u+x hello.py'.format(pkg_path))
> 
> runner = Process(
>     name='hello world',
>     cmdline='python -u hello.py')
> 
> hello_task = SequentialTask(
>     name='hello task',
>     processes=[install, runner],
>     resources=Resources(cpu=1, ram=1*MB, disk=8*MB))
> 
> jobs = [
>     Service(cluster='devcluster',
>         role='www-data',
>         environment='devel',
>         name='hello_test',
>         task=hello_task,
>         metadata={'tag':'metadata test', 'version': 1}
>     )
> ]
> ```
> 
> Metadata information can be found in job configuration of UI as:
> ```
> METADATA      
> version: 1
> tag: metadata test    
> ```
> 
> 
> Thanks,
> 
> Jing Chen
> 
>

Reply via email to