mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6678] [Issue]: Ruleset combat-on-a-board e2e sometimes ends without an outcome after 80 AI turns #3739
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3739
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 80continuecommands, and the positioned Ember Roads fight has still not ended.It fails on
stagingitself 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.outcomeis 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 andcontinuestops advancing it. The failing runs' traces should say which.Steps to reproduce
staging, run the Playwright spece2e/game-combat-director.e2e.ts(the ruleset-on-a-board test at line 444) a few times.Environment
7c03e045e(2.4.6 line)Logs, screenshots, or video
0422fef70), job "mobile-chromium 6/8" (108176862140): fails at line 716.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
burdenfield 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: