ci: link synchronization for the XMA2 ABI smoke test (CI-XMA2-FFI-LINKAGE) #996

Manually merged
github merged 1 commit from gh-pr/996/head into gh-pr/996/base 2026-11-26 09:32:30 +00:00
Owner

@⁠5headsmartbtw on GitHub · 2026-11-24 16:40 UTC · original
5headsmartbtw:fix/ci-xma2-ffi-linkage → main · +4 −2 · 2 files · 1 commits · merged 2026-11-24 20:38 UTC

Claimed in the coordination issue as: CI-XMA2-FFI-LINKAGE

What and why

Link synchronization.lib when MSVC builds the standalone synthetic XMA2 C++ ABI smoke test. Rust's Windows standard library references WaitOnAddress, WakeByAddressSingle, and WakeByAddressAll, which the current cl command leaves unresolved. Document the Windows import library in the decoder README.

Adapted from Danila Kupreenko's LeonidaReforge/Leonida#23. The workflow and its README are the scope of this PR. Related Continued #877 covers the runtime CMake targets.

Tested

  • Baseline on Continued 3ed8e50b7: Rust formatting, all 10 Rust tests, and the Rust static library build passed. The standalone smoke-test link failed with three LNK2019 unresolved synchronization imports and LNK1120, matching the upstream Windows CI failure.
  • With the link fix: cargo fmt -- --check, cargo test --locked (10 passed), cargo build --locked, and the synthetic C++ ABI smoke test all passed on Windows x64 with Rust 1.100.0, MSVC 14.44.35207 and Windows SDK 10.0.26100.0.
  • git diff --check and scripts/check_no_game_data.py passed on the changed files.

GPUs tested: n/a (CPU-only synthetic tests).

AI-assisted: yes, Codex.

Checklist

  • Based on main.
  • One topic.
  • No game data, keys or decryption.
**@⁠5headsmartbtw** on GitHub · 2026-11-24 16:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/996) `5headsmartbtw:fix/ci-xma2-ffi-linkage` → `main` · +4 −2 · 2 files · 1 commits · merged 2026-11-24 20:38 UTC Claimed in the coordination issue as: [CI-XMA2-FFI-LINKAGE](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why Link `synchronization.lib` when MSVC builds the standalone synthetic XMA2 C++ ABI smoke test. Rust's Windows standard library references `WaitOnAddress`, `WakeByAddressSingle`, and `WakeByAddressAll`, which the current `cl` command leaves unresolved. Document the Windows import library in the decoder README. Adapted from Danila Kupreenko's [LeonidaReforge/Leonida#23](https://github.com/LeonidaReforge/Leonida/pull/23). The workflow and its README are the scope of this PR. Related Continued [#877](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/877) covers the runtime CMake targets. ### Tested - Baseline on Continued `3ed8e50b7`: Rust formatting, all 10 Rust tests, and the Rust static library build passed. The standalone smoke-test link failed with three `LNK2019` unresolved synchronization imports and `LNK1120`, matching the [upstream Windows CI failure](https://github.com/ubiquitarianism/leonida/actions/runs/45406612256). - With the link fix: `cargo fmt -- --check`, `cargo test --locked` (10 passed), `cargo build --locked`, and the synthetic C++ ABI smoke test all passed on Windows x64 with Rust 1.100.0, MSVC 14.44.35207 and Windows SDK 10.0.26100.0. - `git diff --check` and `scripts/check_no_game_data.py` passed on the changed files. GPUs tested: n/a (CPU-only synthetic tests). AI-assisted: yes, Codex. ### Checklist - [x] Based on `main`. - [x] One topic. - [x] No game data, keys or decryption.
Adapted from LeonidaReforge/Leonida#23 (e932888842afccb38695cab4ce6c4ff6ca8b0dd7). AI-assisted (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:32:29 +00:00
github manually merged commit 9f087c96b9 into gh-pr/996/base 2026-11-26 09:32:30 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 20:38 UTC · original

Merged on local results, since CI has been queued for hours. The windows-ffi job was reproduced on Linux with clang-cl/lld-link 23.1.5, the xwin MSVC CRT and Windows SDK 10.0.26100, and Wine 11.22, standing in for cl/link on Windows, on a local merge of main (6293c1c4f) and 9f087c96b.

  • cargo fmt --check, cargo test --locked (x86_64-pc-windows-msvc, run under Wine) and cargo build --locked: all pass, with 3 unit and 7 ffi_contract tests.
  • main's cl line: fails with 3 undefined imports from Rust std's futex locks: WaitOnAddress, WakeByAddressAll and WakeByAddressSingle (LNK2019 under MSVC).
  • This PR's line with synchronization.lib: links with no warnings, and the smoke test exits 0 under Wine.
  • Library list: ws2_32, ntdll, userenv and synchronization each resolve imports; nothing else is unresolved.
  • jactionlint 2.6.0, correctness profile: no findings on xma2-decoder.yml.
  • The claim is valid (posted before the PR, unedited).

AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-24 20:38 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/996#issuecomment-7143848351) Merged on local results, since CI has been queued for hours. The `windows-ffi` job was reproduced on Linux with clang-cl/lld-link 23.1.5, the xwin MSVC CRT and Windows SDK 10.0.26100, and Wine 11.22, standing in for `cl`/`link` on Windows, on a local merge of `main` (`6293c1c4f`) and `9f087c96b`. - **`cargo fmt --check`, `cargo test --locked` (x86_64-pc-windows-msvc, run under Wine) and `cargo build --locked`:** all pass, with 3 unit and 7 `ffi_contract` tests. - **`main`'s `cl` line:** fails with 3 undefined imports from Rust std's futex locks: `WaitOnAddress`, `WakeByAddressAll` and `WakeByAddressSingle` (LNK2019 under MSVC). - **This PR's line with `synchronization.lib`:** links with no warnings, and the smoke test exits 0 under Wine. - **Library list:** `ws2_32`, `ntdll`, `userenv` and `synchronization` each resolve imports; nothing else is unresolved. - **jactionlint 2.6.0, `correctness` profile:** no findings on `xma2-decoder.yml`. - The claim is valid (posted before the PR, unedited). AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.