tooling: test remaining GDK export regressions #3347

Manually merged
github merged 8 commits from github-bot/gh-3345 into gh-pr/3345/base 2026-11-28 19:58:43 +00:00 AGit
Owner

@⁠romn4rch on GitHub · 2026-11-28 11:22 UTC · original
romn4rch:copilot/pr-3284-review-a5f70cea → main · +44 −2 · 1 files · 8 commits · merged 2026-11-28 19:54 UTC

Change

Follow-up to #3286, this test-only change adds regression assertions for existing GDK export tooling: stop parsing at Summary and the next Dump of file section, normalize .lib.txt fallback module names, verify the capture SHA-256 against its bytes, and keep partial captures unmeasured. No SDK inventory or measured coverage data changed.

Verification

  • python -B tests/gdk_exports_check.py — passed.
  • python -B tests/docs_links_check.py — passed (155 Markdown files, 674 links).
  • git diff --check origin/main...HEAD — passed.

No build or GPU checks are relevant to this test-only change.

Evidence and follow-up

The fixtures use synthetic dumpbin text and .def files generated by the test; no GDK files or third-party samples are included. A malformed export row is the failure case for the partial-capture assertion. These checks cover parser and report behavior only; they do not measure real GDK coverage. No capability or build requirement changed, so no README or experiment documentation update was needed.

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.

This change was AI-assisted.

**@⁠romn4rch** on GitHub · 2026-11-28 11:22 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3345) `romn4rch:copilot/pr-3284-review-a5f70cea` → `main` · +44 −2 · 1 files · 8 commits · merged 2026-11-28 19:54 UTC ## Change Follow-up to [#3286](https://git.gtahub.st/github/R0Y00--Xbox2Windows/pulls/3286), this test-only change adds regression assertions for existing GDK export tooling: stop parsing at `Summary` and the next `Dump of file` section, normalize `.lib.txt` fallback module names, verify the capture SHA-256 against its bytes, and keep partial captures unmeasured. No SDK inventory or measured coverage data changed. ## Verification - `python -B tests/gdk_exports_check.py` — passed. - `python -B tests/docs_links_check.py` — passed (155 Markdown files, 674 links). - `git diff --check origin/main...HEAD` — passed. No build or GPU checks are relevant to this test-only change. ## Evidence and follow-up The fixtures use synthetic dumpbin text and `.def` files generated by the test; no GDK files or third-party samples are included. A malformed export row is the failure case for the partial-capture assertion. These checks cover parser and report behavior only; they do not measure real GDK coverage. No capability or build requirement changed, so no README or experiment documentation update was needed. ## 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. This change was AI-assisted.
Read .def ordinals from the @N token without cutting decorated names. Key inventory modules by their module field and strip .lib/.dll so LIB and DLL captures merge. Mark absent, empty and partially parsed modules as unmeasured, report them in the matrix, and fail --fail-on-missing on them. Add LIB+DLL, ordinal, decorated-name and unmeasured fixtures. Document that the dumpbin SHA-256 identifies the captured text.
Add --sdk to parse-dumpbin and scan-pe instead of hardcoding 261000 in three places, and assert the value in the inventory fixture.
Add GameInput (1/1 covered) to DEFAULT_DEFS. Document why xgameruntime is excluded: its .def is fixture-only and its thunk exports are generated, so a name comparison would report every GDK runtime export as missing.
Co-authored-by: Copilot App <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 11:27:26 +00:00
github-bot changed title from Copilot/pr 3284 review a5f70cea to tooling: test remaining GDK export regressions 2026-11-28 11:38:10 +00:00
github-bot changed target branch from main to gh-pr/3345/base 2026-11-28 19:58:40 +00:00
github manually merged commit c09f7a0f38 into gh-pr/3345/base 2026-11-28 19:58:42 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-11-28 19:54 UTC · original · approved these changes

Review of c09f7a0f.

  • Test-only: the four behaviours it checks already exist on main. It is run from tests/checks/python-linux/gdk_exports.txt, not from ctest.
  • Run here in Windows Sandbox, network off, vGPU, Windows 11 build 26300 host, release build of main f2972840 with this PR and 17 other open PRs merged locally: python -I -B tests/gdk_exports_check.py exits 0.

Approve.

**@⁠Leyukaka** on GitHub · 2026-11-28 19:54 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3345#pullrequestreview-6099842993) · **approved these changes** Review of `c09f7a0f`. - Test-only: the four behaviours it checks already exist on `main`. It is run from `tests/checks/python-linux/gdk_exports.txt`, not from ctest. - Run here in Windows Sandbox, network off, vGPU, Windows 11 build 26300 host, release build of `main` `f2972840` with this PR and 17 other open PRs merged locally: `python -I -B tests/gdk_exports_check.py` exits 0. Approve.
This discussion has been locked. Commenting is limited to contributors.
No description provided.