startup: NOP a soft-assert site after the first continue #2485

Merged
lambirou merged 1 commit from upstream-pr/2493 into main 2026-11-25 22:47:20 +00:00
lambirou commented 2026-11-25 18:33:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T18:33:31Z.


Change

--continue-asserts N steps over main-image INT3s one debug event at a time. A retail startup image can hit one site tens of thousands of times: a mapping loop traps once per 8 KiB chunk, so one 158 MiB mapping costs about 19,000 events. At roughly 0.8 ms per event this adds about 16 s and exhausts any fixed budget; raising N only postpones the stop.

With X2W_NOP_SOFT_ASSERTS=1, after the debugger continues a main-image INT3 for the first time it writes 0x90 over the cc. DBG_CONTINUE already bypasses the image's handler, so the guest sees the same continuation, but later executions of that site no longer raise an exception. Sites listed in X2W_STOP_AT never take this branch. The switch is off by default and documented in docs/startup-runtime.md.

Refs #870.

Verification

Commit b7af7b75, rebased on dbab5435, on Windows 11 build 26300.9974 with MSVC 19.44.35207.

On the pre-rebase commit, the release preset check passed:

. .\tools\dev.ps1
cmake --build --preset release --target startup_debug_probe startup_debug_calls
ctest --preset release --no-tests=error -R '^startup_debug$' -V

Result: 1/1 Test #522: startup_debug ... Passed 34.39 sec, 100% tests passed, 0 tests failed out of 1.

After the rebase, the same two targets were rebuilt directly with cl and the check was run again:

cl /nologo /std:c++17 /EHsc /O2 tests\startup_debug_probe.cpp /Fe:out\verify\startup_debug_probe.exe
cl /nologo /std:c++17 /EHsc /O2 /LD tests\startup_debug_calls.cpp /Fe:out\verify\startup_debug_calls.dll
python -B tests\startup_debug_check.py out\verify\startup_debug_probe.exe out\verify\startup_debug_calls.dll

Result: startup_debug: PASS (...; 9 controls).

tests/startup_debug_probe.cpp gains a third, out-of-line trap site and a loop driven by STARTUP_DEBUG_PROBE_ASSERTS (default 0, so the existing cases are unchanged). tests/startup_debug_check.py adds:

  • with X2W_NOP_SOFT_ASSERTS=1, the probe completes its 4 repetitions and exits 0; events.txt holds exactly one breakpoint per site (3) and the summary names the patched repeated site;
  • without the switch, the same run logs all 4 hits at the repeated site (control).

Evidence and follow-up

The fixture is source-built (tests/startup_debug_probe.cpp) and needs no local data. It measures the debugger's event handling only; it does not establish how often a particular image traps.

Limits: a site later armed as a hook is not covered, and X2W_STOP_AT behavior is unchanged. A follow-up could assert that a patched site still serves a later hook.

This change was AI-assisted.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6611125124 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2493). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T18:33:31Z. --- ## Change `--continue-asserts N` steps over main-image INT3s one debug event at a time. A retail startup image can hit one site tens of thousands of times: a mapping loop traps once per 8 KiB chunk, so one 158 MiB mapping costs about 19,000 events. At roughly 0.8 ms per event this adds about 16 s and exhausts any fixed budget; raising `N` only postpones the stop. With `X2W_NOP_SOFT_ASSERTS=1`, after the debugger continues a main-image INT3 for the first time it writes `0x90` over the `cc`. `DBG_CONTINUE` already bypasses the image's handler, so the guest sees the same continuation, but later executions of that site no longer raise an exception. Sites listed in `X2W_STOP_AT` never take this branch. The switch is off by default and documented in `docs/startup-runtime.md`. Refs #870. ## Verification Commit `b7af7b75`, rebased on `dbab5435`, on Windows 11 build 26300.9974 with MSVC 19.44.35207. On the pre-rebase commit, the `release` preset check passed: ``` . .\tools\dev.ps1 cmake --build --preset release --target startup_debug_probe startup_debug_calls ctest --preset release --no-tests=error -R '^startup_debug$' -V ``` Result: `1/1 Test #522: startup_debug ... Passed 34.39 sec`, `100% tests passed, 0 tests failed out of 1`. After the rebase, the same two targets were rebuilt directly with `cl` and the check was run again: ``` cl /nologo /std:c++17 /EHsc /O2 tests\startup_debug_probe.cpp /Fe:out\verify\startup_debug_probe.exe cl /nologo /std:c++17 /EHsc /O2 /LD tests\startup_debug_calls.cpp /Fe:out\verify\startup_debug_calls.dll python -B tests\startup_debug_check.py out\verify\startup_debug_probe.exe out\verify\startup_debug_calls.dll ``` Result: `startup_debug: PASS (...; 9 controls)`. `tests/startup_debug_probe.cpp` gains a third, out-of-line trap site and a loop driven by `STARTUP_DEBUG_PROBE_ASSERTS` (default 0, so the existing cases are unchanged). `tests/startup_debug_check.py` adds: - with `X2W_NOP_SOFT_ASSERTS=1`, the probe completes its 4 repetitions and exits 0; `events.txt` holds exactly one breakpoint per site (3) and the summary names the patched repeated site; - without the switch, the same run logs all 4 hits at the repeated site (control). ## Evidence and follow-up The fixture is source-built (`tests/startup_debug_probe.cpp`) and needs no local data. It measures the debugger's event handling only; it does not establish how often a particular image traps. Limits: a site later armed as a hook is not covered, and `X2W_STOP_AT` behavior is unchanged. A follow-up could assert that a patched site still serves a later hook. This change was AI-assisted. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
tedin7 commented 2026-11-25 19:04:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T18:56:43Z.

Review: COMMENTED


Review of head b7af7b75 (code and fixture only).

What I checked:

  • tools/startup/debug_launch.py: the patch runs only inside the existing --continue-asserts branch, so X2W_STOP_AT sites are skipped as stated. It checks that the byte is cc before writing 0x90. write() already restores page protection and calls FlushInstructionCache. The ex_addr key matches how asserts_seen is keyed. Default is off.
  • Test: the new probe loop plus nop-repeat (3 breakpoints logged, the repeated site named in the summary) and nop-repeat-control (all 4 hits logged without the switch) guard the behavior and have a negative control.
  • Doc row in docs/startup-runtime.md matches the code.

Known limits (non-blocking): a site later armed as a hook is not covered, as the PR says. After the NOP, asserts_seen stops counting that site, so the --continue-asserts N budget no longer measures real hits at it. Worth one sentence in the doc.

Commands run locally (Linux): git diff --check origin/main...HEAD (clean), python3 tests/docs_links_check.py (pass), python3 tests/bidi_controls_check.py (pass), py_compile of debug_launch.py (ok). startup_debug_check.py needs the Windows debugger APIs, so I did not run it or mutate it here. A Win2025 run is not part of this review.

Merge: the PR is motivated by what a retail startup image does (about 19,000 traps in one mapping loop). We cannot verify that on the game, so the merge is left to MasterDomino or @R0Y00, who can.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6063272933 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2493#pullrequestreview-6063272933). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T18:56:43Z. **Review:** COMMENTED --- Review of head b7af7b75 (code and fixture only). What I checked: - `tools/startup/debug_launch.py`: the patch runs only inside the existing `--continue-asserts` branch, so `X2W_STOP_AT` sites are skipped as stated. It checks that the byte is `cc` before writing `0x90`. `write()` already restores page protection and calls `FlushInstructionCache`. The `ex_addr` key matches how `asserts_seen` is keyed. Default is off. - Test: the new probe loop plus `nop-repeat` (3 breakpoints logged, the repeated site named in the summary) and `nop-repeat-control` (all 4 hits logged without the switch) guard the behavior and have a negative control. - Doc row in `docs/startup-runtime.md` matches the code. Known limits (non-blocking): a site later armed as a hook is not covered, as the PR says. After the NOP, `asserts_seen` stops counting that site, so the `--continue-asserts N` budget no longer measures real hits at it. Worth one sentence in the doc. Commands run locally (Linux): `git diff --check origin/main...HEAD` (clean), `python3 tests/docs_links_check.py` (pass), `python3 tests/bidi_controls_check.py` (pass), `py_compile` of `debug_launch.py` (ok). `startup_debug_check.py` needs the Windows debugger APIs, so I did not run it or mutate it here. A Win2025 run is not part of this review. Merge: the PR is motivated by what a retail startup image does (about 19,000 traps in one mapping loop). We cannot verify that on the game, so the merge is left to MasterDomino or @R0Y00, who can. AI-assisted; commands listed were executed locally.
ChazY11 commented 2026-11-25 19:04:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-25T19:02:41Z.


Reading-only review — I cannot build here (the full CMake build stops in DXC with
unable to create compilation: AccessDenied on unrelated targets), so this is not a run result.

The test has the shape that makes it worth having

The pair is decisive, and it is a pair rather than a single run:

out, logdir = run(probe, work, "nop-repeat", {"STARTUP_DEBUG_PROBE_ASSERTS": str(repeats),
                                              "X2W_NOP_SOFT_ASSERTS": "1"})
hits = breakpoint_sites(logdir, image)
repeated = [site for site in hits if site not in sites]
assert len(hits) == 3 and len(repeated) == 1
...
# Control: without the switch the same run logs every hit at the repeated site.
out, logdir = run(probe, work, "nop-repeat-control", {"STARTUP_DEBUG_PROBE_ASSERTS": str(repeats)})
assert breakpoint_sites(logdir, image).count(repeated[0]) == repeats

Without the switch the same site is logged repeats times; with it, once. stdout.txt asserts
debug-probe repeated 4 in both runs, so the difference cannot be explained by the probe skipping iterations
— that is the assertion that makes the four-to-one difference mean "the INT3 was patched" rather than "the loop
did not run". Good.

Two details in the launcher that I would keep as they are, and one I would note

if nop_soft_asserts and ex_addr not in nop_sites and read(ex_addr, 1) == b"\xcc" and wr(...):
  • The read(ex_addr, 1) == b"\xcc" guard is the right one: it patches only a byte that is still an INT3, so a
    site where the title's own first-chance handler already restored the instruction is left alone. Without it the
    first continue would corrupt code the handler had fixed.
  • ex_addr not in nop_sites makes the patch idempotent per address, so the log line lists each site once rather
    than once per hit — which is what the fixture asserts (f"{image}+{repeated[0]:#x}" in nop_line).
  • Worth a sentence in the flag's documentation: the patch is permanent for the life of the process. That is
    exactly what makes a once-per-chunk trap fast, and exactly what would hide a second, different assert that
    later reuses the same address (a re-JIT'd or reloaded mapping). If the launcher only ever patches main-image
    RVAs, say so; the doc row at docs/startup-runtime.md:1287 describes the effect but not the scope.

The one assertion I would tighten

len(hits) == 3 hard-codes "the two baseline sites plus the one repeated site". If the probe ever grows another
breakpoint, this line keeps passing while describing a different scenario, and the failure would surface as a
confusing 3 != 4 somewhere else. len(hits) == len(sites) + 1 and len(repeated) == 1 says the same thing
relative to the baseline the fixture already measured.

Related: repeated = [site for site in hits if site not in sites] identifies the repeated site by exclusion. A
third distinct site would be silently folded into repeated, and only the later repeated[0] control would notice.
Asserting len(repeated) == 1 already covers it, so this is a readability point, not a hole.

Docs

docs/startup-runtime.md:1287 gains the row and the fixture docstring names the switch (line 6), so the variable is
documented in both places the others are. Nothing else in the tree enumerates X2W_* names, so there is no list to
sync.

AI-assisted; reviewed by reading only, no build or run on this host.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171744560 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2493#issuecomment-7171744560). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-25T19:02:41Z. --- Reading-only review — I cannot build here (the full CMake build stops in DXC with `unable to create compilation: AccessDenied` on unrelated targets), so this is not a run result. ## The test has the shape that makes it worth having The pair is decisive, and it is a pair rather than a single run: ```python out, logdir = run(probe, work, "nop-repeat", {"STARTUP_DEBUG_PROBE_ASSERTS": str(repeats), "X2W_NOP_SOFT_ASSERTS": "1"}) hits = breakpoint_sites(logdir, image) repeated = [site for site in hits if site not in sites] assert len(hits) == 3 and len(repeated) == 1 ... # Control: without the switch the same run logs every hit at the repeated site. out, logdir = run(probe, work, "nop-repeat-control", {"STARTUP_DEBUG_PROBE_ASSERTS": str(repeats)}) assert breakpoint_sites(logdir, image).count(repeated[0]) == repeats ``` Without the switch the same site is logged `repeats` times; with it, once. `stdout.txt` asserts `debug-probe repeated 4` in **both** runs, so the difference cannot be explained by the probe skipping iterations — that is the assertion that makes the four-to-one difference mean "the INT3 was patched" rather than "the loop did not run". Good. ## Two details in the launcher that I would keep as they are, and one I would note ```python if nop_soft_asserts and ex_addr not in nop_sites and read(ex_addr, 1) == b"\xcc" and wr(...): ``` - The `read(ex_addr, 1) == b"\xcc"` guard is the right one: it patches only a byte that is *still* an INT3, so a site where the title's own first-chance handler already restored the instruction is left alone. Without it the first continue would corrupt code the handler had fixed. - `ex_addr not in nop_sites` makes the patch idempotent per address, so the log line lists each site once rather than once per hit — which is what the fixture asserts (`f"{image}+{repeated[0]:#x}" in nop_line`). - **Worth a sentence in the flag's documentation**: the patch is permanent for the life of the process. That is exactly what makes a once-per-chunk trap fast, and exactly what would hide a *second*, different assert that later reuses the same address (a re-JIT'd or reloaded mapping). If the launcher only ever patches main-image RVAs, say so; the doc row at `docs/startup-runtime.md:1287` describes the effect but not the scope. ## The one assertion I would tighten `len(hits) == 3` hard-codes "the two baseline sites plus the one repeated site". If the probe ever grows another breakpoint, this line keeps passing while describing a different scenario, and the failure would surface as a confusing `3 != 4` somewhere else. `len(hits) == len(sites) + 1 and len(repeated) == 1` says the same thing relative to the baseline the fixture already measured. Related: `repeated = [site for site in hits if site not in sites]` identifies the repeated site by *exclusion*. A third distinct site would be silently folded into `repeated`, and only the later `repeated[0]` control would notice. Asserting `len(repeated) == 1` already covers it, so this is a readability point, not a hole. ## Docs `docs/startup-runtime.md:1287` gains the row and the fixture docstring names the switch (line 6), so the variable is documented in both places the others are. Nothing else in the tree enumerates `X2W_*` names, so there is no list to sync. AI-assisted; reviewed by reading only, no build or run on this host.
tedin7 commented 2026-11-25 22:01:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:56:41Z.

Review: COMMENTED


Review of head 0f664e9c (rebased onto current main; the earlier review by @tedin7 was on b7af7b75, same change). Code and fixture review only.

What I checked

  • tools/startup/debug_launch.py: the NOP write runs only in the continue-assert branch, after the X2W_STOP_AT exclusion, so listed sites never get patched. write() already handles protection and FlushInstructionCache. The cc check before the write avoids patching a byte another thread already changed. Default is off.
  • tests/startup_debug_probe.cpp / tests/startup_debug_check.py: the new case is a pair. With the switch: 4 repeats, one logged breakpoint per site, and the summary names the patched site. Without it: all 4 hits are logged. The control would fail if the NOP were not applied or if the switch were ignored.
  • Docs line added in docs/startup-runtime.md.

Commands run on Linux (worktree on the exact head)

  • git diff --check origin/main...HEAD: clean
  • python3 tests/docs_links_check.py: passed (19 files, 493 links)
  • python3 tests/bidi_controls_check.py: passed
  • python3 -I -m py_compile tools/startup/debug_launch.py tests/startup_debug_check.py: ok

Not verified here

  • startup_debug needs Windows debug events; I did not run it, and CI was still pending when I looked. The Windows result in the PR body is the author's, from the pre-rebase commit plus a direct cl build after the rebase.
  • The stated motivation (a retail startup image trapping tens of thousands of times at one site) can only be confirmed on the game. That check is for the merger, so I am leaving the merge to MasterDomino or @R0Y00.

No blocking findings in the code. Known limit, already stated by the author: a site armed later as a hook is not covered.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6065537209 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2493#pullrequestreview-6065537209). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:56:41Z. **Review:** COMMENTED --- Review of head `0f664e9c` (rebased onto current main; the earlier review by @tedin7 was on `b7af7b75`, same change). Code and fixture review only. What I checked - `tools/startup/debug_launch.py`: the NOP write runs only in the continue-assert branch, after the `X2W_STOP_AT` exclusion, so listed sites never get patched. `write()` already handles protection and `FlushInstructionCache`. The `cc` check before the write avoids patching a byte another thread already changed. Default is off. - `tests/startup_debug_probe.cpp` / `tests/startup_debug_check.py`: the new case is a pair. With the switch: 4 repeats, one logged breakpoint per site, and the summary names the patched site. Without it: all 4 hits are logged. The control would fail if the NOP were not applied or if the switch were ignored. - Docs line added in `docs/startup-runtime.md`. Commands run on Linux (worktree on the exact head) - `git diff --check origin/main...HEAD`: clean - `python3 tests/docs_links_check.py`: passed (19 files, 493 links) - `python3 tests/bidi_controls_check.py`: passed - `python3 -I -m py_compile tools/startup/debug_launch.py tests/startup_debug_check.py`: ok Not verified here - `startup_debug` needs Windows debug events; I did not run it, and CI was still pending when I looked. The Windows result in the PR body is the author's, from the pre-rebase commit plus a direct `cl` build after the rebase. - The stated motivation (a retail startup image trapping tens of thousands of times at one site) can only be confirmed on the game. That check is for the merger, so I am leaving the merge to MasterDomino or @R0Y00. No blocking findings in the code. Known limit, already stated by the author: a site armed later as a hook is not covered. AI-assisted; commands listed were executed locally.
lambirou commented 2026-11-25 22:02:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T21:55:12Z.


Rebased onto current main (8f045aee) and updated the head to 0f664e9c.

Changes since b7af7b75:

  • tests/startup_debug_check.py: the repeated-site assertion is now len(hits) == len(sites) + 1 with len(repeated) == 1, instead of hard-coding 3.
  • docs/startup-runtime.md: the switch row now states that the patch lasts for the process lifetime, only targets main-image RVAs, never patches X2W_STOP_AT sites, and that a patched site stops incrementing asserts_seen, so --continue-asserts N no longer measures real hits there.
  • No change to the default: X2W_NOP_SOFT_ASSERTS stays off unless set to 1.

Verification on 0f664e9c (same tree as d10327d8):

ctest --preset dev --no-tests=error -R '^startup_debug$' -V
1/1 Test #955: startup_debug ... Passed 62.13 sec
startup_debug: PASS (... soft asserts NOP'd after the first hit ...; 9 controls)

python -B tests/docs_links_check.py passes (19 files, 493 links), tests/bidi_controls_check.py passes, and git diff --check is clean.

The Windows CI checks will rerun on the new head. Not covered: the retail mapping-loop frequency remains a local observation; this fixture only proves the debugger patches a repeated site once and leaves the unswitched control logging every hit.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175707271 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2493#issuecomment-7175707271). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T21:55:12Z. --- Rebased onto current `main` (`8f045aee`) and updated the head to `0f664e9c`. Changes since `b7af7b75`: - `tests/startup_debug_check.py`: the repeated-site assertion is now `len(hits) == len(sites) + 1` with `len(repeated) == 1`, instead of hard-coding 3. - `docs/startup-runtime.md`: the switch row now states that the patch lasts for the process lifetime, only targets main-image RVAs, never patches `X2W_STOP_AT` sites, and that a patched site stops incrementing `asserts_seen`, so `--continue-asserts N` no longer measures real hits there. - No change to the default: `X2W_NOP_SOFT_ASSERTS` stays off unless set to `1`. Verification on `0f664e9c` (same tree as `d10327d8`): ```text ctest --preset dev --no-tests=error -R '^startup_debug$' -V 1/1 Test #955: startup_debug ... Passed 62.13 sec startup_debug: PASS (... soft asserts NOP'd after the first hit ...; 9 controls) ``` `python -B tests/docs_links_check.py` passes (19 files, 493 links), `tests/bidi_controls_check.py` passes, and `git diff --check` is clean. The Windows CI checks will rerun on the new head. Not covered: the retail mapping-loop frequency remains a local observation; this fixture only proves the debugger patches a repeated site once and leaves the unswitched control logging every hit.
upstream-sync closed this pull request 2026-11-25 23:01:47 +00:00
lambirou commented 2026-11-25 23:02:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T22:36:17Z.


Rebased onto current main (bee07b90) after #2488 split startup_debug into parallel CTest groups, and updated the head to face82ab.

The conflict was in tests/startup_debug_check.py. The NOP case is now inside the core group, after the shared baseline sites, and uses the new breakpoint_sites helper. The log and hooks groups are unchanged.

Verification on face82ab:

ctest --preset dev --no-tests=error -R '^startup_debug' -V
startup_debug[core]: PASS ... soft asserts NOP'd after the first hit ... 27.55 sec
startup_debug[log]: PASS 18.91 sec
startup_debug[hooks]: PASS 18.96 sec
100% tests passed, 0 tests failed out of 3

python -B tests/docs_links_check.py passes (19 files, 498 links), tests/bidi_controls_check.py passes (1828 files), and git diff --check is clean.

The Windows and Linux CI jobs will rerun on face82ab. The retail mapping-loop frequency remains a local observation; the fixture covers the patch-once behavior and the unswitched control.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176567731 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2493#issuecomment-7176567731). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T22:36:17Z. --- Rebased onto current `main` (`bee07b90`) after #2488 split `startup_debug` into parallel CTest groups, and updated the head to `face82ab`. The conflict was in `tests/startup_debug_check.py`. The NOP case is now inside the `core` group, after the shared baseline sites, and uses the new `breakpoint_sites` helper. The `log` and `hooks` groups are unchanged. Verification on `face82ab`: ```text ctest --preset dev --no-tests=error -R '^startup_debug' -V startup_debug[core]: PASS ... soft asserts NOP'd after the first hit ... 27.55 sec startup_debug[log]: PASS 18.91 sec startup_debug[hooks]: PASS 18.96 sec 100% tests passed, 0 tests failed out of 3 ``` `python -B tests/docs_links_check.py` passes (19 files, 498 links), `tests/bidi_controls_check.py` passes (1828 files), and `git diff --check` is clean. The Windows and Linux CI jobs will rerun on `face82ab`. The retail mapping-loop frequency remains a local observation; the fixture covers the patch-once behavior and the unswitched control.
lambirou commented 2026-11-25 23:02:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-25T22:36:20Z.


Rebased onto current main (bee07b90) after #2488 split startup_debug into parallel CTest groups, and updated the head to face82ab.

The conflict was in tests/startup_debug_check.py. The NOP case is now inside the core group, after the shared baseline sites, and uses the new breakpoint_sites helper. The log and hooks groups are unchanged.

Verification on face82ab:

ctest --preset dev --no-tests=error -R '^startup_debug' -V
startup_debug[core]: PASS ... soft asserts NOP'd after the first hit ... 27.55 sec
startup_debug[log]: PASS 18.91 sec
startup_debug[hooks]: PASS 18.96 sec
100% tests passed, 0 tests failed out of 3

python -B tests/docs_links_check.py passes (19 files, 498 links), tests/bidi_controls_check.py passes (1828 files), and git diff --check is clean.

The Windows and Linux CI jobs will rerun on face82ab. The retail mapping-loop frequency remains a local observation; the fixture covers the patch-once behavior and the unswitched control.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176568681 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2493#issuecomment-7176568681). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-25T22:36:20Z. --- Rebased onto current `main` (`bee07b90`) after #2488 split `startup_debug` into parallel CTest groups, and updated the head to `face82ab`. The conflict was in `tests/startup_debug_check.py`. The NOP case is now inside the `core` group, after the shared baseline sites, and uses the new `breakpoint_sites` helper. The `log` and `hooks` groups are unchanged. Verification on `face82ab`: ```text ctest --preset dev --no-tests=error -R '^startup_debug' -V startup_debug[core]: PASS ... soft asserts NOP'd after the first hit ... 27.55 sec startup_debug[log]: PASS 18.91 sec startup_debug[hooks]: PASS 18.96 sec 100% tests passed, 0 tests failed out of 3 ``` `python -B tests/docs_links_check.py` passes (19 files, 498 links), `tests/bidi_controls_check.py` passes (1828 files), and `git diff --check` is clean. The Windows and Linux CI jobs will rerun on `face82ab`. The retail mapping-loop frequency remains a local observation; the fixture covers the patch-once behavior and the unswitched control.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2485
No description provided.