P12: the witness module's determinism unit alone takes 9 to 11 minutes in CI

未關閉
#106 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
28/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github-actions, javascript

研究方向

Start by reproducing the unit with the replay command (cd packages/oracles && pnpm exec vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t "determinism: constructed history: an edit sequence over the witness module") and timing it locally, then read the vitest config in packages/oracles/oracle-gaps/ and the shard setup used by CI (see PR #90, shard 1/5). The issue lists three options and leaves the choice to the maintainer, so the first step is a decision, not an edit; investigate where the 9-11 minutes goes before proposing which option to take. Done means either the job sits under the 10-minute budget or the exception is recorded in the Limits of the e2e oracle with a follow-up issue.

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

描述

Summary

The determinism job that runs the witness module's edit sequence alone (determinism: constructed history: an edit sequence over the witness module) takes about 9 to 11 minutes in CI. That is at or over the 10-minute budget (P12: every job under 10 minutes). The unit is one history, so it cannot be split by name without changing the law (two cold runs and four daemon checks of the witness module, each in full).

Measured

  • Arclet, one Vitest worker, on 4d3c8a9 and 947e936: 344 s and 364 s.
  • CI (PR #90, shard 1/5): 645 s of test time on 082991d (job 11:03); 8:33 job on 947e936; 10:11 job on 4bc4eb1.

Options (for the maintainer)

  1. Accept the job above 10 minutes for this one unit, as an exception recorded in the Limits of the e2e oracle.
  2. Move that unit's determinism check to a job that is not blocking, with its own issue.
  3. Make the witness history cheaper (for example, fewer daemon checks), which changes the witness module's coverage and needs its own review.

Replay

cd packages/oracles && pnpm exec vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t "determinism: constructed history: an edit sequence over the witness module"
主要語言
JavaScript
星號
5
分支
1
平均合併
8 小時 31 分鐘
30 天內合併 PR
60

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

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

TanStack/oracles 的其他 Issue

查看 TanStack/oracles 的全部 Issue

相似的 Issue

更多 JavaScript Issue

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

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