Repository navigation
feat(release): support independent G2 release lines - #7
Conversation
|
Sorry @MyLeeJiEun, your pull request is larger than the review limit of 150,000 diff characters |
9637639 to
0a0266b
Compare
Reviewer's GuideConfigurationDefine G2 release-line configuration and independently versioned baselines, then expose and deploy the release-line workflows and coordinator changes that consume that configuration.
Other changesFiles not grouped.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
0a0266b to
501325d
Compare
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: 1. 在 json.loads 调用处增加 try/except (json.JSONDecodeError, IndexError) 捕获, 2. 代码质量 ❌评价: 存在重复代码,结构需要优化 ❌ 不通过 潜在问题: 建议: 1. 将 propose()、start()、check_ordinary() 等长函数拆分为更小的子函数。 2. 将硬编码的 "17" 替换为 len(members) 或命名常量。 3. 将 rewrite() 等共用逻辑提取到 release_line_checks.py 统一维护。 4. 统一深度限制为命名常量 MAX_TRAVERSAL_DEPTH = 100。 5. 为 sync-baseline.yml 的 job 添加 timeout-minutes 设置。 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: 1. 将 snapshot() 中的成员循环改为 parallel() 并行调用。 2. 在 validate_config() 中缓存 repo_names 结果避免重复计算。 3. 对 source_idle() 中的成员 PR 检查考虑并行化。 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: 无安全改进建议 💡 改进建议代码示例# 1. json.loads 异常捕获示例(propose_release_line.py) try:
release = json.loads(commit["message"].split(RELEASE_MARKER, 1)[1].split("\n-->", 1)[0])
except (json.JSONDecodeError, IndexError) as exc:
raise RuntimeError(f"{branch} 的发布记录 JSON 解析失败: {exc}") from exc
# 2. value.get 类型守卫示例(release_line_checks.py api() 函数) if path == "graphql" and isinstance(value, dict) and value.get("errors"):
raise RuntimeError(f"GitHub GraphQL 失败: {value['errors']}")
# 3. 硬编码数值修复示例(propose_release_line.py) raise RuntimeError(f"草稿 bases 必须恰好包含 G2 的 {len(members)} 个成员 ID")本报告由 AI 代码审查工具自动生成 |
b8fe207 to
a690e06
Compare
|
/test all |
1 similar comment
|
/test all |
|
/test github-pr-review-ci |
458418b to
e42c126
Compare
1. Add release_lines configuration with member branches and fixed base SHAs. 2. Pass release_line through Release group while reusing base_branch. 3. Isolate baseline versions and records per G2 release line. 4. Accept existing member branches and preserve configuration comments. Log: Add isolated G2 release-line coordination and release records. Influence: Enables independent G2 delivery. feat(release): 支持独立 G2 发布线 1. 新增 release_lines 配置,记录成员分支与固定基准 SHA。 2. Release group 传入 release_line,并复用 base_branch。 3. 按 G2 发布线隔离基线版本与发布记录。 4. 支持已有成员分支并保留配置注释。 Log: 新增隔离的 G2 发布线协调与发布记录。 PMS: TASK-398637 Influence: 支持多条 G2 发布线独立交付。
e42c126 to
5a95920
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, MyLeeJiEun The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
背景
G2 当前只有一套组版本和发布分支,无法让多个版本线并行准备、发布和记录状态。本 PR 在
dde中增加发布线配置、协调器输入、成员基线分支和发布记录隔离。变更
release_lines.<line>.member_branch/bases,发布线 ID 与成员分支独立映射。Release group接收release_line,派发成员时继续复用现有base_branch输入。Propose release line,允许从成员仓库已有分支固定本次基准 SHA 并生成配置 PR。master发布线保持兼容。验证
Release group在测试组织完成真实派发,17 个成员均创建了 6.8.3 发布 PR。git diff --check通过。配对 PR:linuxdeepin/.github#818
Summary by Sourcery
Enable independent G2 release lines with isolated member branches, baselines, versions, and validated release records while retaining existing G1 and master-line behavior.
New Features:
Bug Fixes:
Enhancements:
CI:
Chores: