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

[Enhancement] Add a retry mechanism to the unit test pipeline #8544

Closed
1 task done
chi3316 opened this issue Aug 16, 2024 · 1 comment · Fixed by #8545 or #8581
Closed
1 task done

[Enhancement] Add a retry mechanism to the unit test pipeline #8544

chi3316 opened this issue Aug 16, 2024 · 1 comment · Fixed by #8545 or #8581
Labels
soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on type/enhancement

Comments

@chi3316
Copy link
Contributor

chi3316 commented Aug 16, 2024

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

Introduce a retry mechanism in the unit test pipeline to automatically retry failed unit tests a limited number of times, reducing manual intervention and improving the reliability of CI builds

Motivation

  • Currently, the unit test pipeline occasionally fails due to intermittent test issues, leading to unnecessary build failures. These failures require manual retries, which can be time-consuming and inefficient. This enhancement would contribute to smoother CI/CD operations, benefiting both the project and the community by increasing build reliability and reducing manual workload.
  • This task is part of the RocketMQ community's assignments under the OSPP activity, as detailed in the OSPP2024

Describe the Solution You'd Like

The solution involves implementing a retry logic within the CI pipeline that triggers a limited number of retries when a unit test fails. The retry mechanism would only be activated under specific conditions, such as test failures, to prevent unnecessary re-runs. This can be achieved by utilizing conditional steps in the workflow file to rerun the tests if a failure is detected.

Describe Alternatives You've Considered

  • Manual Retries: Continue with the current process where developers manually trigger retries, but this is inefficient and prone to delays.
  • Test Flakiness Detection: Implement a mechanism to identify and fix flaky tests; however, this is a longer-term solution that requires additional resources.

Additional Context

No response

@ShannonDing ShannonDing added the soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on label Aug 16, 2024
@ShannonDing
Copy link
Member

link #8262

ShannonDing pushed a commit that referenced this issue Aug 16, 2024
* Add a retry mechanism to the unit test pipeline
* Remove the permissions field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on type/enhancement
Projects
None yet
2 participants