You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2022/02/06 09:54:00 UTC

[jira] [Commented] (SUREFIRE-1941) Allow overriding PpidChecker OS command line in POM configuration

    [ https://issues.apache.org/jira/browse/SUREFIRE-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487661#comment-17487661 ] 

Tibor Digana commented on SUREFIRE-1941:
----------------------------------------

Check it out with 3.0.0-M6-SNAPSHOT because we improved the implementation. The checkers are disabled by default, and so it means that the developer has this feature under control and the developer can enable ping checker or native process checker or both. Additionally, the native process checker calls the method {{canUse()}} and if the method returns {{false}} the checker is disabled because of e.g. native support. If I remember well, the ping is used then.

> Allow overriding PpidChecker OS command line in POM configuration
> -----------------------------------------------------------------
>
>                 Key: SUREFIRE-1941
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1941
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Surefire Plugin, process forking
>    Affects Versions: 2.22.2
>            Reporter: Marc Batchelor
>            Priority: Critical
>
> There are many Linux and Unix variants. The PpidChecker has received several fixes over time to handle various edge cases when checking to make sure that the process is still alive. When PpidChecker doesn't detect that the test is running because of some variant behavior as it relates to the output format of /bin/ps, the developer's only recourse is to disable forking which makes the test execution take longer.
> This improvement would allow a configuration setting to override the default command issued to the operating system to provide the process status in the form that PpidChecker can use.
> For example:
> {noformat}
> <plugin>
>   ...
>   <configuration>
>     <ps-command>/other/bin/ps -o etime:1=,pid:1= -p %d</ps-command>
>   </configuration>
> </plugin>{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)