Attila Doroszlai created RATIS-2073:
---------------------------------------

             Summary: Enable Surefire process checkers
                 Key: RATIS-2073
                 URL: https://issues.apache.org/jira/browse/RATIS-2073
             Project: Ratis
          Issue Type: Task
          Components: test
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


Ratis build configures Surefire fork timeout to 10 minutes:

{code:title=https://github.com/apache/ratis/blob/58671923e78a10d5c6a7d49a06e2d95690d5e9bb/pom.xml#L637}
            <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
{code}

Yet, sometimes Surefire fork is not killed, check runs until Github workflow is 
cancelled:

{code:title=https://github.com/apache/ratis/actions/runs/8254797423/job/22579770502#step:6:706}
Tue, 12 Mar 2024 19:43:11 GMT
[INFO] Running org.apache.ratis.netty.TestRaftWithNetty
Wed, 13 Mar 2024 01:40:25 GMT
Error: The operation was canceled.
{code}

The problem is that:

bq. Since 3.0.0-M4 the process checkers are disabled. 
([doc|https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#enableProcessChecker])

The goal of this task:

# Enable process checkers to apply the fork timeout.
# Downgrade to Surefire 3.0.0-M4 due to: SUREFIRE-1722 (affects M6 and newer), 
SUREFIRE-1815 (affects M5).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to