Tests: construct benchmark config without private fields #3102

Merged
thehollowedone merged 1 commit from upstream-pr/3102 into main 2026-11-28 13:23:55 +00:00
thehollowedone commented 2026-11-28 06:00:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T06:00:17Z.


Windows CI on main fails to compile the runtime benchmark: Config has a private input_profile field, so an external benchmark cannot use struct-update syntax (E0451). This keeps the all-target CI gate red for unrelated PRs.

What is in it

  • crates/xcl/benches/runtime.rs: create the default config, then set its public mounts field. The benchmark inputs and measured code are unchanged.

Tested

  • Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, rustc 1.99.1, debug.
  • cargo check --offline --locked -j 4 -p xcl --bench runtime: passed.
  • cargo test --offline --locked -j 4 --workspace --all-targets --no-run: passed, including benches/runtime.rs.
  • cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4: 2,125 passed, 10 failed, 48 ignored across 39 targets; 25 distinct SKIPPED GPU cases. The ten failures are the same as on untouched main at e429936c.

Not tested

  • Linux/Wine, AMD and Intel GPUs, retail title run. This change only affects benchmark setup.

AI use

Codex (GPT-6.2 Sol) diagnosed the CI failure, wrote the change, ran the tests, and drafted this description.

<!-- greyfinch-sync:ivall/xcl:issue:5537279188 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3102). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-28T06:00:17Z. --- Windows CI on `main` fails to compile the runtime benchmark: `Config` has a private `input_profile` field, so an external benchmark cannot use struct-update syntax (`E0451`). This keeps the all-target CI gate red for unrelated PRs. **What is in it** - `crates/xcl/benches/runtime.rs`: create the default config, then set its public `mounts` field. The benchmark inputs and measured code are unchanged. **Tested** - Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, rustc 1.99.1, debug. - `cargo check --offline --locked -j 4 -p xcl --bench runtime`: passed. - `cargo test --offline --locked -j 4 --workspace --all-targets --no-run`: passed, including `benches/runtime.rs`. - `cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4`: 2,125 passed, 10 failed, 48 ignored across 39 targets; 25 distinct `SKIPPED` GPU cases. The ten failures are the same as on untouched `main` at `e429936c`. **Not tested** - Linux/Wine, AMD and Intel GPUs, retail title run. This change only affects benchmark setup. **AI use** Codex (GPT-6.2 Sol) diagnosed the CI failure, wrote the change, ran the tests, and drafted this description.
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
xcl-dev/xcl!3102
No description provided.