Skip to content

fix: main 的 swift test 編譯逾時(兩支測試)+零實例裁決表第 88 列的斷連結 - #741

Draft
kiki830621 wants to merge 1 commit into
mainfrom
claude/main-ci-after-736-twihec
Draft

kiki830621 wants to merge 1 commit into
mainfrom
claude/main-ci-after-736-twihec

Conversation

@kiki830621

Copy link
Copy Markdown
Member

Requested by che830621 · project thread

為什麼

#736 修好 Sources/ 的兩處型別檢查逾時後,main 的 ci.yml 仍然紅(最近四次 main push:run 386–389 全部 failure;Census parity 同期全綠)。
這次停在測試 target:swift test 編譯 AkashicMCPTests 時型別檢查逾時。run 39343263546 的整份 job log 只有這兩處 error(各重複 20 次):

  • Tests/AkashicMCPTests/NameClassificationB39Tests.swift:75
  • Tests/AkashicMCPTests/NameClassificationB41Tests.swift:159

兩處都是 entries += (0..<N).map { TemporalValue(value:…, range: DateRange(start: String(1800 + $0), end: String(1800 + $0)), source:…, note:…) }。

改了什麼

  1. 兩處改成逐段 append、年份先存成 String。產生的段(名字、年份、source、note)與原本相同,測試斷言沒動。
  2. docs/rulings/zero-instance-guards.md 第 88 列的 (measurement-commands-self-prove.md) 在 docs: 把三份裁決史表移出自動載入的 .claude/rules/(移到 docs/rulings/) #736 搬檔時斷了,改指 ../../.claude/rules/measurement-commands-self-prove.md。docs/rulings/ 底下其餘相對連結都逐一檢查過,連得到。

驗證的限制

  • 這個 container 沒有 Swift toolchain。ci.yml 只在 push to main 時跑,所以這個 PR 上不會跑 swift test。PR 上的 Census parity 只建置本體並跑守衛,不編譯測試 target。
  • 測試 target 是在這兩處停下來的,所以這次修好之後才看得到後面的編譯錯誤或測試失敗。main 的 swift test 從 9/28 起就沒有跑完過,合併後可能還會冒出別的問題。

Generated by Claude Code

#736 合併後 main 的 ci.yml 仍紅:swift build --build-tests 在 AkashicMCPTests 撞到
型別檢查逾時,全份 log 只有兩處(NameClassificationB39Tests.swift:75、
NameClassificationB41Tests.swift:159),都是 `entries += (0..<N).map { TemporalValue(…String(1800 + $0)…) }`。
改成逐段 append、年份先存成 String,段的內容不變。

docs/rulings/zero-instance-guards.md 第 88 列的 `(measurement-commands-self-prove.md)` 在
#736 搬檔時斷了,改指 `../../.claude/rules/`;docs/rulings/ 底下其餘相對連結逐一檢查過都在。

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QcAdzjwecsoNNAsVxELLxT
@kiki830621 kiki830621 self-assigned this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants