Let metbench run -task take a comma-separated list

未關閉 適合新手
#74 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
85/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
go
領域
cli

研究方向

從cmd/metbench/main.go開始,比較-models如何解析以逗號分隔的清單,包括名稱為空時的錯誤。追蹤-task如何選擇工作,並檢查現有的 flag 解析測試。完成條件是:要求的工作依序執行並寫入同一個結果檔;無效名稱在執行前就會失敗;省略-task時仍會執行所有工作;而且make check通過。

由索引模型根據 Issue 內容生成。

描述

bench good first issue

What

-task currently accepts a single task name. With 9 tasks now, re-running only the tasks a change affects means starting several separate runs, each with its own results file or running every single task again.

Fix

In cmd/metbench/main.go, let -task take a comma-separated list, for example -task four-bugs,free-shipping-deep. -models already parses a list the same way, so you can copy that, including its error for an empty name caused by a stray comma.

Done when

  • -task a,b runs exactly tasks a and b, in that order, into one results file.
  • An unknown name in the list errors before anything runs and lists the available tasks, as a single unknown name does today.
  • Leaving out -task still runs everything.
  • The flag's help text says it takes a list.
  • Tests cover a single name, a list, a stray comma, and an unknown name.
  • make check passes.
主要語言
Go
星號
1
分支
2
平均合併
12 小時 55 分鐘
30 天內合併 PR
18

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Edwin-metcalf/MetCode 的其他 Issue

查看 Edwin-metcalf/MetCode 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。