You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Charles Reiss (Created) (JIRA)" <ji...@apache.org> on 2011/11/12 09:36:53 UTC

[jira] [Created] (MESOS-79) Python external test doesn't actually test that framework finished cleanly

Python external test doesn't actually test that framework finished cleanly
--------------------------------------------------------------------------

                 Key: MESOS-79
                 URL: https://issues.apache.org/jira/browse/MESOS-79
             Project: Mesos
          Issue Type: Bug
          Components: python-api, test
            Reporter: Charles Reiss
            Priority: Trivial


The Python example framework doesn't check the status returned by SchedulerDriver.run(), so if, for example, the framework is aborted, it will exit normally. The PythonFramework external test will interpret this normal exit as success when it should be a failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MESOS-79) Python external test doesn't actually test that framework finished cleanly

Posted by "Andy Konwinski (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MESOS-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Konwinski resolved MESOS-79.
---------------------------------

    Resolution: Fixed

I've just committed this. Thanks Charles!
                
> Python external test doesn't actually test that framework finished cleanly
> --------------------------------------------------------------------------
>
>                 Key: MESOS-79
>                 URL: https://issues.apache.org/jira/browse/MESOS-79
>             Project: Mesos
>          Issue Type: Bug
>          Components: python-api, test
>            Reporter: Charles Reiss
>            Assignee: Charles Reiss
>            Priority: Trivial
>              Labels: python
>
> The Python example framework doesn't check the status returned by SchedulerDriver.run(), so if, for example, the framework is aborted, it will exit normally. The PythonFramework external test will interpret this normal exit as success when it should be a failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (MESOS-79) Python external test doesn't actually test that framework finished cleanly

Posted by "Charles Reiss (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MESOS-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Reiss reassigned MESOS-79:
----------------------------------

    Assignee: Charles Reiss
    
> Python external test doesn't actually test that framework finished cleanly
> --------------------------------------------------------------------------
>
>                 Key: MESOS-79
>                 URL: https://issues.apache.org/jira/browse/MESOS-79
>             Project: Mesos
>          Issue Type: Bug
>          Components: python-api, test
>            Reporter: Charles Reiss
>            Assignee: Charles Reiss
>            Priority: Trivial
>              Labels: python
>
> The Python example framework doesn't check the status returned by SchedulerDriver.run(), so if, for example, the framework is aborted, it will exit normally. The PythonFramework external test will interpret this normal exit as success when it should be a failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MESOS-79) Python external test doesn't actually test that framework finished cleanly

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MESOS-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149013#comment-13149013 ] 

jiraposter@reviews.apache.org commented on MESOS-79:
----------------------------------------------------


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

Review request for mesos.


Summary
-------

Calls sys.exit() with the result of SchedulerDriver.run() rather than ignoring the return value. Relies on 0 being the 'OK' status code.


This addresses bug MESOS-79.
    https://issues.apache.org/jira/browse/MESOS-79


Diffs
-----

  src/examples/python/test_framework.py 0e4b14c 

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


Testing
-------


Thanks,

Charles


                
> Python external test doesn't actually test that framework finished cleanly
> --------------------------------------------------------------------------
>
>                 Key: MESOS-79
>                 URL: https://issues.apache.org/jira/browse/MESOS-79
>             Project: Mesos
>          Issue Type: Bug
>          Components: python-api, test
>            Reporter: Charles Reiss
>            Priority: Trivial
>              Labels: python
>
> The Python example framework doesn't check the status returned by SchedulerDriver.run(), so if, for example, the framework is aborted, it will exit normally. The PythonFramework external test will interpret this normal exit as success when it should be a failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MESOS-79) Python external test doesn't actually test that framework finished cleanly

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MESOS-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149258#comment-13149258 ] 

jiraposter@reviews.apache.org commented on MESOS-79:
----------------------------------------------------


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

Ship it!


Looks great. I've tested this and it works.

- Andy


On 2011-11-12 08:49:35, Charles Reiss wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/2816/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2011-11-12 08:49:35)
bq.  
bq.  
bq.  Review request for mesos.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Calls sys.exit() with the result of SchedulerDriver.run() rather than ignoring the return value. Relies on 0 being the 'OK' status code.
bq.  
bq.  
bq.  This addresses bug MESOS-79.
bq.      https://issues.apache.org/jira/browse/MESOS-79
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    src/examples/python/test_framework.py 0e4b14c 
bq.  
bq.  Diff: https://reviews.apache.org/r/2816/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Charles
bq.  
bq.


                
> Python external test doesn't actually test that framework finished cleanly
> --------------------------------------------------------------------------
>
>                 Key: MESOS-79
>                 URL: https://issues.apache.org/jira/browse/MESOS-79
>             Project: Mesos
>          Issue Type: Bug
>          Components: python-api, test
>            Reporter: Charles Reiss
>            Assignee: Charles Reiss
>            Priority: Trivial
>              Labels: python
>
> The Python example framework doesn't check the status returned by SchedulerDriver.run(), so if, for example, the framework is aborted, it will exit normally. The PythonFramework external test will interpret this normal exit as success when it should be a failure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira