8000 test: isolate combat state between runs by Mnehmos · Pull Request #94 · Mnehmos/mnehmos.rpg.mcp · GitHub
[go: up one dir, main page]

Skip to content

test: isolate combat state between runs - #94

Merged
Mnehmos merged 1 commit into
mainfrom
codex/fix-death-save-alias
Aug 14, 2026
Merged

Mnehmos merged 1 commit into
mainfrom
codex/fix-death-save-alias

Conversation

@Mnehmos
@Mnehmos Mnehmos commented Aug 14, 2026
Copy link
Copy Markdown
Owner

What changed\n\nMake the existing test helper clear the process-wide CombatManager singleton.\n\n## Root cause\n\nclearCombatState() was a no-op, so encounters leaked between test files. In the post-merge CI schedule, the combat_manage death-save alias test could lose its in-memory encounter and receive an error object without success.\n\n## Validation\n\n-

pm run build\n-
pm run test:ci\n- 143 test files passed, 1 skipped\n- 2,245 tests passed, 7 skipped\n- focused combat tests: 84 passed\n\nFixes the post-merge CI failure from run 31824782824.

@coderabbitai
coderabbitai Bot commented Aug 14, 2026
Copy link
Copy Markdown

Warning

Review limit reached

@Mnehmos, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 42 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3b2df3fd-44cf-439c-af7e-ddcf98b2435b

📥 Commits

Reviewing files that changed from the base of the PR and between 04eaa76 and e011bed.

📒 Files selected for processing (1)
  • src/server/handlers/combat-handlers.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@repowise-bot
repowise-bot Bot commented Aug 14, 2026
Copy link
Copy Markdown

✅ Health of changed files: 1.0 (unchanged)

📋 At a glance
1 hotspot touched · 1 file with recent fix history · 2 dead-code findings · no tests touched. Scoped to src.

✅ Health gate: passed

📌 Before you merge

  • Run tests/server/combat-action-log.test.ts, tests/server/combat-auto-calc.test.ts, tests/server/combat-regressions.test.ts: they import the changed files
🔎 More signals (3)

🗺️ Change map

flowchart LR
  subgraph PR ["Changed in this PR (1 with dependents)"]
    f_src_server_handlers_combat_handlers_ts[".../handlers/combat-handlers.ts 🔥"]:::changed
  end
  f_src_server_consolidated_combat_action_ts[".../consolidated/combat-action.ts"]
  f_src_server_handlers_combat_handlers_ts --> f_src_server_consolidated_combat_action_ts
  f_src_server_consolidated_combat_manage_ts[".../consolidated/combat-manage.ts"]
  f_src_server_handlers_combat_handlers_ts --> f_src_server_consolidated_combat_manage_ts
  f_src_server_consolidated_combat_map_ts[".../consolidated/combat-map.ts"]
  f_src_server_handlers_combat_handlers_ts --> f_src_server_consolidated_combat_map_ts
  t_tests_server_combat_action_log_test_ts(["✅ tests/server/combat-action-log.test.ts"]):::guard
  t_tests_server_combat_action_log_test_ts -.-> f_src_server_handlers_combat_handlers_ts
  classDef changed fill:#dbeafe,stroke:#1d4ed8,color:#1e3a5f
  classDef warn fill:#fef3c7,stroke:#b45309,color:#78350f
  classDef guard fill:#dcfce7,stroke:#15803d,color:#14532d
Loading

Solid arrows: code that imports the changed files (3 direct dependents, from the last indexed snapshot). Dashed: history/tests.

🔥 Hotspot touched (1)

  • .../handlers/combat-handlers.ts: 3 commits/90d, 17 dependents

💀 Dead code (2 findings)

  • 💀 .../handlers/combat-handlers.ts pubsub (confidence 0.65)
  • 💀 .../handlers/combat-handlers.ts CombatTools (confidence 0.65)

📊 See the full report for this PR
Your repo map with this PR's blast radius lit up, every caller of the contracts it changes, and health before and after. No sign-in. · ⭐ Star Repowise · 📥 Install bot · Silence on a single PR with [skip repowise] in the title · Per-repo toggle on repowise.dev/settings?tab=bot · Updated 2026-08-14 17:53 UTC

@Mnehmos
Mnehmos merged commit 913a7ae into main Aug 14, 2026
5 checks passed
@Mnehmos
Mnehmos deleted the codex/fix-death-save-alias branch August 14, 2026 17:57
zxrfire pushed a commit to zxrfire/mnehmos.rpg.mcp that referenced this pull request Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0