setupHarperWithFixture overwrites ctx.harper, dropping pre-set hostname (breaks multi-node add_node)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Tìm setupHarperWithFixture và kiểm tra cách nó khởi tạo ctx.harper trước startHarper. Sử dụng integrationTests/cluster/cacheReplicationSource.test.mjs và kịch bản add_node nhiều nút của nó làm tài liệu tham chiếu. Hoàn thành khi các trường do caller cung cấp, chẳng hạn như hostname, vẫn được giữ lại sau khi thiết lập fixture và kịch bản replication không còn nhận ECONNREFUSED.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của HarperFast/integration-testing
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Detached Harper children are orphaned permanently when the runner dies by SIGKILL/SIGHUP — reap guard only covers exit/SIGINT/SIGTERMCó thể làm lại được @kriszyp đã nhận 36 ngày trước và không có pull request nào đang mở. Đang mở
HarperFast/integration-testing#29 · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Tất cả issue của HarperFast/integration-testing
Issue tương tự
-
module-request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ports get and web print 'Port N already in use, trying next...' for every busy port they skipĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
appandflow/stim#1604 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
lingdojo/kana-dojo#31060 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SSH workspace restore rewrites relative symlinks into the deleted sync-back staging directoryĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
paperclipai/paperclip#14173 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày