Flaky test: query-sql-streaming terminal memory guard misses the expected budget error
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, node.js
- 領域
- testing-qa
調査の方向性
test/core/query-sql-streaming.test.jsの107行目付近から始めて、#2969で追加された終端のメモリガードテストを読んでください。テストがヒープ測定値をどのように取得し、終端のチェックがそれをどのように使うかを確認してください。issueでは、決定論的な測定値を注入する方法が提案されています。完了条件は、実際のヒープ読み取りに依存せず、テストがQueryExecutionBudgetErrorを確実にアサートすることです。
索引モデルが issue の本文から書いたものです。
説明
What happens
test/core/query-sql-streaming.test.js:107, "the terminal memory guard covers retained consumer output on early break", failed once in a merge-group run and removed an unrelated PR from the merge queue.
AssertionError [ERR_ASSERTION]: Missing expected rejection (QueryExecutionBudgetError).
at async TestContext.<anonymous> (test/core/query-sql-streaming.test.js:110:3)
Sighting
- Run 43942627137 (merge group for #2998 on master b2ffe17d), job
test (24)133563858691, 2026-11-16T19:48:15Z. The test took 119 ms. test (26)passed in the same run.test (22)was cancelled whentest (24)failed.- The same tree passed
test (22),test (24)andtest (26)minutes earlier on the PR itself (#2998 at 2b24b55c, which already contains master b2ffe17d). - #2998 changes the ai-gateway proxy, the test runner script and three other tests. It does not touch query streaming.
Why it looks like a race in the test, not in the PR
The test streams with maxHeapBytes: 1, breaks out of the loop after the first batch while holding 50,000 retained rows, and expects the terminal memory check to reject with QueryExecutionBudgetError. Whether it rejects depends on what the heap measurement reads at that moment. On this run it read under the limit, so nothing was thrown. The test was added in #2969.
Not verified: the exact reading that made the guard pass. Nobody has reproduced it locally.
Effect
A PR that does not touch this code can be dropped from the merge queue and has to be enqueued again.
What a fix needs
Make the test independent of the live heap reading (for example by injecting the measurement), or make the terminal check's reading deterministic for the test. The guard's product behavior is not in question here.
- 主要言語
- JavaScript
- スター
- 11
- フォーク
- 0
- 平均マージ
- 1時間 14分
- マージ済み PR(30日)
- 262
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hyparam/hypaware のほかの issue
-
documentation neutral:fix
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
hyparam/hypaware#2987 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Windows flake: withFileLock throws EPERM when the previous holder's lock file is still being deletedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
hyparam/hypaware#2929 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
hyparam/hypaware#2922 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
hyparam/hypaware の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Needs: Author Feedback Needs: Repro
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
react/react-native#60059 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
mastra-ai/mastra#30587 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
embedpdf/embed-pdf-viewer#1098 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
Tudmotu/gnome-shell-extension-clipboard-indicator#673 ·
メンテナーはふだん 11 日以内に返信