test(server): cover the compute worker's memory limit, start failure and abort

Aperta
#507 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript

Direzione di ricerca

Read packages/pivotkit-server/src/compute.js, especially the uncovered lines around 140-149, 171-177, and 213-216, then find the existing tests that use internal.worker. Add coverage for the four listed worker paths: memory limit, start failure, abort while queued, and an uncloneable input. Done when each path has a regression test and the relevant test suite passes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:tests

No test covers the worker memory limit (onError mapping to LIMIT_EXCEEDED), a worker that dies while starting, an abort while queued, or an input the structured clone cannot copy (packages/pivotkit-server/src/compute.js, uncovered lines around 140-149, 171-177, 213-216). A probe with an allocating worker and memoryMb: 64 showed the code works; it is unprotected against regressions.

Fix: tests with internal.worker for each path. Found in the full review before 0.7.0.

Lingua principale
JavaScript
Stelle
1
Fork
1
Merge medio
3h 34m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eizedev/pivotkit

Tutte le issue di eizedev/pivotkit

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.