chi3316 opened a new pull request, #8545: URL: https://github.com/apache/rocketmq/pull/8545
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>) to ensure automatic closure. --> Fixes [#8544](https://github.com/apache/rocketmq/issues/8544) ### Brief Description This pull request introduces a retry mechanism in the unit test pipeline to automatically retry failed unit tests up to two times. <!-- Write a brief description for your pull request to help the maintainer understand the reasons behind your changes. --> ### Known Limitations - The retry mechanism relies on GitHub Actions with write permissions to trigger a new workflow run. As a result, only users with write access will be able to utilize the retry mechanism.This limitation is documented in the [GitHub Actions documentation](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/re-running-workflows-and-jobs) - Contributors without write permissions will not be able to trigger retries if their tests fail during a pull request. This limitation is inherent due to the permissions required to trigger actions that modify the repository state. - To address this limitation, it is possible to modify the workflow permissions, such as by setting `permissions.actions = write` in the workflow file. However, this approach may introduce security risks by granting broader access than intended. ### How Did You Test This Change? - Pipeline Simulation: The modified CI pipeline was run multiple times in a controlled environment to simulate various failure scenarios and confirm that the retry mechanism behaves as expected. [The test workflow](https://github.com/chi3316/rocketmq/actions/runs/10403485917) <!-- In order to ensure the code quality of Apache RocketMQ, we expect every pull request to have undergone thorough testing. --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
