-
Notifications
You must be signed in to change notification settings - Fork 8.9k
optimize: enhance ci configuration #7270
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #7270 +/- ##
============================================
- Coverage 55.75% 55.72% -0.03%
+ Complexity 7469 7463 -6
============================================
Files 1178 1178
Lines 41962 41962
Branches 4923 4923
============================================
- Hits 23396 23385 -11
- Misses 16328 16342 +14
+ Partials 2238 2235 -3 🚀 New features to boost your workflow:
|
xingfudeshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Well done! |
|
@slievrly @funky-eyes PTAL |
slievrly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. Describe what this PR did
1)Optimized CI Trigger Conditions:
●Skip CI for .md file-only changes: CI process will not be triggered when the PR only contains modifications to .md files (like: #7226) , reducing unnecessary resource consumption.
●PR Status Filtering: Avoid closed PRs (like: #7263) from occupying CI activities and prevent the Codecov bot from commenting on closed PRs.
2)Maven Repository Caching:
●Added caching for the Maven repository to accelerate build preparation and speed up CI testing (estimated improvement of 30-60 seconds). Cache status and usage can be viewed at https://github.com/apache/incubator-seata/actions/caches.
●Reference
3)Retry Mechanism:
●Introduced a retry mechanism(1 time) to avoid CI failures caused by occasional issues. For example, in https://github.com/apache/incubator-seata/actions/runs/14049309257/job/39336574577?pr=7225 and https://github.com/apache/incubator-seata/actions/runs/14026429452/job/39265823304, CI occasionally fails due to sporadic problems (which should not happen), requiring manual triggering of CI.
●Optimization Enhancement: Manually triggered CI rebuilds tests for all versions, while automatic retries only retry tests for the failed versions, improving efficiency.
●Reference
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews