feat(services): add fake-game binary for MVP testing#2
Open
Count-I wants to merge 1 commit into
Open
Conversation
Standalone Rust crate at tools/fake-game/ (not a workspace member).
Simulates the Minecraft process lifecycle for MVP validation without
requiring a real game install.
Modes:
default — 30s sleep, clean exit (exit 0)
--crash — 3s sleep, exit 1 (validates GameCrashed signal flow)
--hang — infinite sleep (validates watchdog timeout detection)
--fast — immediate clean exit (validates GameExited signal flow)
ModpackManager (D5) will launch this via:
systemd-run --user --scope --unit=minecrarch-game@test.scope \
tools/fake-game/target/release/fake-game [--crash|--hang]
Build: cargo build --manifest-path tools/fake-game/Cargo.toml --release
ADR-0009 (shell never execs game directly — only ModpackManager does,
via systemd-run)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Standalone Rust crate en
tools/fake-game/(no es workspace member). Simula el proceso de Minecraft para validar el MVP sin necesidad de instalar un juego real.Modes
fake-game(default) — 30s, exit 0 (sesión normal)fake-game --crash— 3s, exit 1 (valida flujo GameCrashed)fake-game --hang— infinito (valida watchdog timeout)fake-game --fast— exit 0 inmediato (valida GameExited limpio)ADR references
ADR-0009 (shell nunca ejecuta el juego directamente — solo ModpackManager lo hace via
systemd-run)Usage (D5 lo invocará así)