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

オープン
#507 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
1
フォーク
1
平均マージ
3時間 34分
マージ済み PR(30日)
213

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eizedev/pivotkit のほかの issue

eizedev/pivotkit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。