[PR #4853] [MERGED] Game tests: retries and flaky tests #5894

Closed
opened 2026-11-03 05:15:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4853
Author: @levzzz5154
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: parity/T2-test-retries


📝 Commits (2)

  • 5d41303 Game tests: retries and flaky tests
  • ee4108f Merge remote-tracking branch 'hr/main' into parity/T2-test-retries

📊 Changes

3 files changed (+414 additions, -79 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/test_runs.rs (+33 -11)
📝 crates/horizon-client/src/game/game_tests.rs (+367 -68)
📝 crates/horizon-client/src/game/test_instances.rs (+14 -0)

📄 Description

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

Part of #3520

Finishes part of the game-test framework after #4816, #4824 and #4833 (not tracker rows).

  • RetryOptions: /test run|runthese|runclosest|runthat|runfailed .. <numberOfTimes> [untilFailed] (0 = unlimited; no argument = noRetries; runmultiple never retries).
  • ReportGameListener counters (attempts at structure load, successes), handleRetry's [Run: .. Ok: .. Fail: .. Left: ..] line, flaky tests (max_attempts, required_successes) incl. ExhaustedAttemptsException reporting.
  • GameTestInfo.copyReset, GameTestRunner.rerunTest / runScheduledRerunTests: reruns are batched again after the current batches; reruns are not in the summary or the failed-test list (their listeners are not copied), as in vanilla.
  • GameTestSequence is not needed: BuiltinTestFunctions only registers always_pass.

Still not done: /test verify|locate|pos|create|export, tests in another dimension, entity removal and force-loaded chunks.

Tests: retry decisions, retry line format, rerun copy counters. clippy and fmt clean; no unsafe or platform branches.

🤖 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/4853 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/T2-test-retries` --- ### 📝 Commits (2) - [`5d41303`](https://github.com/horizon-rust/horizon/commit/5d4130346658d1999772831ec94b9be3f11ee87c) Game tests: retries and flaky tests - [`ee4108f`](https://github.com/horizon-rust/horizon/commit/ee4108fdaf06798bb3101bff8f520785311b44cb) Merge remote-tracking branch 'hr/main' into parity/T2-test-retries ### 📊 Changes **3 files changed** (+414 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/test_runs.rs` (+33 -11) 📝 `crates/horizon-client/src/game/game_tests.rs` (+367 -68) 📝 `crates/horizon-client/src/game/test_instances.rs` (+14 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 Finishes part of the game-test framework after #4816, #4824 and #4833 (not tracker rows). - `RetryOptions`: `/test run|runthese|runclosest|runthat|runfailed .. <numberOfTimes> [untilFailed]` (0 = unlimited; no argument = `noRetries`; `runmultiple` never retries). - `ReportGameListener` counters (attempts at structure load, successes), `handleRetry`'s `[Run: .. Ok: .. Fail: .. Left: ..]` line, flaky tests (`max_attempts`, `required_successes`) incl. `ExhaustedAttemptsException` reporting. - `GameTestInfo.copyReset`, `GameTestRunner.rerunTest` / `runScheduledRerunTests`: reruns are batched again after the current batches; reruns are not in the summary or the failed-test list (their listeners are not copied), as in vanilla. - `GameTestSequence` is not needed: `BuiltinTestFunctions` only registers `always_pass`. Still not done: `/test verify|locate|pos|create|export`, tests in another dimension, entity removal and force-loaded chunks. Tests: retry decisions, retry line format, rerun copy counters. clippy and fmt clean; no unsafe or platform branches. 🤖 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 05:15:44 +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#5894
No description provided.