Skip to content

test_make_game_resume: the fake shard process answers poll() (red on main since #1797) - #7041

Closed
Mob1K7105 wants to merge 1 commit into
ItsNotRexed:mainfrom
Mob1K7105:fix-resume-test-poll
Closed

Mob1K7105 wants to merge 1 commit into
ItsNotRexed:mainfrom
Mob1K7105:fix-resume-test-poll

Conversation

@Mob1K7105

Copy link
Copy Markdown

Claimed in the coordination issue: #6750 (comment)

What and why

tests/test_make_game_resume.py is red on main (cb168f46): 11 of its 14 tests error with AttributeError: 'FakeProc' object has no attribute 'poll'. #1797 changed make_game.translate to start every shard and then poll them (p.poll() in the loop, wait() only in _stop_procs), but the test's fake Popen still only had wait().

The fake now does its work on the first poll() and keeps the exit status, and wait(timeout=None) returns the same status, like a process that has already been reaped. What the tests check (which shards start, the shard plan, a crashed shard retried alone) is unchanged.

Tested

  • python3 -I tests/test_make_game_resume.py: 14 tests OK. On main: FAILED (errors=11).
  • Linux, Python 3.14.10. No GPU or game files involved.

AI-assisted: yes (Claude Code).

  • No game data, keys or decryption.

🤖 Generated with Claude Code

ItsNotRexed#1797 made make_game.translate poll its shard processes instead of waiting
on each in turn, and the test's FakeProc only had wait(), so all 11 tests
that go through translate() errored with "'FakeProc' object has no
attribute 'poll'". The fake now finishes on its first poll and keeps the
exit status, and wait() returns it, as for a reaped process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Mob1K7105

Copy link
Copy Markdown
Author

Closing as a duplicate of #7018, which fixes the same FakeProc.poll gap and was opened first; my claim went to the already-closed coordination thread #6750, so I missed it. Sorry for the noise.

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