[GH-ISSUE #6678] [Issue]: Ruleset combat-on-a-board e2e sometimes ends without an outcome after 80 AI turns #3739

Closed
opened 2026-10-21 06:06:43 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6678

Originally assigned to: @kolacheee on GitHub.

Summary

The e2e spec e2e/game-combat-director.e2e.ts:444 ("Combat director ruleset on a board: the walk, the log in paces, and the swing once it is adjacent") sometimes fails at line 716, expect(s.outcome).toBeTruthy(). After the scripted walk and swing, the spec hands the player to the AI and sends up to 80 continue commands, and the positioned Ember Roads fight has still not ended.

It fails on staging itself and on unrelated PRs, in more than one browser project.

Expected behavior

With both sides under AI control, the fight reaches an outcome well inside 80 turns, and the spec passes.

Actual behavior

s.outcome is still empty after the loop. The server draws its own seed, so the spec passes on some runs and fails on others. Either some seeds give a fight that genuinely lasts longer than 80 turns on this board (for example sides that never close the distance, or a loop of misses), or the fight stalls and continue stops advancing it. The failing runs' traces should say which.

Steps to reproduce

  1. On current staging, run the Playwright spec e2e/game-combat-director.e2e.ts (the ruleset-on-a-board test at line 444) a few times.
  2. On some runs it fails at line 716.

Environment

  • Marinara Engine version: staging 7c03e045e (2.4.6 line)
  • Install type: CI (Release Regression Matrix)
  • OS + version: GitHub-hosted Ubuntu runner
  • Browser or app shell: Playwright mobile-chromium and mobile-webkit

Logs, screenshots, or video

  • Staging push, run 36166916849 (0422fef70), job "mobile-chromium 6/8" (108176862140): fails at line 716.
  • PR 6665, run 36154725240, job "mobile-webkit 7/10" (108136428701): same test fails.
  • PR 6669, run 36171804330, job "mobile-webkit 7/10" (108193509755): fails at line 716. The same spec passed on that PR's first run (36162976267).

Additional context

Reported from another PR's CI rather than worked on there. Nothing in PR 6669 is read by the combat code; it does add a burden field and a derived value to the Ember Roads example this spec imports, but staging fails the same way without them.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6678 Originally assigned to: @kolacheee on GitHub. ## Summary The e2e spec `e2e/game-combat-director.e2e.ts:444` ("Combat director ruleset on a board: the walk, the log in paces, and the swing once it is adjacent") sometimes fails at line 716, `expect(s.outcome).toBeTruthy()`. After the scripted walk and swing, the spec hands the player to the AI and sends up to 80 `continue` commands, and the positioned Ember Roads fight has still not ended. It fails on `staging` itself and on unrelated PRs, in more than one browser project. ## Expected behavior With both sides under AI control, the fight reaches an outcome well inside 80 turns, and the spec passes. ## Actual behavior `s.outcome` is still empty after the loop. The server draws its own seed, so the spec passes on some runs and fails on others. Either some seeds give a fight that genuinely lasts longer than 80 turns on this board (for example sides that never close the distance, or a loop of misses), or the fight stalls and `continue` stops advancing it. The failing runs' traces should say which. ## Steps to reproduce 1. On current `staging`, run the Playwright spec `e2e/game-combat-director.e2e.ts` (the ruleset-on-a-board test at line 444) a few times. 2. On some runs it fails at line 716. ## Environment - Marinara Engine version: staging 7c03e045e (2.4.6 line) - Install type: CI (Release Regression Matrix) - OS + version: GitHub-hosted Ubuntu runner - Browser or app shell: Playwright mobile-chromium and mobile-webkit ## Logs, screenshots, or video - Staging push, run 36166916849 (0422fef70), job "mobile-chromium 6/8" (108176862140): fails at line 716. - PR 6665, run 36154725240, job "mobile-webkit 7/10" (108136428701): same test fails. - PR 6669, run 36171804330, job "mobile-webkit 7/10" (108193509755): fails at line 716. The same spec passed on that PR's first run (36162976267). ## Additional context Reported from another PR's CI rather than worked on there. Nothing in PR 6669 is read by the combat code; it does add a `burden` field and a derived value to the Ember Roads example this spec imports, but staging fails the same way without them. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:06:43 +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
Pasta-Devs/Marinara-Engine#3739
No description provided.