Skip to content

test: test-resolve-marketplace.sh 要跑約 103 秒,超過常見的 100 秒逾時 (sister bug from #28) #30

Description

@kiki830621

Problem

plugins/harness-devtools/scripts/test-resolve-marketplace.sh 在作者的開發機上要跑約 103 秒,超過一般用來防卡死的 100 秒逾時。

量測(main 的 937d40e 加上不相關的改動,2026-10-05,macOS,bash 3.2,本機有 35 個 marketplace):

項目 數值
牆鐘時間 1 分 42.68 秒
user 28.24 秒
system 60.58 秒
結果 139 通過、0 失敗、exit 0
最後一次出現輸出的位置 list_marketplaces 區塊的第一條斷言之後,隔很久才有下一條

system time 是 user time 的兩倍多,表示大部分時間花在行程建立或檔案系統掃描,而不是計算。

為什麼值得記:用 100 秒逾時跑全套測試時,這支會被當成失敗。實際碰到的後果是我把還在跑的行程殺掉,再把它誤記成 FAIL,花了額外的步驟才確認它其實是「慢」而不是「卡」。這個 repo 其他測試都在幾秒內結束,這支是唯一的離群值。

Type

bug(測試效能;不是正確性問題)

Expected

  • 先量出時間花在哪(list_marketplaces 之後的哪一段),再決定是縮小掃描範圍、讓測試用合成的 HOME,還是只是在文件裡寫明它需要的時間。
  • 若維持原狀,至少在檔頭註明預期的執行時間與 marketplace 數量的關係。

Source

Source: surfaced during /idd-implement #28 reproduction (Step 5.7)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions