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

Merged
5headsmartbtw merged 1 commit from upstream-pr/996 into main 2026-11-24 20:38:04 +00:00
5headsmartbtw commented 2026-11-24 16:40:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by 5headsmartbtw on 2026-11-24T16:40:38Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5476367150 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/996). Originally posted by [5headsmartbtw](https://github.com/5headsmartbtw) on 2026-11-24T16:40:38Z. --- Claimed in the coordination issue as: [CI-XMA2-FFI-LINKAGE](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137910994) ### 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://github.com/ubiquitarianism/leonida/pull/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.
aslan2142 commented 2026-11-24 20:38:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T20:38:06Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143848351 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/996#issuecomment-7143848351). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T20:38:06Z. --- 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).
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
ProjectLeonida/mandy!996
No description provided.