Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RATIS-2073. Enable Surefire process checkers #1079

Merged
merged 1 commit into from
May 6, 2024

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Ratis build sets Surefire fork timeout to 10 minutes:

ratis/pom.xml

Line 637 in 5867192

<forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>

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

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.

The problem is that:

Since 3.0.0-M4 the process checkers are disabled. (doc)

Changes in this PR (and links to similar change in Ozone):

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

https://issues.apache.org/jira/browse/RATIS-2073

How was this patch tested?

Created a small repro to test various Surefire versions, see apache/ozone#6075 for details.

Regular CI:
https://github.com/adoroszlai/ratis/actions/runs/8972109715

@adoroszlai adoroszlai self-assigned this May 6, 2024
@adoroszlai adoroszlai requested a review from szetszwo May 6, 2024 17:22
Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@adoroszlai adoroszlai merged commit 839f8fb into apache:master May 6, 2024
10 checks passed
@adoroszlai adoroszlai deleted the RATIS-2073 branch May 6, 2024 18:48
@adoroszlai
Copy link
Contributor Author

Thanks @szetszwo for the review.

szetszwo pushed a commit to szetszwo/ratis that referenced this pull request Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants