setupHarperWithFixture overwrites ctx.harper, dropping pre-set hostname (breaks multi-node add_node)
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- typescript
- 領域
- testing
調査の方向性
setupHarperWithFixture を見つけ、startHarper の前に ctx.harper をどのように初期化しているかを確認してください。参照として integrationTests/cluster/cacheReplicationSource.test.mjs と、そのマルチノードの add_node シナリオを使用してください。呼び出し元が指定した hostname などのフィールドが fixture のセットアップ後も保持され、レプリケーションシナリオで ECONNREFUSED が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
setupHarperWithFixture overwrites ctx.harper before calling startHarper, discarding caller-set fields such as hostname. In a multi-node test this makes the replication config's securePort reference a different address than the one Harper actually binds to, producing ECONNREFUSED on add_node.
Context / repro
- Found while building a 2-node cluster cache test (HarperFast/harper-pro#415). Setting
ctx.harper.hostnamebeforesetupHarperWithFixturehad no effect because the function replacesctx.harperwholesale. - Workaround: call
startHarperdirectly with a manually-prepareddataRootDir+hostnameset onctx.harper, bypassingsetupHarperWithFixture.
Expected
setupHarperWithFixtureshould merge into / preserve caller-set fields onctx.harper(especiallyhostname) rather than overwriting them, so the fixture helper is usable in multi-node / replication tests.
References
- Workaround: HarperFast/harper-pro#415 (
integrationTests/cluster/cacheReplicationSource.test.mjs)
Filed by Claude (Opus 4.8) on behalf of Kris while implementing the release-testing coverage gaps.
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
HarperFast/integration-testing のほかの issue
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
Detached Harper children are orphaned permanently when the runner dies by SIGKILL/SIGHUP — reap guard only covers exit/SIGINT/SIGTERM再び着手できるかも @kriszyp が 35 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
HarperFast/integration-testing#29 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
HarperFast/integration-testing の issue をすべて見る
似ている issue
-
ADD openalgoオープンtemplate
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug Needs: Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoft/fluentui-contrib#671 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sveltejs/acorn-typescript#150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100