[PR #5508] [MERGED] online_mode harness: a lookup during a check is a mismatch, not a crash #6325

Closed
opened 2026-11-03 06:18:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5508
Author: @rdbtCVS
Created: 10/31/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/online-mode-harness-log


📝 Commits (1)

  • 98f26ea online_mode harness: compare a service call's last field, so a lookup is a mismatch, not a crash

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 tools/test_online_mode_parity.py (+2 -2)

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

Fixes #5506.

tools/test_online_mode_parity.py checked two scenarios with [(e[0], e[3]) for e in services.take_log()]. join and verify entries have four fields, but lookup (('lookup', name)) and unknown (('unknown', path)) have two, so whenever one of those requests appeared the harness crashed with IndexError: tuple index out of range (run 41225713048 on #3947, and on #5403), failing parity on PRs that don't touch online mode.

Both checks now compare e[-1]. That is the same field as e[3] for join and verify (accepted / ok), and for an unexpected lookup or unknown call it puts the name or path into the reported mismatch, so the next failure says what the extra call was.

Kind: tooling. Harness change: needs-proof. 2 lines; python3 -m py_compile passes. The harness itself runs on the parity runner (it needs the vanilla server).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5508 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/online-mode-harness-log` --- ### 📝 Commits (1) - [`98f26ea`](https://github.com/horizon-rust/horizon/commit/98f26eae9b896bdc3a15dd76f9e5cf6a4c9f29ab) online_mode harness: compare a service call's last field, so a lookup is a mismatch, not a crash ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_online_mode_parity.py` (+2 -2) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. Fixes #5506. `tools/test_online_mode_parity.py` checked two scenarios with `[(e[0], e[3]) for e in services.take_log()]`. `join` and `verify` entries have four fields, but `lookup` (`('lookup', name)`) and `unknown` (`('unknown', path)`) have two, so whenever one of those requests appeared the harness crashed with `IndexError: tuple index out of range` (run 41225713048 on #3947, and on #5403), failing `parity` on PRs that don't touch online mode. Both checks now compare `e[-1]`. That is the same field as `e[3]` for `join` and `verify` (accepted / ok), and for an unexpected `lookup` or `unknown` call it puts the name or path into the reported mismatch, so the next failure says what the extra call was. Kind: tooling. Harness change: `needs-proof`. 2 lines; `python3 -m py_compile` passes. The harness itself runs on the parity runner (it needs the vanilla server). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:18:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6325
No description provided.