Map Windows boundaries for locks, metrics and subprocess cancellation
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- computer-vision, devtools, testing-qa
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 20 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de JusticeGG-dev/CodeHunter
-
documentation good first issue help wanted validation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
documentation engine-sdk good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
JusticeGG-dev/CodeHunter#21 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
JusticeGG-dev/CodeHunter#10 ·
Los mantenedores suelen responder en 1 día
Todos los issues de JusticeGG-dev/CodeHunter
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día