-
Notifications
You must be signed in to change notification settings - Fork 65
feat/default-instance-circuitbreaker #256
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
Merged
peerless1024
merged 6 commits into
polarismesh:main
from
peerless1024:feat/default-instance-circuitbreaker
Dec 3, 2025
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #!/bin/bash | ||
|
|
||
| # 批量执行 make clean 脚本 | ||
| # 用于递归清理所有包含 Makefile 的子目录 | ||
|
|
||
| set -e # 遇到错误立即退出 | ||
|
|
||
| echo "🚀 开始批量执行 make clean..." | ||
|
|
||
| # 计数器 | ||
| success_count=0 | ||
| fail_count=0 | ||
| total_count=0 | ||
|
|
||
| # 查找所有包含 Makefile 或 makefile 的目录 | ||
| find . \( -name "Makefile" -o -name "makefile" \) -type f | while read -r makefile; do | ||
| # 获取目录路径 | ||
| dir=$(dirname "$makefile") | ||
|
|
||
| # 跳过根目录的 Makefile(如果存在) | ||
| if [ "$dir" = "." ]; then | ||
| continue | ||
| fi | ||
|
|
||
| total_count=$((total_count + 1)) | ||
|
|
||
| echo "📁 处理目录: $dir" | ||
|
|
||
| # 进入目录并执行 make clean | ||
| if cd "$dir"; then | ||
| echo " 🧹 执行: make clean" | ||
|
|
||
| if make clean 2>&1; then | ||
| echo " ✅ 成功: $dir" | ||
| success_count=$((success_count + 1)) | ||
| else | ||
| echo " ❌ 失败: $dir" | ||
| fail_count=$((fail_count + 1)) | ||
| fi | ||
|
|
||
| # 返回上级目录 | ||
| cd - > /dev/null | ||
| else | ||
| echo " ❌ 无法进入目录: $dir" | ||
| fail_count=$((fail_count + 1)) | ||
| fi | ||
|
|
||
| echo "---" | ||
| done | ||
|
|
||
| echo "📊 执行结果统计:" | ||
| echo " 总模块数: $total_count" | ||
| echo " 成功数: $success_count" | ||
| echo " 失败数: $fail_count" | ||
|
|
||
| if [ $fail_count -eq 0 ]; then | ||
| echo "🎉 所有模块的 make clean 执行成功!" | ||
| else | ||
| echo "⚠️ 有 $fail_count 个模块执行失败,请检查相关目录" | ||
| fi | ||
|
|
||
| # 可选:显示使用说明 | ||
| echo "" | ||
| echo "💡 使用说明:" | ||
| echo " 1. 给脚本执行权限: chmod +x batch_make_clean.sh" | ||
| echo " 2. 运行脚本: ./batch_make_clean.sh" | ||
| echo " 3. 脚本会自动跳过根目录的 Makefile 文件(如果存在)" | ||
| echo " 4. 每个模块执行完成后会显示状态" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
是否需要添加注释?
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.
加了,再看下