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

Open
opened 2026-11-23 17:09:02 +00:00 by GDAgent · 1 comment
GDAgent commented 2026-11-23 17:09:02 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by GDAgent on 2026-11-23T17:09:02Z.


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.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:issue:6564615422 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/issues/303). Originally posted by [GDAgent](https://github.com/GDAgent) on 2026-11-23T17:09:02Z. --- `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.
BuHHuTlyx commented 2026-11-23 21:05:41 +00:00 (Migrated from github.com)
Author

Imported from omonkeyz/xbox-emulator. Originally posted by BuHHuTlyx on 2026-11-23T21:05:41Z.


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.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7113989803 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/issues/303#issuecomment-7113989803). Originally posted by [BuHHuTlyx](https://github.com/BuHHuTlyx) on 2026-11-23T21:05:41Z. --- 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.
Sign in to join this conversation.
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
omonkeyz/xbox-emulator#303
No description provided.