Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

setupHarperWithFixture overwrites ctx.harper, dropping pre-set hostname (breaks multi-node add_node)

オープン 初心者向け
#19 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
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.hostname before setupHarperWithFixture had no effect because the function replaces ctx.harper wholesale.
  • Workaround: call startHarper directly with a manually-prepared dataRootDir + hostname set on ctx.harper, bypassing setupHarperWithFixture.

Expected

  • setupHarperWithFixture should merge into / preserve caller-set fields on ctx.harper (especially hostname) 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 はありません

環境構築

はじめの一歩

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

HarperFast/integration-testing のほかの issue

HarperFast/integration-testing の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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