[PR #4833] [MERGED] /test: run, runmultiple, runthese, runclosest, runthat, runfailed, reset, clear, stop #5879

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

📋 Pull Request Information

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

Base: main ← Head: parity/T3-test-command


📝 Commits (3)

  • baae358 /test: run, runmultiple, runthese, runclosest, runthat, runfailed, reset*, clear*, stop
  • e0cee92 Update the test command corpus note
  • 7a6dd1f Merge hr/main into parity/T3-test-command

📊 Changes

6 files changed (+543 additions, -50 deletions)

View changed files

📝 crates/horizon-client/src/game/commands.rs (+1 -0)
📝 crates/horizon-client/src/game/commands/extra.rs (+8 -24)
➕ crates/horizon-client/src/game/commands/test_runs.rs (+420 -0)
📝 crates/horizon-client/src/game/game_tests.rs (+85 -8)
📝 crates/horizon-client/src/game/test_instances.rs (+26 -16)
📝 tools/command_exec_corpus.py (+3 -2)

📄 Description

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

Part of #3520 (stage 3 of 3 for the game-test runner: /test).

Rows

  • ServerGamePacketListenerImpl.handleTestInstanceBlockAction (RUN): the runner now also runs from /test; with this the row's subsystem is ported except what is listed below.

What changed

  • /test run <tests> [..rotationSteps [testsPerRow]], runmultiple <tests> [amount]: the tests (ResourceSelector over the game's test instances) get a test instance block each in a grid south of the source (StructureGridSpawner: 8 to a row by default, 5 blocks between columns, 6 between rows; createTestPositionAround), then run. commands.test.run.running / commands.test.no_tests as vanilla.
  • runthese (250 blocks), runclosest (15 blocks, Manhattan), runthat (the box the view ray meets, 250 blocks) and runfailed [onlyRequiredTests] (FailedTestTracker) over the test instance blocks in the level (TestFinder, StructureUtils.findTestBlocks/findNearestTest/lookedAtTestPos), including createGameTestInfo's two failures (non_existant_test, structure_not_found).
  • resetclosest/these/that (TestCommand.reset: each test's resetTest, commands.test.reset.success), clearthat/these/all [radius] (TestCommand.clear: the space cleared, barriers removed, the block destroyed, commands.test.clear.success), stop (GameTestTicker.clear).
  • StructureGridSpawner for the runner's tests without a block.

Not done

verify, create, locate, pos (the highlight packet), export*; retries (numberOfTimes, untilFailed are parsed and ignored); tests of another dimension than the level in place (answered with the Could not resolve level failure); the destroy-block level event of clear.

Vanilla followed

TestCommand.run/reset/clear/stopTests/createGameTestInfo/toGameTestInfo/createTestPositionAround, TestFinder.Builder.*, StructureUtils.findTestBlocks/findNearestTest/lookedAtTestPos/clearSpaceForStructure, StructureGridSpawner.spawnStructure.

Tests

commands::test_runs::tests (rotation steps, the view ray against a box). fmt and clippy -D warnings clean on horizon-client. The command corpus' empty-world cases are unchanged (no test blocks: the same errors). Not run in the game.

🤖 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/4833 **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/T3-test-command` --- ### 📝 Commits (3) - [`baae358`](https://github.com/horizon-rust/horizon/commit/baae358894eea9387a5fea737de629ef3c9784ac) /test: run, runmultiple, runthese, runclosest, runthat, runfailed, reset*, clear*, stop - [`e0cee92`](https://github.com/horizon-rust/horizon/commit/e0cee924f0d915189699d51c1944a0ab2177d7f2) Update the test command corpus note - [`7a6dd1f`](https://github.com/horizon-rust/horizon/commit/7a6dd1ffc945d2e640b5a09dbe38d3e856789733) Merge hr/main into parity/T3-test-command ### 📊 Changes **6 files changed** (+543 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands.rs` (+1 -0) 📝 `crates/horizon-client/src/game/commands/extra.rs` (+8 -24) ➕ `crates/horizon-client/src/game/commands/test_runs.rs` (+420 -0) 📝 `crates/horizon-client/src/game/game_tests.rs` (+85 -8) 📝 `crates/horizon-client/src/game/test_instances.rs` (+26 -16) 📝 `tools/command_exec_corpus.py` (+3 -2) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 (stage 3 of 3 for the game-test runner: `/test`). ## Rows - `ServerGamePacketListenerImpl.handleTestInstanceBlockAction` (RUN): the runner now also runs from `/test`; with this the row's subsystem is ported except what is listed below. ## What changed - `/test run <tests> [..rotationSteps [testsPerRow]]`, `runmultiple <tests> [amount]`: the tests (`ResourceSelector` over the game's test instances) get a test instance block each in a grid south of the source (`StructureGridSpawner`: 8 to a row by default, 5 blocks between columns, 6 between rows; `createTestPositionAround`), then run. `commands.test.run.running` / `commands.test.no_tests` as vanilla. - `runthese` (250 blocks), `runclosest` (15 blocks, Manhattan), `runthat` (the box the view ray meets, 250 blocks) and `runfailed [onlyRequiredTests]` (`FailedTestTracker`) over the test instance blocks in the level (`TestFinder`, `StructureUtils.findTestBlocks/findNearestTest/lookedAtTestPos`), including `createGameTestInfo`'s two failures (`non_existant_test`, `structure_not_found`). - `resetclosest/these/that` (`TestCommand.reset`: each test's `resetTest`, `commands.test.reset.success`), `clearthat/these/all [radius]` (`TestCommand.clear`: the space cleared, barriers removed, the block destroyed, `commands.test.clear.success`), `stop` (`GameTestTicker.clear`). - `StructureGridSpawner` for the runner's tests without a block. ## Not done `verify`, `create`, `locate`, `pos` (the highlight packet), `export*`; retries (`numberOfTimes`, `untilFailed` are parsed and ignored); tests of another dimension than the level in place (answered with the `Could not resolve level` failure); the destroy-block level event of `clear`. ## Vanilla followed `TestCommand.run/reset/clear/stopTests/createGameTestInfo/toGameTestInfo/createTestPositionAround`, `TestFinder.Builder.*`, `StructureUtils.findTestBlocks/findNearestTest/lookedAtTestPos/clearSpaceForStructure`, `StructureGridSpawner.spawnStructure`. ## Tests `commands::test_runs::tests` (rotation steps, the view ray against a box). fmt and clippy `-D warnings` clean on horizon-client. The command corpus' empty-world cases are unchanged (no test blocks: the same errors). Not run in the game. 🤖 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:38 +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#5879
No description provided.