Skip to content

xcl_compare: report an interrupted retry after an earlier pass - #7960

Open
cdomergue wants to merge 1 commit into
ItsNotRexed:mainfrom
cdomergue:codex/xcl-restart-verdict
Open

cdomergue wants to merge 1 commit into
ItsNotRexed:mainfrom
cdomergue:codex/xcl-restart-verdict

Conversation

@cdomergue

Copy link
Copy Markdown

Coordination claim for the stale XCL restart verdict

What and why

After a hang, the synthetic title restarts and can execute a previously passed check again. If it exits between the second [RUN] and the result, the comparison currently reports the first attempt's PASS alongside the second attempt's nonzero exit code.

On a new [RUN], the comparator now marks the check as running and clears its old reason and duration. The existing exit handler can then record the interruption. A check that already has a hang keeps that result across attempts.

Tested

Windows 11 x64, CPython 3.13.13, CPU only. The regression uses the existing synthetic Python title: on the first attempt A passes and B hangs. On the retry A starts and exits 7. The regression failed on parent dde82f27e because A remained PASS. All 16 tests in tests/test_xcl_compare.py pass on the patch, including the interrupted retry and both existing hang-restart cases.

compileall, git diff --check, and the repository's game-data check on both changed files passed.

The translator suite ran 5,956 tests across 447 files. Two modules failed: test_image_atomics_guard (47 assertions) and test_image_store_d16 (one assertion). I reran both modules on a separate checkout of the parent and reproduced those failures there.

AI-assisted development and verification.

  • No game data, keys or decryption.

@leoleahy leoleahy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent Windows 11 / Python 3.14.8 review of 0e67ae73 (synthetic inputs, CPU only, no game data).

Checks run

  • python -I tests/test_xcl_compare.py: 16/16 OK on 0e67ae73.
  • Negative control against parent dde82f27's tools/xcl_compare.py: 1 failure (test_exit_during_repeated_check_replaces_previous_pass, keeping stale 'PASS' instead of 'FAIL').
  • python -m compileall -q tools/xcl_compare.py tests/test_xcl_compare.py, git diff --check dde82f27..0e67ae73, and git merge-tree --write-tree upstream/main HEAD: all clean.

Code review notes

  • Resetting non-HANG checks to status="RUNNING", reason="", seconds=None on [RUN] ensures an interrupted retry updates the check to FAIL instead of preserving a stale earlier PASS, while still preserving recorded hangs just as the result handler does.
  • Note for maintainer: disjoint from #7542 (run_all --out guard).

LGTM.

AI-assisted.

@noviw-rblx

Copy link
Copy Markdown

checked: #7960 | with: python -m pytest -q tests/test_xcl_compare.py | on: Windows 10, CPython 3.13, head 0e67ae7, CPU only | result: 16 passed. No game data, no GPU.

@molodayamama

Copy link
Copy Markdown

I tested one more restart boundary on Windows at 0e67ae7396ccfdc57fb9cdf57ab2829a1d689ab0. The first synthetic process passes a and hangs on b; the retry prints [RUN] a and exits with code 0 before a verdict. The recorded result is a: FAIL with the exit-code-0 reason, b: HANG, why b was skipped, and two attempts. All 16 existing tests passed too.

AI-assisted verification.

@TieruYT

TieruYT commented Nov 23, 2026

Copy link
Copy Markdown

Windows, synthetic inputs. Tested 0e67ae7.

The restart regression passed: after check a had passed once, an interrupted repeated attempt exiting 7 replaced its previous result with FAIL and retained the exit code in the reason. The fixture recorded both attempts and preserved the HANG for check b. The parent failed the same regression.

AI-assisted verification · GPT-6.2 Astra Medium

@airp1ane

Copy link
Copy Markdown
Contributor

Tested 0e67ae7 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass.

Ran the test files this PR adds or changes, from a clean checkout of the PR head: test_xcl_compare.py - all exit 0.

AI-assisted (Claude Code).

@RemingtonWilcox

Copy link
Copy Markdown

Read and ran tests/test_xcl_compare.py at 0e67ae7 (Windows 11, Python 3.12): 1 failure on main@dde82f2, all 16 pass on the PR. tools/xcl_compare.py:202-204 now keeps a recorded HANG and otherwise resets the check to RUNNING with an empty reason and no duration, so an interrupted retry no longer shows the stale earlier PASS.

AI-assisted review (Claude); tests run locally as stated.

@ne1i

ne1i commented Nov 23, 2026

Copy link
Copy Markdown

Tested 0e67ae73 on Linux, CPython 3.14, CPU only, synthetic inputs, merged onto main 867d922f: pass

  • python -I tests/test_xcl_compare.py: Ran 16 tests, OK. With only the non-test files reverted to main: FAILED (failures=1), so the new tests exercise the change.
  • compileall and scripts/check_no_game_data.py on the changed files: clean.

Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; coordination: #8504.

@paulo-lang

Copy link
Copy Markdown

PR cleanup, #8919 — this looks ready to merge: it is mergeable, carries its own restart regression test, and noviw-rblx's independent checked: run at 0e67ae7 (16 passed) is here: #7960 (comment)

It is disjoint from #7542, so both can land. Thanks!

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.

10 participants