xg_xs: the test target needs src/oracle.rs, which is not in the repo #303

Open
opened 2026-11-26 06:17:54 +00:00 by github-bot · 1 comment
Owner

@⁠GDAgent on GitHub · 2026-11-23 17:09 UTC · original

crates/compat/xg_xs/src/lib.rs declares

#[cfg(test)]
mod oracle;

but crates/compat/xg_xs/src/oracle.rs is not in the repository (the other oracle modules, oracle_3d.rs, oracle_xs.rs, oracle_msaa.rs, dcc_oracle.rs, are). On a clean checkout cargo test -p xg_xs therefore fails with E0583: file not found for module oracle, so none of the crate's unit tests can run, including the ones that need no console data.

Two contributors have hit this independently (#292 mentions it; we worked around it locally by cutting the oracle modules out to run the xg_xs tests for a new export).

If the file holds data taken from console libraries that cannot be published, would it work to either:

  • commit a small oracle.rs with the non-console parts and put the console-derived cases behind an opt-in feature or an #[ignore] with a reason, the way the console-DLL fixture tests in d3d12_xs behave without dumps; or
  • gate mod oracle; (and the tests that use it) behind a cfg that is off by default?

Either way cargo test -p xg_xs would build on a clean checkout and new xg_xs exports could be tested before review. Happy to send a PR for the gating if you tell us which shape you prefer.

**@⁠GDAgent** on GitHub · 2026-11-23 17:09 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/303) `crates/compat/xg_xs/src/lib.rs` declares ```rust #[cfg(test)] mod oracle; ``` but `crates/compat/xg_xs/src/oracle.rs` is not in the repository (the other oracle modules, `oracle_3d.rs`, `oracle_xs.rs`, `oracle_msaa.rs`, `dcc_oracle.rs`, are). On a clean checkout `cargo test -p xg_xs` therefore fails with `E0583: file not found for module oracle`, so none of the crate's unit tests can run, including the ones that need no console data. Two contributors have hit this independently (#292 mentions it; we worked around it locally by cutting the oracle modules out to run the xg_xs tests for a new export). If the file holds data taken from console libraries that cannot be published, would it work to either: - commit a small `oracle.rs` with the non-console parts and put the console-derived cases behind an opt-in feature or an `#[ignore]` with a reason, the way the console-DLL fixture tests in `d3d12_xs` behave without dumps; or - gate `mod oracle;` (and the tests that use it) behind a `cfg` that is off by default? Either way `cargo test -p xg_xs` would build on a clean checkout and new xg_xs exports could be tested before review. Happy to send a PR for the gating if you tell us which shape you prefer.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:17:54 +00:00
Author
Owner

@⁠BuHHuTlyx on GitHub · 2026-11-23 21:05 UTC · original

Reproduced on Windows 11 24H2 (x64) from a clean checkout of main at f89e4106fe8a1728515afa34ceb5097132cadcda, using rustc 1.100.0 (0ef1bc386 2026-11-09) (x86_64-pc-windows-msvc).

cargo test -p xg_xs exited with code 101. The compiler reported E0583 at crates/compat/xg_xs/src/lib.rs:15 because mod oracle; has no corresponding oracle.rs or oracle/mod.rs. No unit tests ran.

**@⁠BuHHuTlyx** on GitHub · 2026-11-23 21:05 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/303#issuecomment-7113989803) Reproduced on Windows 11 24H2 (x64) from a clean checkout of `main` at `f89e4106fe8a1728515afa34ceb5097132cadcda`, using `rustc 1.100.0 (0ef1bc386 2026-11-09)` (`x86_64-pc-windows-msvc`). `cargo test -p xg_xs` exited with code 101. The compiler reported `E0583` at `crates/compat/xg_xs/src/lib.rs:15` because `mod oracle;` has no corresponding `oracle.rs` or `oracle/mod.rs`. No unit tests ran.
This discussion has been locked. Commenting is limited to contributors.
No description provided.