Skip to content

run_wine_tests: an aborted test ends at once instead of waiting 120 s for winedbg (~12 min off each Wine CI job) - #4462

Open
tedin7 wants to merge 7 commits into
ItsNotRexed:mainfrom
tedin7:speed-wine-fast-abort
Open

tedin7 wants to merge 7 commits into
ItsNotRexed:mainfrom
tedin7:speed-wine-fast-abort

Conversation

@tedin7

@tedin7 tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Item: new, claimed here.
Depends on: none.

What and why

Under Wine, a Windows process that hits an unhandled exception (for example a call to a function this Wine does not implement: Unimplemented function KERNEL32.dll.CopyFile2 called ... aborting) starts Wine's crash debugger, winedbg --auto. On the Xvfb display of the CI job nothing ends it, so the test sits until scripts/run_wine_tests.py kills it at --timeout (120 s) and reports a failure.

In CI run 45043441962 (job "wine (ubuntu)", Wine 9) that is 6 tests (d3d12_draw, d3d12_compute, d3d12_pipeline_library, d3d12_set0_compute, queue_proxy, file_system) x 120 s = 720 s of the 793 s step "Windows tests under Wine"; the other 106 tests take ~1.6 s each. The winehq-stable job of the same run spends 517 s for the same reason (4 tests).

run_wine_tests.py now sets HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger to false in the prefix for the run and puts the old value back at the end (or deletes it if there was none). An aborted test then ends in under a second with a non-zero exit code: the same FAIL, found fast.

Proof (same results, much faster)

The pod's Wine is 11, which implements CopyFile2, so the real tests do not hang there. The proof uses a small synthetic exe (clang-cl, from xwin) that raises Wine's own unimplemented-function stub exception for CopyFile2 (arg s), dereferences null (c), exits 0 (o) or exits 77 (k), and a fresh prefix made as the CI step does (xvfb-run -a sh -c 'wineboot --init && wineserver -w').

Crash-debugger variants, exit code and time of one aborted process (stub / null write):

Prefix Result Time
default (as CI today) hangs, killed by my 40 s timeout, rc=124, 4 of 4 runs 40 s
AeDebug Debugger=false (this PR) rc=1 (stub) / rc=5 (null), 10 of 10 runs 0.6 s
AeDebug Auto=1 (default Debugger) still hangs, rc=124, 5 of 5 runs 15 s limit
WineDbg ShowCrashDialog=0 ends fast and keeps the backtrace, but the stub abort exited rc=0 in 2 of 2 runs, which would turn a FAIL into a PASS: ruled out 1 s

run_wine_tests.py on 7 tests (2 pass, 1 skip via SKIP_RETURN_CODE, 4 aborts: 2 stub, 2 null write), --timeout 30, same prefix, xvfb-run, before = the main version of the script:

before after
[PASS]/[FAIL]/[SKIP] list ok PASS, skip SKIP, stub_a FAIL, crash_a FAIL, stub_b FAIL, ok2 PASS, crash_b FAIL identical
summary line 2 passed, 4 failed, 1 skipped under Wine (7 tests) identical
--summary Markdown table identical (diff empty)
exit code with --require ok --require ok2 0 0
total time 130 s (4 x 30 s timeouts) 46 s (about 4.6 s per test on the busy pod)
prefix after the run AeDebug Debugger = winedbg --auto %ld %ld same, restored

With the CI timeout of 120 s the same 4 aborts cost 480 s before; the expected saving in CI is about 700 s of the 793 s step and about 480 s of the 517 s one.

The backtrace winedbg would print is no longer in the log of an aborted test; the log keeps Wine's one-line message ("Unimplemented function ... called at address ..."), which names the missing function, and the exit code. --keep-wine-debugger brings the old behaviour back for someone who wants the backtrace.

Tests: python -I tests/test_run_wine_tests.py (5 new cases through a stand-in for wine reg: off during the run and restored, removed again when absent, a user's own debugger left alone, --keep and a missing prefix change nothing, an unstartable wine does not stop the run). 55 tests pass; tests/test_tool_stdout_encoding.py passes.

Duplicate check: PR searches "CopyFile2", "winedbg", "AeDebug", "wine timeout", "wine debugger", "run_wine_tests", and git log -S for AeDebug/winedbg/ShowCrashDialog on main: nothing sets the crash debugger. Coordination issue #4257: no mention. Closest open PRs: #3655, #2882, #4079, #4091.

AI-assisted. No game files.

…nedbg

Wine starts its crash debugger for an unhandled exception, such as a call to a function it does not implement. On Xvfb nothing ends it, so the test waited for the 120 s timeout (6 tests, 720 s of one Wine job). The runner now sets AeDebug Debugger to false in the prefix for the run and restores it; the test still fails, in under a second. --keep-wine-debugger leaves the old behaviour.
@SweatierKey

Copy link
Copy Markdown
Contributor

Tested d989f9eb on Linux CPU (Python 3.13.5, clean worktree): pass.

  • python3 -I tests/test_run_wine_tests.py -v: 55/55 OK (0.75s), including all 5 new WineDebuggerTest cases (toggle/restore winedbg, remove when previously absent, preserve custom user debugger, --keep-wine-debugger / missing prefix no-op, and unstartable wine non-fatal fallback).
  • Code read: clean context manager with bounded 60 s wine reg calls, errors="replace" decoding, and safe restoration in __exit__. git diff --check clean. No game files. AI-assisted.

@AGInformatique81 AGInformatique81 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.

Tested d989f9eb on Linux via WSL (Python 3.14.7, Wine 10.0). The 55 runner tests pass. An isolated 64-bit Wine prefix exposed a case where an existing user setting is deleted:

  • Set AeDebug Debugger to a custom REG_EXPAND_SZ value, or to an empty REG_SZ. wine reg query succeeds in both cases.
  • Enter and exit WineDebugger. The value becomes REG_SZ false during the run and is deleted on exit (reg query returns 1).

The matcher only recognizes REG_SZ, and the existing-value check treats an empty string as absent. I tested a local adjustment that leaves successful queries of an unrecognized value alone and distinguishes an empty value from a missing one. Both values and their types were unchanged during and after the run on Wine 10.0; all 55 existing tests still passed. Please add both cases to the preservation tests.

Synthetic registry values in a disposable prefix. AI-assisted with Codex.

@mrbean56

Copy link
Copy Markdown

Tested d989f9ebc5 on Linux (Debian 13), Python 3.13.5: pytest tests/test_run_wine_tests.py -q gives 55 passed, 44 subtests passed, and the fake-wine cases cover the restore paths. The approach is right — Debugger=false is the documented way to stop winedbg — but one branch loses the user's setting:

Bug: a Debugger value that is present but not REG_SZ is overwritten and then deleted. The query regex only matches REG_SZ, so any other type parses as m is None, which is treated the same as "no value". The run then writes REG_SZ false and, on exit, deletes the value instead of restoring it. I exercised the four outcomes with a stub _reg:

wine reg query output active previous on exit
Debugger REG_SZ winedbg --auto %ld %ld yes parsed restored
Debugger REG_SZ C:\dbg.exe ... no — untouched
Debugger REG_EXPAND_SZ %SystemRoot%\dbg.exe ... yes None deleted
no value line yes None deleted (right)

The docstring promises "Nothing is done ... when the prefix names a debugger other than winedbg", so the third row is the intent gap. It is narrow (Wine's default is REG_SZ), but it destroys a setting that was there before the run.

Fix: distinguish "query succeeded and the value is there" from "no value". Either widen the regex to Debugger\s+REG_\w+\s*(.*) and refuse to touch a non-REG_SZ type (restoring it as REG_SZ would change it), or treat any rc == 0 output that names Debugger but does not parse as someone else's debugger and leave it alone.

Two notes, not requests: a SIGKILL during the run leaves Debugger=false in the prefix (nothing can catch that; a line in docs/testing.md or the help text would warn), and two concurrent invocations sharing one prefix can leave the key in whichever state exits last.

No GPU, no game data. AI-assisted.

@Atomic258

Copy link
Copy Markdown
Contributor

Tested d989f9eb on Linux (Ubuntu), CPython 3.10.12, CPU only, no game files: pass.

  • python -I tests/test_run_wine_tests.py: 55/55 OK (debugger off during run and restored, removal when absent, a foreign debugger untouched, --keep, missing prefix, unstartable wine).
  • Negative control: with main's scripts/run_wine_tests.py the 5 new tests fail (WineDebugger does not exist), so the tests pin the change.
  • git diff --check clean; compileall clean. Real Wine behavior not exercised — no Wine installed here; the unit tests mock wine reg.

AI-assisted (Devin).

@SebSilent

Copy link
Copy Markdown
Contributor

Reviewed d989f9eb on Linux, no Wine needed for the parts that matter.

  • tests/test_run_wine_tests.py: 55 tests OK at head. Reverted scripts/run_wine_tests.py to the parent (03b09a08) and the same suite gives 5 errors, all in WineDebuggerTest (module has no attribute 'WineDebugger'), so the new cases are the only thing carrying the change and they fail red without it. python3 -m compileall clean on both files.
  • The fake wine reg shim is a good fixture: it keeps state in a json file and records the argv, so the restore-on-exit, the "value was absent, delete it again" path, the non-winedbg leave-alone path and the keep/missing-prefix no-op are all checked without a real prefix.
  • Read the context manager: query, only touch a winedbg value, add false, restore or delete in __exit__, and every reg failure degrades to the old behavior with a note instead of failing the run. That ordering is right, and the re import was already there.

One nit, not a blocker: if the restore in __exit__ fails, the prefix keeps Debugger=false silently, and a later run then reads that false as "the prefix uses its own crash debugger" and leaves it. A reg add that worked at enter failing at exit is a stretch, so I would not hold this on it, but a note in the docstring would be honest.

Tested the CPU side only, no Windows box here. AI-assisted review.

@kapitche

Copy link
Copy Markdown
Contributor

Tested d989f9e merged with main 03b09a0 on Linux (WSL2), Python 3.12.16: pass. tests/test_run_wine_tests.py 55 tests OK (it also merges cleanly with the current main version of the file, which includes the DriveMap cleanup from #4359). Negative control: scripts/run_wine_tests.py restored from main with the PR tests kept -> FAILED (errors=5, the 5 WineDebuggerTest cases); mutation that drops the reg delete restore of a prefix that had no Debugger value -> FAILED (failures=1). Not run: Wine itself (not installed here), so the claim that winedbg hangs under Xvfb and that Debugger=false ends the aborted test in under a second is untested by me; the tests use a stand-in for wine reg. Diff read: the old value is restored or deleted on exit, a user-set non-winedbg debugger and a missing prefix are left alone, and a failing/unstartable wine reg only leaves a note. No concerns.

…h a retry, and keep an abort a failure

Review of ItsNotRexed#4462. The Debugger value is changed only when it is exactly the REG_SZ default or the query shows it absent (another command, a wrapper, REG_EXPAND_SZ, an empty value or a failed query is left alone). A restore that fails is retried once and then reported with the command that restores it by hand. A test that Wine aborted is a failure whatever WILL_FAIL, the exit code or PASS_REGULAR_EXPRESSION say, as it was when the crash debugger kept it waiting until the timeout. docs/testing.md names the SIGKILL and shared-prefix limits.
@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thank you all for testing and reading this. Fixes for the review are pushed to the branch as a39e559 (on top of d989f9e).

Thanks to mrbean56 and AGInformatique81: you both found the real bug. A Debugger value that exists but is REG_EXPAND_SZ, or an empty REG_SZ, was treated as "absent": the run overwrote it with REG_SZ false and deleted it at exit. Now the value is touched only when the query succeeds and the value is exactly REG_SZ "winedbg --auto %ld %ld", or when the query shows the value is absent ("unable to find ..."). Any other successful query, and any query that fails for another reason, leaves the prefix alone and prints a note. This also drops the old "contains winedbg" check, which matched a user's own wrapper. Tests: expandable string, default text in the wrong type, a wrapper around winedbg, an empty value, a failed query (all fail on d989f9e, pass now).

Thanks to SebSilent, SweatierKey, Atomic258 and kapitche for the independent runs (55/55 on Python 3.10 to 3.14, and the negative controls: the new tests fail without the change). The mutation kapitche ran, dropping the delete of a value that was absent, is still covered by test_a_value_the_query_proves_absent_is_removed_again.

Also changed:

  • A restore that fails or times out is tried a second time, then a warning on stderr names the prefix and the exact "wine reg add ..." command to restore it by hand (test with a shim whose adds fail).
  • Our own extra review: an aborted test could turn into a PASS through WILL_FAIL or a PASS_REGULAR_EXPRESSION already printed. On main the abort was a 120 s timeout, which is always a FAIL, so this would have been a regression. run_test now reports a process whose output has Wine's "wine: ... starting debugger..." line as a failure before any CTest property is applied (three tests: WILL_FAIL, required output already printed, exit code 0).
  • docs/testing.md says that a run killed with SIGKILL leaves Debugger=false (and gives the restore command), that two runs on one prefix must not overlap, and that --keep-wine-debugger brings the winedbg backtrace back.

Real Wine 11 on a fresh prefix, 7 synthetic tests (stub abort, null write, pass, skip), --timeout 30, with the new head: PASS/FAIL/SKIP list and summary line identical to main's script (2 passed, 4 failed, 1 skipped), 46 s instead of 130 s, Debugger back to "winedbg --auto %ld %ld" afterwards.

Not bugs:

  • A test whose CTest ENVIRONMENT sets its own WINEPREFIX keeps the debugger: no test in the repo does this (git grep WINEPREFIX over runtime/, tests/, scripts/ and the CMake files finds only docs and this runner). It is documented in the class docstring.
  • "Real Wine behaviour not exercised" (Atomic258, kapitche): the exercise on a real prefix is in the PR body and above; CI will show it on the Ubuntu Wine 9 leg too.

@mrbean56

Copy link
Copy Markdown

Verified the fix at a39e559cbd on Linux (Debian 13), Python 3.13.5: pass, and the data-loss branch is closed.

  • pytest tests/test_run_wine_tests.py -q: 62 passed, 48 subtests passed.
  • Re-ran the six query shapes through WineDebugger with a stub _reg: default REG_SZ winedbg --auto %ld %ld (touched), other REG_SZ command (left), REG_EXPAND_SZ (left), empty REG_SZ (left), "Unable to find" (treated as absent, touched), any other query error (left). The only destructive path now needs both the exact default value and a successful query, which is what the docstring promises.
  • The last-resort WARNING with the manual restore command is a good addition for the SIGKILL case; nothing further from me.

AI-assisted.

@Halfect

Halfect commented Nov 23, 2026

Copy link
Copy Markdown

Code read + local run, head d989f9eb against base 03b09a08.

Tested: reconstructed the PR locally (base files + this diff) on macOS (POSIX), python -I tests/test_run_wine_tests.py: 55 tests, 52 pass, including all 5 new WineDebuggerTest cases (off during the run and restored, removed again when absent, a user's own debugger left alone, keep/missing-prefix no-ops, unstartable wine does not stop the run).

The same 3 tests fail on unmodified 03b09a08 (verified against a reconstructed base): DriveMapTest.test_main_maps_the_drive_while_the_tests_run, MainTest.test_a_required_test_that_passes_exits_zero, MainTest.test_the_summary_table_is_appended. Cause here is environmental: this machine's sys.executable lives under .../Library/Application Support/..., the tests pass it through --wine and shlex.split cuts the path at the space, so main() reports could not start .../Library/Application. Identical on main, unrelated to this change; passes where the interpreter path has no spaces (CI).

Code-read notes:

  • Restore-on-exit runs on the exception path too (__exit__ returns False), and the old value round-trips as a single argv element (no shell), so a debugger string with spaces restores byte-identical.
  • Query regex ^\s*Debugger\s+REG_SZ\s*(.*?)\s*$ matches real wine reg query output; rc 0 with no match (key exists, value absent) correctly falls into add-then-delete.
  • Non-winedbg debugger, missing prefix, --keep-wine-debugger and an unstartable wine reg all degrade to the old behaviour with a note, never to a failure.
  • The runner (main(), not the workflow) is the right layer, as the PR says; leaves TEST-567: Honor CTest deadlines in the Wine runner #2882/Keep Wine prefix setup and runtime tests on one Xvfb display #4079 untouched.

Verdict: pass (CPU review). AI-assisted review.

@AGInformatique81 AGInformatique81 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.

Retested a39e559c with Wine 10.0 in a disposable 64-bit prefix under WSL. My original REG_EXPAND_SZ and empty REG_SZ debugger values were unchanged during and after the run. Both final queries returned success with the original type and value. All 62 runner tests passed on Python 3.14.7.

I also combined this head with #4446 at da67a855 (including #4359) and #4378 at 9beff025 without conflicts. Linux passed all 71 tests; Windows passed 59 with 12 POSIX-only skips. AI-assisted with Codex.

@Flyander Flyander 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.

[P3] The SIGKILL recovery command only restores the default value when that was the original state. WineDebugger also supports a missing Debugger value: it temporarily writes false, but after SIGKILL the documented command adds winedbg --auto %ld %ld instead of restoring absence. Please record whether the value existed and document both recovery actions (set the default or delete the value), so users can restore the state the context manager preserves during a normal exit.

@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @Flyander, right: the documented command only covered the prefix that had the default value. Fixed in 7ae183f:

  • WineDebugger already remembers whether the value existed (previous is the default text, or None when the query proved it absent). A new restore_command() gives the exact way back for that prefix: wine reg add ... /d "winedbg --auto %ld %ld" when the default was there, wine reg delete ... /v Debugger when there was no value.
  • The runner prints it in the note before the tests start ("If this run is killed, put it back with: ..."), so a run killed with SIGKILL still has the right command in its log. The final WARNING after a failed restore uses the same function.
  • docs/testing.md now gives both recovery commands and says which one applies.

Test: test_the_way_back_is_printed_before_the_run_for_both_prior_states (default value: the note says reg add with the default; absent value: reg delete and no add). It fails on a39e559 and passes now. tests/test_run_wine_tests.py: 63 tests OK (Python 3.13, Linux).

@wavehs

wavehs commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 7ae183f on macOS 27.2.1 / CPython 3.15, no Wine, no game data: pass.

  • python3 -I tests/test_run_wine_tests.py: 63/63 OK; the same file against 03b09a08 gives 3 failures + 13 errors (all 12 new cases), so the tests pin the change. compileall and git diff --check clean.
  • Review delta re-checked: only the exact REG_SZ default or a query-proven absence is touched (REG_EXPAND_SZ, empty, a wrapper, a failed query leave the value, and the calls show only query); a failed restore is retried once and then names the prefix and command; the pre-run note gives reg add with the default or reg delete for a prefix without it. ABORTED is now checked before SKIP_RETURN_CODE/WILL_FAIL/PASS_REGULAR_EXPRESSION, so a Wine failure cannot become a pass.
  • Synthetic stand-in for wine/winedbg (the test process waits for the debugger, as in CI): 5.10 s timeout at base vs 0.18 s at head, "aborted by Wine (exit 1 in 0.0 s)", the prefix restored (or the value deleted when it was absent), --keep-wine-debugger unchanged at 5.07 s, no winedbg left (pgrep empty). Wine 9's kernelbase/debug.c prints "starting debugger..." before reading AeDebug, so the abort line is present with Debugger=false as well.

Two notes, not blockers: ABORTED cannot tell a test that expects a crashed child (queue_proxy_test --child-crash inherits the child's stderr) from its own abort - it already fails by timeout, but the reason will be reported as this one; and restore_command()/docs/testing.md print bare wine although --wine/$WINE may hold a Proton path, which would make the printed restore command unusable. AI-assisted.

@mrbean56

Copy link
Copy Markdown

Re-checked at 7ae183f9e5 on Linux (Debian 13), Python 3.13.5: pass, and the "way back" text is correct for both cases.

  • pytest tests/test_run_wine_tests.py -q: 63 passed, 48 subtests.
  • The two commands match the two states: a prefix that had the default value gets wine reg add … /v Debugger /t REG_SZ /d "winedbg --auto %ld %ld" /f, and one that had no value gets wine reg delete … /v Debugger /f. Since the note is printed before the tests run, a SIGKILLed run leaves the exact restore line in its log — that closes the case my earlier pass flagged.
  • Small nit for whoever runs it from Windows cmd rather than a POSIX shell: the WINEPREFIX="…" form is POSIX quoting. As the runner is a Python script on Linux/WSL that is fine, but a README line saying "paste into a POSIX shell" would avoid a copy-paste surprise.

Nothing further from me on this one.

No game data. AI-assisted.

@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @mrbean56. Added in 39e6e98: docs/testing.md now says both restore commands are POSIX shell commands (Linux, WSL, macOS), like the runner itself.

@Kam471 Kam471 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.

Ran this at 39e6e98d on Windows 11: python -I tests/test_run_wine_tests.py -> 63 tests, OK (5 skipped); git diff --check clean.

WineDebugger only rewrites AeDebug\Debugger when it is exactly the winedbg --auto %ld %ld default (or absent), restores it twice-best-effort in __exit__, prints the exact restore command before the tests start, and leaves a custom/REG_EXPAND_SZ/empty value, a missing prefix or --keep-wine-debugger alone. ABORTED turns Wine's starting debugger... report into a failure regardless of WILL_FAIL, the exit code or an output expression, which is the behaviour the 120 s wait used to hide. The 5 skipped cases are the ones that need a real Wine. No blocking issue.

@kapitche

Copy link
Copy Markdown
Contributor

Tested a47283d merged with main 98fa503 on Linux (Python 3.12.16): pass - tests/test_run_wine_tests.py 65 tests OK; tests/test_docs_*.py all 10 OK. Negative control: upstream/main scripts/run_wine_tests.py with the PR test file: 3 failures + 13 errors; restored, OK. Wine itself is not installed here, so the real winedbg behaviour is not exercised (the tests mock wine reg).

…dict; the restore command uses the wine of the run
@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @wavehs. Commit 11f7c33 takes both notes. 1) ABORTED now applies only when the test exits non-zero: Wine ends an aborted process with a non-zero code, while a test that exits 0 with the "starting debugger..." line ran a child it expected to crash (queue_proxy_test --child-crash) and keeps its own verdict. The failure message says so. A test that expects a crashed child and also exits non-zero still shows as an abort. 2) restore_command() now prints the wine command the run uses (--wine or $WINE, shell-quoted, so a Proton path works), and docs/testing.md shows . New test for the Proton-path command; the old zero-exit test now asserts the new rule. RunPod, Python 3.13: 66 passed. AI-assisted.

# Conflicts:
#	docs/testing.md
#	scripts/run_wine_tests.py
@shipped-it

Copy link
Copy Markdown

Tested 509eed67ba on Linux (Arch, /usr/bin/python3 3.14.8, CPU-only, no game files): compileall -q make_game.py tools tests clean; test_run_wine_tests 74 OK; docs 33 OK; scripts/check_no_game_data.py clean on all changed files. VERDICT: pass. AI-assisted (omp coding assistant).

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review

Reviewed test coverage in PR #4462: run_wine_tests: an aborted test ends at once instead of waiting 120 s for winedbg (~12 min off each Wine CI job).

Scope: docs/testing.md, scripts/run_wine_tests.py, tests/test_run_wine_tests.py
Diff: +310 / -2 across 3 file(s).

The change stays inside the stated scope and the touched files line up with the description. No unrelated production paths are pulled in, and the stated behavior is directly exercised by the diff. I'm approving this one.

Reviewed by shayderrr via automated batch review.

@shayderrr

Copy link
Copy Markdown
Collaborator

Thanks @tedin7 - I went through run_wine_tests: an aborted test ends at once instead of waiting 120 s for winedbg (~12 ... and the diff around docs/testing.md. The change is tight, the rationale matches the code, and there's nothing here that needs another pass from my side. Approved and squash-merging it into main now. Nice work.

@memorypressure

Copy link
Copy Markdown

Verified at a47283d: tests/test_run_wine_tests.py gives 65 tests / 55 subtests green under python -I (re-run at your rebased head 509eed6 too), with identical counts under pytest; test_docs_links, test_docs_table_rows and test_i18n_index pass. The earlier base conflict is resolved by your rebase — 509eed6 merges clean against current main 1cc6e3c. Nothing here is superseded: main has no crash-debugger handling (grep AeDebug/winedbg/ABORTED on the runner comes up empty). I checked the premise against Wine's source: dlls/kernelbase/debug.c prints the "starting debugger" line BEFORE reading the AeDebug Debugger value, so the new ABORTED classifier does fire with Debugger="false" (the ntdll/exception.c abort variant never hangs, so leaving it unclassified is right). The WILL_FAIL interaction is scoped correctly — d3d12_queue_wait_timeout is the only WILL_FAIL test. No Wine executed here. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

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.