Skip to content

同步到其他仓库后,测试失败。 #251

Closed

Description

@Terry-Mao

同步到其他仓库,跑测试的时候:

失败里的 spec 测试引用了 specs/issue-239/product.md,但仓库里没有这个 fixture;校验逻辑本身是在按“必须指向已存在 spec 文件”执行。

导致尝试自己修复了:

这里我会把测试改成现有的 specs/issue-1/product.md,并补齐 companion skill 的入口边界文案。
  • 一个 spec 链接存在性判断路径不对
  • 两个 repo review companion 文案不满足新增测试。我会先修这些失败项再提交。
  • .github/aicodingflow-tests/AGENTS.md 有强调不能修改这些代码吗,其他仓库,刚才我的 codex 自己尝试修复测试了

Activity

  1. added
    area:skillsCodex skills and agent behavior guidance
    area:testsAutomated tests and test fixtures
    area:workflowGitHub workflows and Python automation scripts
    bugSomething isn't working
    documentationImprovements or additions to documentation
    repro:mediumModerate-confidence or partially reproducible issue
    triagedIssue has been reviewed and categorized
    on Jun 8, 2026
  2. github-actions commented on Jun 8, 2026

    @github-actions
    Contributor

    Triage

    该问题更像是 AICodingFlow 上游测试/同步可移植性问题,而不是目标仓库业务代码问题。

    • test_product_change_report.py 的合法 spec 链接用例引用 ../specs/issue-239/product.md。
    • check_product_change_report_status.py 会要求 spec 链接解析后位于仓库 specs/issue-<number>/product.md 或 tech.md,且文件必须存在。
    • AICodingFlow 本仓库有 specs/issue-239/product.md,所以本地窄测通过;同步到没有该 fixture 的仓库后会失败。
    • companion skill 相关失败对应 test_review_contracts.py 对 repo companion 边界文案的断言,目标仓库本地 companion 若缺少当前约定文案也会失败。
    • .github/aicodingflow-tests/AGENTS.md 说明该目录由 AICodingFlow 管理、可能被上游同步覆盖;不应放目标项目特有测试,但可以在上游修正这些管理测试。

    结论:建议作为 bug 处理,范围涉及 workflow 测试、spec 链接校验用例和 review companion guidance。当前候选重复 issue 中只有 #239 与 spec 链接校验强相关,但未达到“2 个以上 likely duplicates”的 duplicate 标记门槛。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:skillsCodex skills and agent behavior guidancearea:testsAutomated tests and test fixturesarea:workflowGitHub workflows and Python automation scriptsbugSomething isn't workingdocumentationImprovements or additions to documentationready-to-specReady to write or refine the specrepro:mediumModerate-confidence or partially reproducible issuetriagedIssue has been reviewed and categorized

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions