chore: 技术债清扫收尾——.pyc 出库 + escalate-test-issue.py 语法修复(ADR-0061/ADR-0070) - #478
Conversation
…R-0070) - git rm --cached 3 个误提交的 .pyc(specs/IR-0004/suite/__pycache__ ×2、specs/ISSUE-263/suite/__pycache__ ×1,源自 #230/#336/#338;.gitignore 防复发已在位) - scripts/escalate-test-issue.py L97 f-string 内层 ASCII 引号改「」(#392 卡另报的语法错误——修复前 py_compile 失败,脚本不可运行) 卡内其余三项(metrics.py 死变量 / dashboard-update.py isdir 防御 / sli-report.sh 死分支)已在先前 PR 完成,本 PR 仅收尾。
PR Summary by QodoRemove tracked Python bytecode and restore escalation script syntax
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthrough修正 ChangesIssue 正文生成修复
Suggested labels: Merge Risk: ⚪ Minimal · up to This PR fixes an otherwise non-runnable test-escalation script and removes tracked Python bytecode artifacts without changing product behavior; no actionable merge-blocking risk remains after normal checks. 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Code Review by Qodo
1. Missing ADR-0082 red-team sign-off
|
|
状态说明(2026-08-30,PM 清扫会话): 本 PR 为 #392 技术债卡收尾(.pyc 出库 + escalate-test-issue.py 语法修复),本地 gates-pr 全绿、t14/g060/hygiene/org-gate 等 CI 全绿。 唯一待过关卡:adversary 红队审计(specs/** 路径变更触发,ADR-0082)。已按流程 4 次派发 CI-Workflows adversary 审计(target=specs/IR-0004,target_ref=本 PR head ea50735):
审计被 LLM 网关限流阻塞(infra,非套件缺陷)。provider 恢复后重派即可: 审计 success 后走 adversary-relay 写回 survived check,再重跑本 PR 的 gate job(当前 RED 即消)。 |
Co-authored-by: traeagent <traeagent@users.noreply.github.com>
Card: #392
ADR: ADR-0061(测试产物拓扑——.pyc 构建产物出库,防复发 .gitignore 已在位)+ ADR-0070(整洁关卡组——死代码/语法缺陷清理,行为保持)
变更(#392 卡收尾)
git rm --cached3 个误提交文件specs/IR-0004/suite/__pycache__/test_spec_ir0004.cpython-311-pytest-9.1.1.pycspecs/IR-0004/suite/__pycache__/test_spec_ir0004.cpython-311.pycspecs/ISSUE-263/suite/__pycache__/test_ir263_artifacts.cpython-311.pyc.gitignore已含__pycache__/与*.pyc防复发(先前 PR 已完成)py_compile失败、脚本完全不可运行(chore: 近一周 PR 技术债清扫——构建产物出库 + 死代码移除(行为保持) #392 卡「另报」项)卡内已完成项(先前 PR,不在本 PR 范围)
if False死分支 ✓(grep 零命中实证)验证
python3 -m pyflakes scripts/escalate-test-issue.py零告警;py_compile通过make gates-pr全绿(bash -n / yaml 解析 / 治理自测 19 项)不碰:gate/verdict/drift 语义、pinned SHA、REPOS.yaml、workflows YAML、trae 备份产物。
Summary by CodeRabbit