Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ cb2026-tools = { path = "crates/tools" }
cb2026-trainer = { path = "crates/trainer" }
# The Chess Node Protocol, how Solrac talks to cb2026 (`crates/cnp`), and its conformance
# sessions (Solrac Chess AI #98). Pinned to a commit; bump both together.
cnp = { git = "https://github.com/cjus/chess-node-protocol", rev = "3791c23d98303a5f541171fa6d23af5a6bb53b1b" }
cnp-conformance = { git = "https://github.com/cjus/chess-node-protocol", rev = "3791c23d98303a5f541171fa6d23af5a6bb53b1b" }
cnp = { git = "https://github.com/cjus/chess-node-protocol", rev = "deeab7761f2c7f129bb2dac7732477f730f88927" }
cnp-conformance = { git = "https://github.com/cjus/chess-node-protocol", rev = "deeab7761f2c7f129bb2dac7732477f730f88927" }

# Lints shared by every crate (each crate opts in with `[lints] workspace = true`).
[workspace.lints.rust]
Expand Down
7 changes: 4 additions & 3 deletions crates/cli/tests/cnp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! The sessions come with the `cnp-conformance` crate ([`cnp_conformance::SESSIONS`]), so a
//! new session there is checked here as soon as the protocol's pin is bumped. Sessions that need
//! an engine capability cb2026 doesn't offer (a search window), or that are for a node without
//! one it does (pondering), are skipped, and the test says which.
//! one it does (pondering, the search tree), are skipped, and the test says which.

use std::path::PathBuf;
use std::time::Duration;
Expand Down Expand Up @@ -69,13 +69,14 @@ fn cb2026_passes_every_conformance_session_that_applies() {
let (failed, skipped) = run_all(&node(&["--cnp"]));
assert!(failed.is_empty(), "failed:\n{}", failed.join("\n\n"));
// Of the engine's sessions, only the window's needs a capability cb2026 doesn't offer, and
// two are for nodes without capabilities it has: pondering, and an evaluation's quiet line
// and piece values.
// three are for nodes without capabilities it has: pondering, an evaluation's quiet line
// and piece values, and the search tree.
assert_eq!(
skipped,
vec![
"evaluate-quiet-pieces-unsupported (needs !engine.quiet, !engine.pieces)".to_string(),
"ponder-unsupported (needs !engine.ponder)".to_string(),
"tree-unsupported (needs !engine.tree)".to_string(),
"window (needs engine.window)".to_string(),
]
);
Expand Down
Loading
Loading