返回部落格

用 Comma 處理值班與 Bug 分流

全天候監看 #support 和警示頻道、在雲端電腦上重現客戶回報、開好 draft 修復 PR,並用一個對話串從分流追到合併。

開始使用閱讀文件

值班時的打擾之所以痛苦,很少是因為修 bug 要花好幾個小時,而是因為分流要花 45 分鐘切換情境:讀 #support 裡一則語焉不詳的訊息、確認是否已經有人開了 issue、重現失敗、追查日誌,還要一邊寫修復一邊更新三個頻道。

Comma 會 24/7 替你跑這個分流流程。當 bug 回報出現在 #support 或你的收件匣時,Salix Loop 會喚醒一個 Worker 去調查、在雲端電腦上重現問題,然後交給你一份清楚的診斷,常常還附上一個已經在等待審查的 draft 修復 PR。

設定

  • 頻道:透過 Comma for Teams(或你的個人工作區)連接 Slack、Feishu 或 Lark 中的 #support / #alerts。

  • 工具:連接 GitHub、Linear、PostHog,如果團隊有用,也連接唯讀的可觀測性/日誌 MCP 工具。

  • 運算:用 Comma 的雲端電腦做隔離的重現,或在 Devices 下使用連到 staging 的 Linux Worker。

端對端的值班工作流程

步驟 1:用 Loop 監看真正的 bug 回報

text
Watch #support and my support inbox. When a new report describes a
crash, 5xx error, data mismatch, or broken workflow:
1. Check existing open Linear issues and recent GitHub PRs first to
   avoid filing duplicates.
2. Start a triage Task with the exact report, affected customer tier,
   and links to related code or recent deploys.

步驟 2:在叫醒工程師之前先重現

在分流 Task 中,Comma 的 Worker 會用雲端電腦:

  • 在乾淨的環境中 check out 相關的提交。

  • 寫一個最小的失敗測試,或對 staging 執行瀏覽器重現。

  • 擷取失敗的堆疊追蹤、截圖或 HTTP 回應,並把已驗證的重現和未驗證的假設分開。

當根本原因清楚且範圍明確時:

text
If you can reproduce the bug locally with a deterministic test, open a
draft PR with the regression test and minimal fix, create or update the
Linear issue, and post a 5-line summary in the #support thread. Leave
the customer reply in drafts until an engineer reviews the fix.

步驟 4:換班時只留一份乾淨的交接

在值班班次結束時:

text
Summarize all on-call triage Tasks from the last 24 hours for handoff:
- Resolved (with merged PR link)
- Mitigated / monitoring (what to watch)
- Still open (current hypothesis, next step, owner)
Post as a draft for #on-call-handoff.
Comma 任務看板:兩個進行中的值班 Task、一個在 Needs Review 中等待審核的修復,以及一則已完成的客戶回覆。
每一則回報都變成一個 Task:重現、修復、審核、回覆。

範例:凌晨 3 點的警示如何展開

  1. 凌晨 2:48:一位客戶在 #support 回報超過 10 MB 的 CSV 匯出會逾時。

  2. 凌晨 02:49:Loop 喚醒 Comma;它在 Linear 中沒有找到重複的未結 issue,並檢查最近動到 export 的提交。

  3. 凌晨 02:54:Worker 在雲端電腦上用單元測試重現 10 MB 的記憶體暴增,實作串流輸出,並確認測試通過。

  4. 凌晨 02:57:Comma 開了 draft PR #482、連結 Linear issue ENG-219,並把摘要留在 Needs Review。

  5. 上午 08:15:值班工程師開始一天的工作時,看到的是一張附有通過的回歸測試和乾淨 diff 的卡片,而不必從零開始。

值班安全規則

  • 絕不從未經審查的分流 Task 自動部署或變更正式環境。 對正式環境的寫入一律要經過真人核准,或走你專用的發布流程。

  • 明確的證據勝過猜測:指示 Comma 說明「無法重現:缺少 payload/帳戶狀態」,而不是捏造一個根本原因。

  • 尊重頻道的安靜:在 Slack/Feishu/Lark 中,在原本的對話串裡回覆;如果有真人接手並請 Comma 退出,Comma 會乾淨地離開該對話串。


Try Comma, Now.

開始使用