Map Windows boundaries for locks, metrics and subprocess cancellation
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- python
研究方向
Read the call sites in codehunter/results.py, codehunter/web.py, codehunter/scan.py and codehunter/acquisition.py, then review Draft PR #19 and its Windows test results. Propose adapter tests for the jobs-root lock, concurrent JSON readers, process-tree cancellation and OCR parity on a Windows runner. Done means a design note with explicit parity criteria and evidence for the remaining gaps, before a maintainer decision on runtime changes.
由索引模型根據 Issue 內容生成。
描述
Scope
Inventory the current fcntl, resource and POSIX process-group call sites. Propose adapter tests for concurrent writers, cleanup, peak-memory units and cancellation. Attach a design note and explicit parity criteria before changing runtime code.
This is a roadmap item for evidence or design. Implementation starts after a maintainer decision.
Wave 8 design note · runtime boundaries
Inventory on stabilization head b36986c:
| Contract | Current call site | Windows adapter to evaluate |
|---|---|---|
| One writer for each evidence directory | Evidence.__enter__ locks a directory descriptor with fcntl.flock. |
A nonblocking byte-range lock on a stable sidecar file via msvcrt.locking. Keep the sidecar outside the evidence image directory and keep it at a stable path during cleanup. |
| Single process owns each jobs root | Jobs.__init__ already opens a .lock file before recovering interrupted work. |
Share the native lock abstraction. Keep the handle for the registry lifetime and distinguish a lock conflict from an I/O failure. |
| Report peak process resident memory in bytes | scan uses resource.getrusage and normalizes macOS and Linux units. |
Preserve the byte contract using PeakWorkingSetSize. Run each benchmark in a fresh process. |
| Cancel the page resolver and its children | resolve_page launches a POSIX session and kills its process group on interruption. |
Evaluate a Windows Job Object, including assignment before descendants can start, close semantics and hosted-runner nesting. |
Acceptance needs a Windows runner and subprocess-based tests. Prove that a second writer fails while the first holds either lock, and that recovery succeeds after normal exit and forced termination. Assert result JSON replacement and evidence cleanup while a reader is active. Check peak memory in bytes with a touched allocation in a fresh process. Cancel a resolver fixture that creates a child, then verify both processes exit and pending results are removed. Establish ordered detection, PTS and PNG parity against the platform's exhaustive reference. These are design candidates awaiting runtime evidence.
Windows local core verification
Draft PR #19 implements the resident-memory counter and the evidence-directory lock. Commit 5d3fa25 passed eight targeted cases on Ubuntu 24.04 and Windows Server 2025, including a touched 64 MiB allocation, writer contention and recovery after forced termination. A deterministic engine processed 192 of 192 frames of the 1080p fixture using the local core. The test checked first and last PTS and compared the written PNG pixels with the frame decoded on the same host. The jobs-root lock, JSON replacement with concurrent readers, process-tree cancellation and actual OCR on Windows remain open.
- 主要語言
- Python
- 星號
- 0
- 分支
- 0
- 平均合併
- 20 小時
- 30 天內合併 PR
- 5
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
JusticeGG-dev/CodeHunter 的其他 Issue
-
documentation good first issue help wanted validation
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
documentation engine-sdk good first issue help wanted
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
documentation good first issue
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
JusticeGG-dev/CodeHunter#21 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
JusticeGG-dev/CodeHunter#10 ·
維護者通常 1 天內回覆
查看 JusticeGG-dev/CodeHunter 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉available documentation good first issue
難度 1/5 1-3 小時 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 88/100
JTHCode/secretguard#24 ·
維護者通常 1 天內回覆
-
area: middleware documentation good first issue
難度 2/5 1-3 小時 新手友好度 88/100
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
good first issue
難度 1/5 1 小時以內 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
維護者通常 1 天內回覆