[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806633#action_12806633
 ] 

Hemanth Yamijala commented on MAPREDUCE-1429:
---------------------------------------------

Kos, these tests are a little different from usual tests in that they rely on a 
binary called task-controller which must be built and configured as a 'setuid' 
binary and permissions set to be owned by root. They also run tests as a 
different user from the one firing the ant test target. If you notice these 
tests take some special parameters - a path to a binary file and a user 
identity. HADOOP-5771 introduced these tests for the first time into the system.

In the ant build scripts, we only build the task-controller binary, but the 
step of making it a setuid is manually done in environments which use this 
feature. We did not know of a good way to automate this process on Hudson. And 
the tests do not make sense without this binary and/or user identity. They 
essentially exist to make sure the task-controller function works correctly in 
being able to run tasks as another user. 

Rather than completely ignoring automated testing because of these various 
limitations, we thought of still providing a facility by which atleast 
developers working on these features can have a way of testing them in an 
automated fashion, even if they mean, they have to run it 'specially'. 
Essentially, having something was better than having nothing.

All this said, we absolutely *hate* not being able to run these tests in the 
right way on Hudson. I would appreciate any help / suggestions you can offer to 
fix this issue.

> New ant target to run all and only the linux task-controller related tests
> --------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-1429
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1429
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: build, task-controller, test
>            Reporter: Vinod K V
>            Assignee: Vinod K V
>         Attachments: MAPREDUCE-1429-20100120.txt
>
>
> The LinuxTaskController tests cannot be run automatically by Hudson and so 
> we've missed several bugs in the past because of not running some of these 
> tests explicitly ourselves. It's a real pain to run them manually one by one, 
> we should have an ant target to run them all in one swoop.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to