Skip to content

chore: remove unused repository artifacts - #65

Merged
FlanChanXwO merged 1 commit into
mainfrom
codex/cleanup-repo-artifacts
Aug 26, 2026
Merged

chore: remove unused repository artifacts#65
FlanChanXwO merged 1 commit into
mainfrom
codex/cleanup-repo-artifacts

Conversation

@FlanChanXwO

@FlanChanXwO FlanChanXwO commented Aug 26, 2026

Copy link
Copy Markdown
Owner

变更点 / Changes

  • 删除仅用于目录级架构约束扫描的 internal/architecture 测试包,避免把静态目录测试作为项目测试代码保留。
  • 删除已完成且不再需要的 goals/ 规划记录。
  • 将根目录 output/goals/goal-*/ 加入 .gitignore,防止生成物和内部规划文件再次被追踪。
  • 删除 .dockerignore 中重复的 goal 排除规则。
  • 未修改运行时代码、公开契约、依赖或用户可见文档。

验证步骤 / Verification

  • go test ./... -count=1:通过。
  • 提交钩子中的 gofmt:无需要检查的文件。
  • 提交钩子中的 go test ./:通过。
  • git diff main...HEAD --check:通过。
  • git check-ignore -v --stdin:确认 output/goals/goal-*/ 均按新规则忽略。

检查清单 / Checklist

  • 我没有引入恶意代码 / No malicious code
  • 我没有新增依赖 / No new dependencies
  • 这不是一次破坏性更新 / Not a breaking change
  • 未涉及用户可见行为,英文与简体中文文档无需同步 / No user-facing behavior changed; no documentation sync needed

Sourcery 摘要

清理未使用的仓库文件,并防止它们再次被引入。

改进:

  • 从仓库中移除已过时的、仅用于架构的测试,以及已完成的规划文件。

维护:

  • 更新忽略规则,防止生成的输出文件和内部规划文件被跟踪,并移除重复的 Docker 忽略条目。
Original summary in English

Summary by Sourcery

Clean up unused repository artifacts and prevent them from being reintroduced.

Enhancements:

  • Remove obsolete architecture-only tests and completed planning artifacts from the repository.

Chores:

  • Update ignore rules to prevent generated output and internal planning files from being tracked, and remove duplicate Docker ignore entries.

Summary by CodeRabbit

  • 文档

    • 移除 Docker 容器发布相关的目标规划、阶段计划和进度记录。
    • 清理已不再维护的发布流程与验收说明。
  • 维护

    • 更新构建上下文和版本控制忽略规则,调整目标文件及输出目录的处理方式。
  • 测试

    • 移除部分架构边界校验测试,相关约束不再通过自动化测试验证。

@github-actions github-actions Bot added area: backend Backend or core runtime changes area: tests Test changes labels Aug 26, 2026
@sourcery-ai

sourcery-ai Bot commented Aug 26, 2026

Copy link
Copy Markdown
审查者指南(小型 PR 中折叠显示)

审查者指南

此清理专用 PR 删除了已废弃的架构测试和已完成的规划记录,随后更新忽略规则,以防止生成的输出和内部目标文件再次被引入。运行时代码、依赖项、公共契约和面向用户的文档均未发生变化;指定的测试、格式化、差异和忽略规则检查均已通过。

文件级变更

变更 详情 文件
删除已废弃的、仅用于仓库的规划和架构测试文件。
  • 删除目录结构架构测试包。
  • 删除已完成的 Docker 容器发布目标文档和阶段记录。
internal/architecture/architecture_test.go
goals/docker-container-release/GOAL.md
goals/docker-container-release/phases/phase-1.md
goals/docker-container-release/phases/phase-2.md
goals/docker-container-release/phases/phase-3.md
goals/docker-container-release/phases/phase-4.md
goals/docker-container-release/phases/phase-5.md
防止生成的输出和内部规划文件再次被跟踪。
  • 将根目录下的 output/goals/goal-*/ 模式添加到 Git 忽略规则中。
  • 从 Docker 忽略规则中删除重复的目标排除项。
.gitignore
.dockerignore

提示和命令

与 Sourcery 交互

  • 触发新的审查: 在拉取请求中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审查评论。
  • 根据审查评论生成 GitHub issue: 回复审查评论,请 Sourcery 根据该评论创建 issue。你也可以使用 @sourcery-ai issue 回复审查评论,以根据该评论创建 issue。
  • 生成拉取请求标题: 在拉取请求标题的任意位置写入 @sourcery-ai,即可随时生成标题。你也可以在拉取请求中评论 @sourcery-ai title,以随时生成或重新生成标题。
  • 生成拉取请求摘要: 在拉取请求正文中任意位置写入 @sourcery-ai summary,即可在你指定的位置随时生成 PR 摘要。你也可以在拉取请求中评论 @sourcery-ai summary,以随时生成或重新生成摘要。
  • 生成审查者指南: 在拉取请求中评论 @sourcery-ai guide,即可随时生成或重新生成审查者指南。
  • 解决所有 Sourcery 评论: 在拉取请求中评论 @sourcery-ai resolve,即可解决所有 Sourcery 评论。如果你已经处理了所有评论且不想再看到它们,这一功能会很有用。
  • 忽略所有 Sourcery 审查: 在拉取请求中评论 @sourcery-ai dismiss,即可忽略所有现有的 Sourcery 审查。如果你想从新的审查开始,这一功能尤其有用——别忘了评论 @sourcery-ai review 来触发新的审查!

自定义你的体验

访问你的控制面板以:

  • 启用或禁用审查功能,例如 Sourcery 生成的拉取请求摘要、审查者指南等。
  • 更改审查语言。
  • 添加、删除或编辑自定义审查说明。
  • 调整其他审查设置。

获取帮助

Original review guide in English
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This cleanup-only PR removes an obsolete architecture test and completed planning records, then updates ignore rules so generated outputs and internal goal artifacts are not reintroduced. Runtime code, dependencies, public contracts, and user-facing documentation remain unchanged; the stated test, formatting, diff, and ignore-rule checks pass.

File-Level Changes

Change Details Files
Remove obsolete repository-only planning and architecture-test artifacts.
  • Delete the directory-structure architecture test package.
  • Delete completed Docker container release goal documents and phase records.
internal/architecture/architecture_test.go
goals/docker-container-release/GOAL.md
goals/docker-container-release/phases/phase-1.md
goals/docker-container-release/phases/phase-2.md
goals/docker-container-release/phases/phase-3.md
goals/docker-container-release/phases/phase-4.md
goals/docker-container-release/phases/phase-5.md
Prevent generated outputs and internal planning files from being tracked again.
  • Add root output/, goals/, and goal-*/ patterns to Git ignore rules.
  • Remove duplicate goal exclusion entries from Docker ignore rules.
.gitignore
.dockerignore

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嘿——我已经审阅了你的更改,整体看起来很棒!


Sourcery 对开源项目免费——如果你喜欢我们的评审,请考虑分享它们 ✨
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我会利用这些反馈来改进你的评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 13c2a148-c824-4cbe-8640-16a20107811c

📥 Commits

Reviewing files that changed from the base of the PR and between d875f98 and 4d9dadc.

📒 Files selected for processing (9)
  • .dockerignore
  • .gitignore
  • goals/docker-container-release/GOAL.md
  • goals/docker-container-release/phases/phase-1.md
  • goals/docker-container-release/phases/phase-2.md
  • goals/docker-container-release/phases/phase-3.md
  • goals/docker-container-release/phases/phase-4.md
  • goals/docker-container-release/phases/phase-5.md
  • internal/architecture/architecture_test.go
💤 Files with no reviewable changes (8)
  • goals/docker-container-release/phases/phase-4.md
  • goals/docker-container-release/phases/phase-5.md
  • goals/docker-container-release/phases/phase-1.md
  • goals/docker-container-release/phases/phase-3.md
  • .dockerignore
  • goals/docker-container-release/GOAL.md
  • goals/docker-container-release/phases/phase-2.md
  • internal/architecture/architecture_test.go

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

仓库移除了 Docker 发布目标规划和架构约束测试。Docker 构建上下文不再排除目标目录。Git 现在忽略根目录下的输出目录、目标目录和目标文件。

Changes

仓库清理与忽略规则调整

Layer / File(s) Summary
忽略规则与仓库文件清理
.dockerignore, .gitignore, goals/docker-container-release/..., internal/architecture/architecture_test.go
.dockerignore 移除 goal-*goals/ 排除规则。.gitignore 新增 /output//goals//goal-*/,并移除下载证据例外规则。仓库删除 Docker 发布规划文件和架构约束测试。

Estimated code review effort: 2 (简单) | ~10 分钟

Merge Risk: ⚪ Minimal · up to 4d9da

This change removes obsolete planning and architecture-test files and prevents similar generated artifacts from being tracked again without changing runtime code or user-visible behavior. No actionable merge-blocking risk remains after normal checks and review.

Poem

小兔查看规则行,
目标目录不再藏。
输出文件归忽略,
发布计划轻轻落。
架构测试退场后,
兔耳听见仓库响。

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了本次变更的主要内容:移除未使用的仓库文件和规划记录,并清理相关忽略规则。标题简洁且与变更范围一致。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@FlanChanXwO
FlanChanXwO merged commit e09075a into main Aug 26, 2026
17 checks passed
@FlanChanXwO
FlanChanXwO deleted the codex/cleanup-repo-artifacts branch August 26, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: backend Backend or core runtime changes area: tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant